Edge Tracetypes. More...

#include <edgeTraceTypes.hh>

Inheritance diagram for concepts::EdgeTraceTypes:
concepts::Semantics< EdgeTraceType > concepts::OutputOperator

Public Member Functions

void add (const Attribute &attrib, const EdgeTraceType &ettObject)
 Adds an edge-traceType with this attribute to the list of edge Tracetypes. More...
 
void add (const Set< Attribute > &attrib, const EdgeTraceType &ettObject)
 
Set< uint > domain () const
 Method returning the domain of the Map. More...
 
 EdgeTraceTypes ()
 Default constructor. More...
 
virtual EdgeTraceType operator() (Attribute attrib) const
 Application operator. More...
 
virtual ~EdgeTraceTypes ()
 Destructor. More...
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Private Attributes

std::map< uint, EdgeTraceTypeedgeTraceTypes_
 Map from Attribute to a EdgeTraceType. More...
 

Detailed Description

Edge Tracetypes.

The tracetypes itself are held in a dynamic array. The application operator returns a boundary condition object based on its attribute.

Adding EdgeTraceTypes is done using the add method.

For the default attribute 0 of a free element of the topology a default condition is used:

Author
Robert Gruhlke, 2013

Definition at line 80 of file edgeTraceTypes.hh.

Constructor & Destructor Documentation

◆ EdgeTraceTypes()

concepts::EdgeTraceTypes::EdgeTraceTypes ( )
inline

Default constructor.

Sets up the dynamic array.

Definition at line 85 of file edgeTraceTypes.hh.

◆ ~EdgeTraceTypes()

virtual concepts::EdgeTraceTypes::~EdgeTraceTypes ( )
virtual

Destructor.

Member Function Documentation

◆ add() [1/2]

void concepts::EdgeTraceTypes::add ( const Attribute attrib,
const EdgeTraceType ettObject 
)
inline

Adds an edge-traceType with this attribute to the list of edge Tracetypes.

Be carefull: edge-traceType objects with the same attribute overwrite each other, the latest is valid.

Parameters
attribAttribute of a topological object (ie. edge etc.)
bcObjectBoundary condition object associated to attrib

Definition at line 112 of file edgeTraceTypes.hh.

◆ add() [2/2]

void concepts::EdgeTraceTypes::add ( const Set< Attribute > &  attrib,
const EdgeTraceType ettObject 
)
inline

Definition at line 116 of file edgeTraceTypes.hh.

◆ domain()

Set<uint> concepts::EdgeTraceTypes::domain ( ) const
inline

Method returning the domain of the Map.

Definition at line 126 of file edgeTraceTypes.hh.

◆ info()

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

Returns information in an output stream.

Reimplemented from concepts::Semantics< EdgeTraceType >.

◆ operator()()

virtual EdgeTraceType concepts::EdgeTraceTypes::operator() ( Attribute  attrib) const
virtual

Application operator.

Parameters
attribAttribute of a topolgical object
Returns
A reference to the edge-tracetype object associated to the given attribute.

Implements concepts::Semantics< EdgeTraceType >.

Member Data Documentation

◆ edgeTraceTypes_

std::map<uint, EdgeTraceType> concepts::EdgeTraceTypes::edgeTraceTypes_
mutableprivate

Map from Attribute to a EdgeTraceType.

The index is the number given by the attribute of the topological element.

Definition at line 141 of file edgeTraceTypes.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich