]> www.ginac.de Git - ginac.git/blobdiff - ginac/indexed.h
* ginac/registrar.h: dtor is inlined now.
[ginac.git] / ginac / indexed.h
index 2ff8c3a126bbfe1ed7f657a7c4906e07fd068fd2..94ba0e6860c8d8cec78262d2ca622403f055fbbd 100644 (file)
@@ -26,9 +26,7 @@
 #include <string>
 #include "exprseq.h"
 
-#ifndef NO_NAMESPACE_GINAC
 namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
 
 
 /** Base class for objects with indices. */
@@ -36,18 +34,6 @@ class indexed : public exprseq
 {
        GINAC_DECLARE_REGISTERED_CLASS(indexed, exprseq)
 
-// member functions
-
-       // default constructor, destructor, copy constructor assignment operator and helpers
-public:
-       indexed();
-       ~indexed();
-       indexed(const indexed & other);
-       const indexed & operator=(const indexed & other);
-protected:
-       void copy(const indexed & other); 
-       void destroy(bool call_parent);
-
        // other constructors
 public:
        indexed(const ex & i1);
@@ -59,7 +45,6 @@ public:
 
        // functions overriding virtual functions from base classes
 public:
-       basic * duplicate() const;
        void printraw(std::ostream & os) const;
        void printtree(std::ostream & os, unsigned indent) const;
        void print(std::ostream & os, unsigned upper_precedence=0) const;
@@ -71,7 +56,6 @@ public:
 
 protected:
        ex derivative(const symbol & s) const;
-       int compare_same_type(const basic & other) const;
        bool is_equal_same_type(const basic & other) const;
        unsigned return_type(void) const;
        unsigned return_type_tinfo(void) const;
@@ -92,19 +76,12 @@ protected:
        // none
 };
 
-// global constants
-
-extern const indexed some_indexed;
-extern const std::type_info & typeid_indexed;
-
 // utility functions
 inline const indexed &ex_to_indexed(const ex &e)
 {
        return static_cast<const indexed &>(*e.bp);
 }
 
-#ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC
 
 #endif // ndef __GINAC_INDEXED_H__