]> www.ginac.de Git - ginac.git/blobdiff - ginac/coloridx.h
* New funny timing added: compute an antipode in Yukawa theory.
[ginac.git] / ginac / coloridx.h
index ad190c1181536199a2b479241f6da98c4967df57..ab78abb35fb2ca54664ceedce62eb942f98a1097 100644 (file)
 #include "idx.h"
 #include "ex.h"
 
-#ifndef NO_NAMESPACE_GINAC
 namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
 
-/** Class of indices for color algebra (SU(3)) objects, to tell them apart
- *  from other index families like Lorentz indices. */
+
+/** Class of indices for color algebra objects, to tell them apart from
+ *  other index families like Lorentz indices. The color indices are the
+ *  indices of the SU(3) generators T_a, so they lie in the range of 0 to 7. 
+ *  Note that this kind of index is different from the indices carried by
+ *  elements of a specific matrix representation of su(3). Such indices are
+ *  always hidden in our implementation and we are not concerned with them. */
 class coloridx : public idx
 {
        GINAC_DECLARE_REGISTERED_CLASS(coloridx, idx)
 
        friend class color;
 
-// member functions
-
-       // default constructor, destructor, copy constructor assignment operator and helpers
-public:
-       coloridx();
-       ~coloridx();
-       coloridx (const coloridx & other);
-       const coloridx & operator=(const coloridx & other);
-protected:
-       void copy(const coloridx & other);
-       void destroy(bool call_parent);
-
        // other constructors
 public:
        explicit coloridx(bool cov);
@@ -61,7 +52,6 @@ public:
 
        // functions overriding virtual functions from bases 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;
@@ -77,19 +67,12 @@ public:
        // none
 };
 
-// global constants
-
-extern const coloridx some_coloridx;
-extern const std::type_info & typeid_coloridx;
-
 // utility functions
 inline const coloridx &ex_to_coloridx(const ex &e)
 {
        return static_cast<const coloridx &>(*e.bp);
 }
 
-#ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC
 
 #endif // ndef __GINAC_COLORIDX_H__