* Interface to GiNaC's symbolic objects. */
/*
- * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* first place. */
class symbol : public basic
{
- GINAC_DECLARE_REGISTERED_CLASS(symbol, basic)
+ GINAC_DECLARE_REGISTERED_CLASS_NO_CTORS(symbol, basic)
// types
/** Symbols as keys to expressions. */
class assigned_ex_info {
public:
- assigned_ex_info(); //!< Default ctor
- bool is_assigned; //!< True if there is an expression assigned
- ex assigned_expression; //!< The actual expression
- unsigned refcount; //!< Yet another refcounter. PLEASE EXPLAIN!
+ assigned_ex_info(); //! Default ctor
+ bool is_assigned; //! True if there is an expression assigned
+ ex assigned_expression; //! The actual expression
+ unsigned refcount; //! Yet another refcounter. PLEASE EXPLAIN!
};
// member functions
static unsigned next_serial;
};
-// global constants
-
-extern const symbol some_symbol;
-extern const type_info & typeid_symbol;
-
// utility functions
inline const symbol &ex_to_symbol(const ex &e)
{
// wrapper functions around member functions
inline void unassign(symbol & symarg)
-{ return symarg.unassign(); }
+{ symarg.unassign(); }
inline int degree(const symbol & a, const symbol & s)
{ return a.degree(s); }