Stores additional information on a face, namely its cells. More...

#include <continuityData.hh>

Inheritance diagram for concepts::FaceData:
concepts::ConnectorData

Public Types

typedef std::map< uint, const CellData * >::const_iterator const_iterator
 The constant STL iterator over the list of cells. More...
 
typedef std::map< uint, const CellData * >::iterator iterator
 The STL iterator over the list of cells. More...
 

Public Member Functions

void addCell (const CellData &c)
 Adds c to the list of cells. More...
 
iterator begin ()
 Returns the STL beginning of the list of cells. More...
 
const_iterator begin () const
 Returns the STL beginning of the list of cells. More...
 
iterator end ()
 Returns the STL end of the list of cells. More...
 
const_iterator end () const
 Returns the STL end of the list of cells. More...
 
const Connector2face () const
 Returns face_. More...
 
 FaceData (const Connector2 &face)
 Constructor. More...
 
bool hasCell (const Connector &c) const
 Returns true if c is in the list of cells. More...
 
Key key () const
 Returns the key of the face. More...
 
int related (const FaceData &f) const
 Calls Connector::related. More...
 
void replaceCell (const CellData &remove, const CellData &add)
 Removes remove from the list of cells and tries to add add to this list using addCell. More...
 

Static Public Member Functions

static void checkRelatedFaces (std::map< uint, FaceData > &faceList)
 Checks if there are faces with relations in faceList. More...
 

Protected Attributes

std::map< uint, const CellData * > cells_
 List of cells. More...
 

Private Attributes

const Connector2face_
 Face. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const FaceData &f)
 

Detailed Description

Stores additional information on a face, namely its cells.

Author
Philipp Frauenfelder, 2002

Definition at line 143 of file continuityData.hh.

Member Typedef Documentation

◆ const_iterator

typedef std::map<uint, const CellData*>::const_iterator concepts::ConnectorData::const_iterator
inherited

The constant STL iterator over the list of cells.

Definition at line 44 of file continuityData.hh.

◆ iterator

typedef std::map<uint, const CellData*>::iterator concepts::ConnectorData::iterator
inherited

The STL iterator over the list of cells.

Definition at line 42 of file continuityData.hh.

Constructor & Destructor Documentation

◆ FaceData()

concepts::FaceData::FaceData ( const Connector2 face)
inline

Constructor.

Parameters
faceFace to which this data belongs

Definition at line 149 of file continuityData.hh.

Member Function Documentation

◆ addCell()

void concepts::ConnectorData::addCell ( const CellData c)
inherited

Adds c to the list of cells.

If there is a cell in the list of cells which is related to c, c is only inserted, if it is larger than the already present cell (which is removed). If c is smaller than an already present cell, the insertion is canceled.

Parameters
cCell to be added to cells_

◆ begin() [1/2]

iterator concepts::ConnectorData::begin ( )
inlineinherited

Returns the STL beginning of the list of cells.

Definition at line 63 of file continuityData.hh.

◆ begin() [2/2]

const_iterator concepts::ConnectorData::begin ( ) const
inlineinherited

Returns the STL beginning of the list of cells.

Definition at line 65 of file continuityData.hh.

◆ checkRelatedFaces()

static void concepts::FaceData::checkRelatedFaces ( std::map< uint, FaceData > &  faceList)
static

Checks if there are faces with relations in faceList.

If this is the case, the smaller face is removed and the cell which is the ancestor of this smaller face (on the same level as the larger face) is added to the list of cells of the larger face.

◆ end() [1/2]

iterator concepts::ConnectorData::end ( )
inlineinherited

Returns the STL end of the list of cells.

Definition at line 67 of file continuityData.hh.

◆ end() [2/2]

const_iterator concepts::ConnectorData::end ( ) const
inlineinherited

Returns the STL end of the list of cells.

Definition at line 69 of file continuityData.hh.

◆ face()

const Connector2& concepts::FaceData::face ( ) const
inline

Returns face_.

Definition at line 151 of file continuityData.hh.

◆ hasCell()

bool concepts::ConnectorData::hasCell ( const Connector c) const
inherited

Returns true if c is in the list of cells.

◆ key()

Key concepts::FaceData::key ( ) const
inline

Returns the key of the face.

Definition at line 156 of file continuityData.hh.

◆ related()

int concepts::FaceData::related ( const FaceData f) const
inline

Calls Connector::related.

Definition at line 153 of file continuityData.hh.

◆ replaceCell()

void concepts::ConnectorData::replaceCell ( const CellData remove,
const CellData add 
)
inherited

Removes remove from the list of cells and tries to add add to this list using addCell.

Parameters
removeCell which has to be removed from cells_
addCell which should be added to cells_

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const FaceData f 
)
friend

Member Data Documentation

◆ cells_

std::map<uint, const CellData*> concepts::ConnectorData::cells_
protectedinherited

List of cells.

Definition at line 72 of file continuityData.hh.

◆ face_

const Connector2& concepts::FaceData::face_
private

Face.

Definition at line 165 of file continuityData.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