#include <cellConditions.hh>

Inheritance diagram for concepts::CellConditions:
concepts::Semantics< CellCondition > concepts::OutputOperator

Public Member Functions

void add (const Attribute &attrib, const CellCondition &i)
 Adds a boundary condition with this attribute to the list of boundary conditions. More...
 
 CellConditions (const bool emptyElements=true)
 Default constructor. More...
 
 CellConditions (const CellConditions &cnd)
 Copy constructor. More...
 
 CellConditions (const enum CellCondition::inactivTypes type)
 Constructor setting the default activity type. More...
 
bool emptyElements () const
 
virtual CellCondition operator() (Attribute attrib) const
 Application operator. More...
 
virtual ~CellConditions ()
 Destructor. More...
 

Protected Member Functions

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

Private Attributes

bool emptyElements_
 Flag,. More...
 
std::map< uint, CellConditioninactiveCells_
 Dynamic array of inactive regions with type. More...
 
enum CellCondition::inactivTypes type_
 

Detailed Description

Definition at line 125 of file cellConditions.hh.

Constructor & Destructor Documentation

◆ CellConditions() [1/3]

concepts::CellConditions::CellConditions ( const bool  emptyElements = true)

Default constructor.

Sets up the dynamic array.

Parameters
emptyElementsflag, which signals, if empty elements should be build for inactive cells

◆ CellConditions() [2/3]

concepts::CellConditions::CellConditions ( const enum CellCondition::inactivTypes  type)

Constructor setting the default activity type.

◆ CellConditions() [3/3]

concepts::CellConditions::CellConditions ( const CellConditions cnd)

Copy constructor.

◆ ~CellConditions()

virtual concepts::CellConditions::~CellConditions ( )
virtual

Destructor.

Takes care of deleting all the formulae which are associated with the Boundary objects.

See also
Boundary

Member Function Documentation

◆ add()

void concepts::CellConditions::add ( const Attribute attrib,
const CellCondition i 
)

Adds a boundary condition with this attribute to the list of boundary conditions.

Be carefull: boundary condition objects with the same attribute overwrite each other, the latest is valid.

Parameters
attribAttribute of the cell
iCell condition object associated to attrib

◆ emptyElements()

bool concepts::CellConditions::emptyElements ( ) const
inline

Definition at line 168 of file cellConditions.hh.

◆ info()

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

Returns information in an output stream.

Reimplemented from concepts::Semantics< CellCondition >.

◆ operator()()

virtual CellCondition concepts::CellConditions::operator() ( Attribute  attrib) const
virtual

Application operator.

Parameters
attribAttribute of a topolgical object (ie. vertex or edge)
Returns
A reference to the boundary condition object associated to the given attribute.

Implements concepts::Semantics< CellCondition >.

Member Data Documentation

◆ emptyElements_

bool concepts::CellConditions::emptyElements_
private

Flag,.

Definition at line 177 of file cellConditions.hh.

◆ inactiveCells_

std::map<uint, CellCondition> concepts::CellConditions::inactiveCells_
mutableprivate

Dynamic array of inactive regions with type.

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

Definition at line 175 of file cellConditions.hh.

◆ type_

enum CellCondition::inactivTypes concepts::CellConditions::type_
private

Definition at line 177 of file cellConditions.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