Go to the documentation of this file.
35 inline operator uint()
const {
return attrib_; }
63 inline operator uint()
const {
return key_; }
69 inline static uint
noKey() {
return (uint)-1; }
126 virtual std::ostream&
info(std::ostream& os)
const;
365 #endif // Connector_hh
static uint cnt_
Counter for the connectors.
Key key_
Unique key of the connector.
Connector1(Attribute attrib)
Constructor.
A 3D element of the topology.
virtual Connector0 * vertex(uint i) const =0
Returns a 0D component: vertex A 2D element consists of 1D and 0D elements, the vertices can be queri...
virtual Connector1 * edge(uint i) const =0
Returns a 1D component: edge.
virtual const Connector1 * child(uint i) const =0
Connector0(Attribute attrib)
Constructor.
virtual const Connector2 * child(uint i) const =0
const Attribute & attrib() const
Returns the attribute of the connector.
uint attrib() const
Returns the attribute.
static uint cnt_
Counter for the connectors.
Attribute attrib_
Attribute.
virtual Connector1 * child(uint i, bool mode=0)=0
Returns the ith child of the connector.
int operator==(const Attribute &a) const
Comparison operator.
virtual Connector0 * vertex(uint i) const =0
Returns a 0D component: vertex A 3D element consists of 2D, 1D and 0D elements, the vertices can be q...
friend std::ostream & operator<<(std::ostream &os, const Attribute &a)
Connector(const uint key, const Attribute attrib)
Constructor.
void setAttrib(uint attrb)
Attribute(uint attrib=0)
Constructor.
virtual Connector * child(uint i, bool mode=0)=0
Returns the ith child of the connector.
virtual Connector2 * child(uint i, bool mode=0)=0
Returns the ith child of the connector.
const Key & key() const
Returns the key of the connector.
Connector0(const Attribute attrib, const Key &key)
Constructor.
Classes which allow for testing purpose (!) to reset internal counter of each connector type.
A 2D element of the topology.
int operator==(const Connector &cntr) const
Comparison operator.
virtual Connector0 * child(uint i, bool mode=0)=0
Returns the ith child of the connector.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
int related(const Connector &conn) const
Checks if this connector is related to conn.
virtual const Connector * child(uint i) const =0
virtual const Connector0 * child(uint i) const =0
bool operator<(const Cell &cell_x, const Cell &cell_y)
<-operator could be useful for sorting, e.g. in std::set.
int operator==(const Key &key) const
Comparison operator.
static uint cnt_
Counter for the connectors.
Connector2(const Attribute attrib, const Key &key)
Constructor.
virtual Connector2 * face(uint i) const =0
Returns a 2D component: face.
A 1D element of the topology.
virtual Connector1 * edge(uint i) const =0
Returns a 1D component: edge.
friend std::ostream & operator<<(std::ostream &os, const Key &k)
static uint cnt_
Counter for the connectors.
virtual Connector3 * child(uint i, bool mode=0)=0
Returns the ith child of the connector.
Connector3(const Attribute attrib, const Key &key)
Constructor.
Connector3(Attribute attrib)
Constructor.
Connector2(Attribute attrib)
Constructor.
virtual const Connector3 * child(uint i) const =0
virtual Connector0 * vertex(uint i) const =0
Returns a 0D component: vertex A 1D element consists of 0D elements, the vertices can be queried here...
uint key() const
Returns the key.
Connector1(const Attribute attrib, const Key &key)
Constructor.
Class providing an output operator.
Attributes for elements of the topology.
An abstract class for elements of the topology.
static uint noKey()
Returns a key which never occurs.
Key(uint key=0)
Default constructor.
A 0D element of the topology.
Basic namespace for Concepts-2.