Class documentation of Concepts

Loading...
Searching...
No Matches

#include <topology.hh>

Inheritance diagram for concepts::Vertex:
concepts::Connector0 concepts::Connector concepts::OutputOperator

Public Member Functions

 Vertex (const Attribute attrib=Attribute())
 Default constructor.
 
virtual Vertexchild (uint i, bool mode=0)
 
virtual const Vertexchild (uint) const
 
Vertexclone () 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

Key key_
 Unique key of the connector.
 
Attribute attrib_
 Attribute.
 

Static Protected Attributes

static uint cnt_
 

Detailed Description

A vertex in the topology. Implements the abstract methods from the parent classes to query a child.

Examples
meshes.cc.

Definition at line 40 of file topology.hh.

Constructor & Destructor Documentation

◆ Vertex()

concepts::Vertex::Vertex ( const Attribute  attrib = Attribute())
inline

Default constructor.

Definition at line 43 of file topology.hh.

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 Vertex * concepts::Vertex::child ( uint  i,
bool  mode = 0 
)
inlinevirtual

Returns the ith child of the connector.

Parameters
iIndex of the child
modeIf 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::Connector0.

Definition at line 49 of file topology.hh.

◆ child() [2/2]

virtual const Vertex * concepts::Vertex::child ( uint  ) const
inlinevirtual

Implements concepts::Connector0.

Definition at line 50 of file topology.hh.

◆ clone()

Vertex * concepts::Vertex::clone ( ) const
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.

◆ info()

virtual std::ostream & concepts::Vertex::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.

Member Data Documentation

◆ attrib_

Attribute concepts::Connector::attrib_
protectedinherited

Attribute.

Definition at line 132 of file connector.hh.

◆ cnt_

uint concepts::Connector0::cnt_
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.

◆ key_

Key concepts::Connector::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: