#include <connector.hh>
Public Member Functions | |
Connector (const uint key, const Attribute attrib) | |
Constructor. | |
virtual Connector * | child (uint i, bool mode=0)=0 |
virtual const Connector * | child (uint i) const =0 |
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. | |
An abstract class for elements of the topology. The topology contains the informations about the inter-element connections.
This class prescribes the common interface for all topological elements (connectors). This interface consists of a method to query the children of a connector.
Definition at line 85 of file connector.hh.
Constructor.
Definition at line 88 of file connector.hh.
|
inline |
Returns the attribute of the connector.
Definition at line 108 of file connector.hh.
Implemented in concepts::SphericalSurface.
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). |
Implemented in concepts::SphericalSurface, concepts::Sphere, concepts::Vertex, concepts::Edge, concepts::InfiniteEdge, concepts::Triangle, concepts::Quad, concepts::InfiniteQuad, concepts::Tetrahedron, concepts::Hexahedron, concepts::Connector0, concepts::Connector1, concepts::Connector2, and concepts::Connector3.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in concepts::Vertex, concepts::Edge, concepts::InfiniteEdge, concepts::Triangle, concepts::Quad, concepts::InfiniteQuad, concepts::Tetrahedron, concepts::Hexahedron, concepts::SphericalSurface, and concepts::Sphere.
|
inline |
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.
|
protected |
Definition at line 132 of file connector.hh.
|
protected |
Unique key of the connector.
Definition at line 129 of file connector.hh.