#include <topology.hh>
Public Member Functions | |
Vertex (const Attribute attrib=Attribute()) | |
Default constructor. | |
virtual Vertex * | child (uint i, bool mode=0) |
virtual const Vertex * | child (uint) const |
Vertex * | clone () const |
int | operator== (const Connector &cntr) const |
Comparison operator. | |
const Key & | key () const |
Returns the key of the connector. | |
const Attribute & | attrib () const |
Returns the attribute of the connector. | |
void | setAttrib (uint attrb) |
int | related (const Connector &conn) const |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Protected Attributes | |
Key | key_ |
Unique key of the connector. | |
Attribute | attrib_ |
Attribute. | |
Static Protected Attributes | |
static uint | cnt_ |
A vertex in the topology. Implements the abstract methods from the parent classes to query a child.
Definition at line 40 of file topology.hh.
Default constructor.
Definition at line 43 of file topology.hh.
|
inlineinherited |
Returns the attribute of the connector.
Definition at line 108 of file connector.hh.
Returns the ith child of the connector.
i | Index of the child |
mode | If mode = false(0) the child is created if it does not yet exist, if mode = true(1) no new children are created (ie. 0 is returned if no children exist). |
Implements concepts::Connector0.
Definition at line 49 of file topology.hh.
Implements concepts::Connector0.
Definition at line 50 of file topology.hh.
|
inline |
Returns the pointer of a new vertex with the same attribute, the same key but NO children
Definition at line 63 of file topology.hh.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Connector.
|
inlineinherited |
Returns the key of the connector.
Definition at line 105 of file connector.hh.
Comparison operator.
Definition at line 102 of file connector.hh.
Checks if this connector is related to conn
. It is being checked if one of the two is an ancestor of the other.
conn | Other connector |
conn
is an ancestor of this connectorconn
is a descendant of this connectorDefinition at line 111 of file connector.hh.
|
protectedinherited |
Definition at line 132 of file connector.hh.
|
staticprotectedinherited |
Counter for the connectors. This counter is used to create the unique key of the connector.
Definition at line 168 of file connector.hh.
|
protectedinherited |
Unique key of the connector.
Definition at line 129 of file connector.hh.