* Interface to GiNaC's symmetry definitions. */
/*
- * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2007 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
/** Check whether this node actually represents any kind of symmetry. */
bool has_symmetry() const {return type != none || !children.empty(); }
+ /** Check whether this node involves a cyclic symmetry. */
+ bool has_cyclic() const;
protected:
void do_print(const print_context & c, unsigned level) const;
void do_print_tree(const print_tree & c, unsigned level) const;
+ unsigned calchash() const;
// member variables
private:
return symmetrize(e, v.begin(), v.end());
}
-// utility functions
-
-/** Specialization of is_exactly_a<symmetry>(obj) for symmetry objects. */
-template<> inline bool is_exactly_a<symmetry>(const basic & obj)
-{
- return obj.tinfo()==TINFO_symmetry;
-}
-
} // namespace GiNaC
#endif // ndef __GINAC_SYMMETRY_H__