#include <connector.hh>
Public Member Functions | |
Connector3 (Attribute attrib) | |
virtual Connector3 * | child (uint i, bool mode=0)=0 |
virtual const Connector3 * | child (uint i) const =0 |
virtual Connector1 * | edge (uint i) const =0 |
virtual Connector2 * | face (uint i) const =0 |
virtual Connector0 * | vertex (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 | |
Connector3 (const Attribute attrib, const Key &key) | |
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 3D element of the topology. Base class for tetrahedrons etc. 3D elements of the topology are defined by 2D elements, ie. a tetrahedron is defined by four triangles.
On this level a unique counter for all 3D connectors is implemented. In addition to the interface prescribed by connector methods to query the 0D, 1D and 2D components of this connector are declared.
Definition at line 277 of file connector.hh.
|
inline |
Constructor. Used by the clone function of inherited classes.
attrib | The attribute |
key | The key |
Definition at line 316 of file connector.hh.
|
inlineinherited |
Returns the attribute of the connector.
Definition at line 108 of file connector.hh.
|
pure virtual |
Implements concepts::Connector.
|
pure virtual |
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::Connector.
Implemented in concepts::Sphere, concepts::Tetrahedron, and concepts::Hexahedron.
|
pure virtual |
Returns a 1D component: edge. A 3D element consists of 2D, 1D and 0D elements, the edges can be queried here.
i | Index of the edge |
Implemented in concepts::Tetrahedron, concepts::Hexahedron, and concepts::Sphere.
|
pure virtual |
Returns a 2D component: face. A 3D element consists of 2D, 1D and 0D elements, the faces can be queried here.
i | Index of the face |
Implemented in concepts::Tetrahedron, concepts::Hexahedron, and concepts::Sphere.
|
protectedvirtualinherited |
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.
|
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.
|
pure virtual |
Returns a 0D component: vertex A 3D element consists of 2D, 1D and 0D elements, the vertices can be queried here.
i | Index of the vertex |
Implemented in concepts::Tetrahedron, concepts::Hexahedron, and concepts::Sphere.
|
protectedinherited |
Definition at line 132 of file connector.hh.
|
staticprotected |
Counter for the connectors. This counter is used to create the unique key of the connector.
Definition at line 322 of file connector.hh.
|
protectedinherited |
Unique key of the connector.
Definition at line 129 of file connector.hh.