Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
concepts::Connector0 Class Reference

A 0D element of the topology. More...

#include <connector.hh>

Inheritance diagram for concepts::Connector0:
Inheritance graph
[legend]
Collaboration diagram for concepts::Connector0:
Collaboration graph
[legend]

List of all members.

Public Member Functions

const Attributeattrib () const
 Returns the attribute of the connector.
virtual Connector0child (uint i, bool mode=0)=0
 Returns the ith child of the connector.
virtual const Connector0child (uint i) const =0
 Connector0 (Attribute attrib)
 Constructor.
const Keykey () const
 Returns the key of the connector.
int operator== (const Connector &cntr) const
 Comparison operator.
int related (const Connector &conn) const
 Checks if this connector is related to conn.

Protected Member Functions

 Connector0 (const Attribute attrib, const Key &key)
 Constructor.
virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.

Protected Attributes

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

Static Protected Attributes

static uint cnt_
 Counter for the connectors.

Detailed Description

A 0D element of the topology.

Base class for a vertex.

On this level a unique counter for all 0D connectors is implemented.

Definition at line 138 of file connector.hh.


Constructor & Destructor Documentation

concepts::Connector0::Connector0 ( Attribute  attrib) [inline]

Constructor.

Parameters:
attribThe attribute

Definition at line 144 of file connector.hh.

concepts::Connector0::Connector0 ( const Attribute  attrib,
const Key key 
) [inline, protected]

Constructor.

Used by the clone function of inherited classes.

Parameters:
attribThe attribute
keyThe key

Definition at line 153 of file connector.hh.


Member Function Documentation

const Attribute& concepts::Connector::attrib ( ) const [inline, inherited]

Returns the attribute of the connector.

Definition at line 104 of file connector.hh.

virtual Connector0* concepts::Connector0::child ( uint  i,
bool  mode = 0 
) [pure virtual]

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::Connector.

Implemented in concepts::Vertex.

virtual const Connector0* concepts::Connector0::child ( uint  i) const [pure virtual]

Implements concepts::Connector.

Implemented in concepts::Vertex.

virtual std::ostream& concepts::Connector::info ( std::ostream &  os) const [protected, virtual, inherited]
const Key& concepts::Connector::key ( ) const [inline, inherited]

Returns the key of the connector.

Definition at line 101 of file connector.hh.

int concepts::Connector::operator== ( const Connector cntr) const [inline, inherited]

Comparison operator.

Definition at line 98 of file connector.hh.

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

Member Data Documentation

Attribute concepts::Connector::attrib_ [protected, inherited]

Attribute.

Definition at line 123 of file connector.hh.

uint concepts::Connector0::cnt_ [static, protected]

Counter for the connectors.

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

Definition at line 154 of file connector.hh.

Key concepts::Connector::key_ [protected, inherited]

Unique key of the connector.

Definition at line 120 of file connector.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)