concepts::Connector2 Class Referenceabstract
A 2D element of the topology. More...
#include <connector.hh>
Public Member Functions | |
const Attribute & | attrib () const |
Returns the attribute of the connector. More... | |
virtual const Connector2 * | child (uint i) const =0 |
virtual Connector2 * | child (uint i, bool mode=0)=0 |
Returns the ith child of the connector. More... | |
Connector2 (Attribute attrib) | |
Constructor. More... | |
virtual Connector1 * | edge (uint i) const =0 |
Returns a 1D component: edge. More... | |
const Key & | key () const |
Returns the key of the connector. More... | |
int | operator== (const Connector &cntr) const |
Comparison operator. More... | |
int | related (const Connector &conn) const |
Checks if this connector is related to conn . More... | |
void | setAttrib (uint attrb) |
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 queried here. More... | |
Protected Member Functions | |
Connector2 (const Attribute attrib, const Key &key) | |
Constructor. More... | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Protected Attributes | |
Attribute | attrib_ |
Attribute. More... | |
Key | key_ |
Unique key of the connector. More... | |
Static Protected Attributes | |
static uint | cnt_ |
Counter for the connectors. More... | |
Detailed Description
A 2D element of the topology.
Base class for a face (a triangle or a quadrilateral). 2D elements of the topology are defined by 1D elements, ie. a triangle is defined by three edges.
On this level a unique counter for all 2D connectors is implemented. In addition to the interface prescribed by connector methods to query the 0D and 1D components of this connector are declared.
Definition at line 226 of file connector.hh.
Constructor & Destructor Documentation
◆ Connector2() [1/2]
|
inline |
◆ Connector2() [2/2]
Constructor.
Used by the clone function of inherited classes.
- Parameters
-
attrib The attribute key The key
Definition at line 257 of file connector.hh.
Member Function Documentation
◆ attrib()
|
inlineinherited |
Returns the attribute of the connector.
Definition at line 108 of file connector.hh.
◆ child() [1/2]
|
pure virtual |
Implements concepts::Connector.
Implemented in concepts::SphericalSurface, concepts::InfiniteQuad, concepts::Quad, and concepts::Triangle.
◆ child() [2/2]
|
pure virtual |
Returns the ith child of the connector.
- Parameters
-
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).
- Invariant
- Either all children or no children exist.
Implements concepts::Connector.
Implemented in concepts::InfiniteQuad, concepts::Quad, concepts::Triangle, and concepts::SphericalSurface.
◆ edge()
|
pure virtual |
Returns a 1D component: edge.
A 2D element consists of 1D and 0D elements, the edges can be queried here.
- Parameters
-
i Index of the edge
Implemented in concepts::SphericalSurface, concepts::InfiniteQuad, concepts::Quad, and concepts::Triangle.
◆ info()
|
protectedvirtualinherited |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in concepts::Sphere, concepts::SphericalSurface, concepts::Hexahedron, concepts::Tetrahedron, concepts::InfiniteQuad, concepts::Quad, concepts::Triangle, concepts::InfiniteEdge, concepts::Edge, and concepts::Vertex.
◆ key()
|
inlineinherited |
Returns the key of the connector.
Definition at line 105 of file connector.hh.
◆ operator==()
|
inlineinherited |
Comparison operator.
Definition at line 102 of file connector.hh.
◆ related()
|
inherited |
Checks if this connector is related to conn
.
It is being checked if one of the two is an ancestor of the other.
- Parameters
-
conn Other connector
- Returns
- An integer i.
i=0 if there is no relationship or the connectors are identical
i>0 ifconn
is an ancestor of this connector
i<0 ifconn
is a descendant of this connector
|i| gives the number of generations between the connectors
◆ setAttrib()
|
inlineinherited |
Definition at line 111 of file connector.hh.
◆ vertex()
|
pure virtual |
Returns a 0D component: vertex A 2D element consists of 1D and 0D elements, the vertices can be queried here.
- Parameters
-
i Index of the vertex
Implemented in concepts::SphericalSurface, concepts::InfiniteQuad, concepts::Quad, and concepts::Triangle.
Member Data Documentation
◆ attrib_
|
protectedinherited |
Definition at line 132 of file connector.hh.
◆ cnt_
|
staticprotected |
Counter for the connectors.
This counter is used to create the unique key of the connector.
Definition at line 263 of file connector.hh.
◆ key_
|
protectedinherited |
Unique key of the connector.
Definition at line 129 of file connector.hh.
The documentation for this class was generated from the following file:
- geometry/connector.hh