X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fcolor.h;h=4d4169a7ab119c597f4fdd6bf7880b5181a0a022;hp=f416b633fb98a33d974d99caa22dfadcf5893614;hb=dad107ff48f68d45e72469a8716df375ae145cf3;hpb=dc074d042a23f07350f0c2c68a2477763a5aaba0 diff --git a/ginac/color.h b/ginac/color.h index f416b633..4d4169a7 100644 --- a/ginac/color.h +++ b/ginac/color.h @@ -28,9 +28,7 @@ #include "indexed.h" #include "ex.h" -#ifndef NO_NAMESPACE_GINAC namespace GiNaC { -#endif // ndef NO_NAMESPACE_GINAC const unsigned MAX_REPRESENTATION_LABELS = 4; const unsigned COLOR_EIGHT = 8; // N*N-1 @@ -94,16 +92,6 @@ public: // member functions - // default constructor, destructor, copy constructor assignment operator and helpers -public: - color(); - ~color(); - color(const color & other); - const color & operator=(const color & other); -protected: - void copy(const color & other); - void destroy(bool call_parent); - // other constructors protected: color(color_types const t, unsigned rl=0); @@ -116,14 +104,12 @@ protected: // 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; bool info(unsigned inf) const; ex eval(int level=0) const; protected: - int compare_same_type(const basic & other) const; bool is_equal_same_type(const basic & other) const; ex simplify_ncmul(const exvector & v) const; ex thisexprseq(const exvector & v) const; @@ -143,11 +129,6 @@ protected: unsigned representation_label; /**< Representation label to distiguish independent color matrices coming from separated fermion lines */ }; -// global constants - -extern const color some_color; -extern const std::type_info & typeid_color; - // global functions inline const color &ex_to_color(const ex &e) { @@ -180,8 +161,6 @@ ex simplify_color(const ex & e); ex brute_force_sum_color_indices(const ex & e); -#ifndef NO_NAMESPACE_GINAC } // namespace GiNaC -#endif // ndef NO_NAMESPACE_GINAC #endif // ndef __GINAC_COLOR_H__