Class documentation of Concepts

Loading...
Searching...
No Matches

#include <topology.hh>

Inheritance diagram for concepts::InfiniteEdge:
concepts::Connector1 concepts::Connector concepts::OutputOperator

Public Member Functions

 InfiniteEdge (Vertex &vtx, const Attribute attrib=Attribute())
 
virtual Connector1child (uint i, bool mode=0)
 
virtual const Connector1child (uint i) const
 
Vertexvertex (uint i=0) const
 
int operator== (const Connector &cntr) const
 Comparison operator.
 
const Keykey () const
 Returns the key of the connector.
 
const Attributeattrib () 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

Edgelnk_
 Pointer to a sibling.
 
InfiniteEdgechld_
 
Vertexvtx_
 Array of the vertices.
 
Key key_
 Unique key of the connector.
 
Attribute attrib_
 Attribute.
 

Static Protected Attributes

static uint cnt_
 

Detailed Description

An infinite edge in the topology, which possess only one vertex as the other lies in the infinite. Implements the abstract methods from the parent classes to query the children and the vertices of the edge.

Definition at line 143 of file topology.hh.

Constructor & Destructor Documentation

◆ InfiniteEdge()

concepts::InfiniteEdge::InfiniteEdge ( Vertex vtx,
const Attribute  attrib = Attribute() 
)

Constructor.

Parameters
vtxVertex
attribAttribute of the edge

Member Function Documentation

◆ attrib()

const Attribute & concepts::Connector::attrib ( ) const
inlineinherited

Returns the attribute of the connector.

Definition at line 108 of file connector.hh.

◆ child() [1/2]

virtual const Connector1 * concepts::InfiniteEdge::child ( uint  i) const
virtual

Implements concepts::Connector1.

◆ child() [2/2]

virtual Connector1 * concepts::InfiniteEdge::child ( uint  i,
bool  mode = 0 
)
virtual

Returns a child.

When creating new children, the first one is an InfiniteEdge whereas the second is an Edge. The starting vertex of the Edge is the starting vertex of this InfiniteEdge.

Parameters
iIndex of the child to be returned.
modemode = 1: No children are created
mode = 0: If no child exists, two new children are created (with the same attributes as this one).

Implements concepts::Connector1.

◆ info()

virtual std::ostream & concepts::InfiniteEdge::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::Connector.

◆ key()

const Key & concepts::Connector::key ( ) const
inlineinherited

Returns the key of the connector.

Definition at line 105 of file connector.hh.

◆ operator==()

int concepts::Connector::operator== ( const Connector cntr) const
inlineinherited

Comparison operator.

Definition at line 102 of file connector.hh.

◆ related()

int concepts::Connector::related ( const Connector conn) const
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
connOther connector
Returns
An integer i.
i=0 if there is no relationship or the connectors are identical
i>0 if conn is an ancestor of this connector
i<0 if conn is a descendant of this connector
|i| gives the number of generations between the connectors

◆ setAttrib()

void concepts::Connector::setAttrib ( uint  attrb)
inlineinherited

Definition at line 111 of file connector.hh.

◆ vertex()

Vertex * concepts::InfiniteEdge::vertex ( uint  i = 0) const
inlinevirtual

Returns a 0D component: vertex A 1D element consists of 0D elements, the vertices can be queried here.

Parameters
iIndex of the vertex

Implements concepts::Connector1.

Definition at line 168 of file topology.hh.

Member Data Documentation

◆ attrib_

Attribute concepts::Connector::attrib_
protectedinherited

Attribute.

Definition at line 132 of file connector.hh.

◆ chld_

InfiniteEdge* concepts::InfiniteEdge::chld_
protected

Pointer to the first child. The children are stored in a linked list.

Definition at line 177 of file topology.hh.

◆ cnt_

uint concepts::Connector1::cnt_
staticprotectedinherited

Counter for the connectors. This counter is used to create the unique key of the connector.

Definition at line 211 of file connector.hh.

◆ key_

Key concepts::Connector::key_
protectedinherited

Unique key of the connector.

Definition at line 129 of file connector.hh.

◆ lnk_

Edge* concepts::InfiniteEdge::lnk_
protected

Pointer to a sibling.

Definition at line 172 of file topology.hh.

◆ vtx_

Vertex* concepts::InfiniteEdge::vtx_
protected

Array of the vertices.

Definition at line 180 of file topology.hh.


The documentation for this class was generated from the following file: