]> www.ginac.de Git - ginac.git/blobdiff - ginac/structure.h
* mul::expand() (mul.cpp): When multiplying two sums, be careful not to
[ginac.git] / ginac / structure.h
index 365f569134b04403eb66b044898b6ea552d08a28..9c7417e463043c2d3ede04d9250c0de9d106e1cb 100644 (file)
@@ -3,7 +3,7 @@
  *  Interface to 'abstract' class structure. */
 
 /*
- *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2002 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
@@ -25,9 +25,7 @@
 
 #include "basic.h"
 
-#ifndef NO_NAMESPACE_GINAC
 namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
 
 struct registered_structure_info {
        const char * name;
@@ -42,35 +40,20 @@ struct registered_structure_info {
 class structure : public basic
 {
        GINAC_DECLARE_REGISTERED_CLASS(structure, basic)
-
-       // other constructors
-       // none
-
-       // functions overriding virtual functions from bases classes
+       
+       // functions overriding virtual functions from base classes
 public:
-       void printraw(std::ostream & os) const; 
-       void print(std::ostream & os, unsigned upper_precedence=0) const;
-       void printtree(std::ostream & os, unsigned indent) const;
-       void printcsrc(std::ostream & os, unsigned type, unsigned upper_precedence=0) const;
+       void print(const print_context & c, unsigned level=0) const;
 protected:
        bool is_equal_same_type(const basic & other) const;
        
-       // new virtual functions which can be overridden by derived classes
-       // none
-       
        // non-virtual functions in this class
 protected:
        static std::vector<registered_structure_info> & registered_structures(void);
 public:
        static unsigned register_new(const char * nm);
-
-// member variables
-// none
-
 };
 
-#ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC
 
 #endif // ndef __GINAC_STRUCTURE_H__