23 friend std::ostream& operator<<(std::ostream&
os,
const Attribute& a);
35 inline operator uint()
const {
return attrib_; }
54 friend std::ostream& operator<<(std::ostream&
os,
const Key& k);
63 inline operator uint()
const {
return key_; }
126 virtual std::ostream&
info(std::ostream&
os)
const;
345 static void reset() {
cnt_ = 0; }
346 static uint cnt() {
return cnt_; }
350 static void reset() {
cnt_ = 0; }
351 static uint cnt() {
return cnt_; }
355 static void reset() {
cnt_ = 0; }
356 static uint cnt() {
return cnt_; }
360 static void reset() {
cnt_ = 0; }
361 static uint cnt() {
return cnt_; }
int operator==(const Attribute &a) const
Comparison operator.
uint attrib() const
Returns the attribute.
virtual Connector0 * child(uint i, bool mode=0)=0
Connector0(Attribute attrib)
Connector0(const Attribute attrib, const Key &key)
Connector1(const Attribute attrib, const Key &key)
virtual Connector1 * child(uint i, bool mode=0)=0
virtual Connector0 * vertex(uint i) const =0
Connector1(Attribute attrib)
virtual Connector1 * edge(uint i) const =0
Connector2(Attribute attrib)
virtual Connector0 * vertex(uint i) const =0
virtual Connector2 * child(uint i, bool mode=0)=0
Connector2(const Attribute attrib, const Key &key)
virtual Connector1 * edge(uint i) const =0
virtual Connector0 * vertex(uint i) const =0
virtual Connector3 * child(uint i, bool mode=0)=0
Connector3(const Attribute attrib, const Key &key)
virtual Connector2 * face(uint i) const =0
Connector3(Attribute attrib)
int operator==(const Connector &cntr) const
Comparison operator.
Key key_
Unique key of the connector.
int related(const Connector &conn) const
Attribute attrib_
Attribute.
const Key & key() const
Returns the key of the connector.
Connector(const uint key, const Attribute attrib)
Constructor.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
const Attribute & attrib() const
Returns the attribute of the connector.
virtual Connector * child(uint i, bool mode=0)=0
static uint noKey()
Returns a key which never occurs.
Key(uint key=0)
Default constructor.
uint key() const
Returns the key.
int operator==(const Key &key) const
Comparison operator.
bool operator<(const Cell &cell_x, const Cell &cell_y)
<-operator could be useful for sorting, e.g. in std::set.
Set< F > makeSet(uint n, const F &first,...)