ScalarDegreeOfFreedomPositionsSet Class Reference

#include <ScalarDegreeOfFreedomPositionsSet.hpp>

Collaboration diagram for ScalarDegreeOfFreedomPositionsSet:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const TinyVector< 3, real_t > & vertex (const size_t &i) const
const size_t & operator() (const size_t &cellNumber, const size_t &localDOFNumber) const
const size_t & number () const
 ScalarDegreeOfFreedomPositionsSet (const ScalarDiscretizationTypeBase &discretizationType, const Mesh &mesh)
 ~ScalarDegreeOfFreedomPositionsSet ()

Private Member Functions

void __build (const ScalarDiscretizationTypeBase &discretizationType, const Mesh &mesh)

Private Attributes

Vector< TinyVector< 3, real_t > > __positions
Vector< size_t > __dofNumber
size_t __numberOfDOFPerCell

Friends

class Builder

Classes

class  Builder


Detailed Description

Definition at line 39 of file ScalarDegreeOfFreedomPositionsSet.hpp.


Constructor & Destructor Documentation

ScalarDegreeOfFreedomPositionsSet::ScalarDegreeOfFreedomPositionsSet ( const ScalarDiscretizationTypeBase discretizationType,
const Mesh mesh 
) [inline]

Constructor

Parameters:
discretizationType given discretization type
mesh given mesh

Definition at line 106 of file ScalarDegreeOfFreedomPositionsSet.hpp.

References __build().

00108   {
00109     this->__build(discretizationType, mesh);
00110   }

Here is the call graph for this function:

ScalarDegreeOfFreedomPositionsSet::~ScalarDegreeOfFreedomPositionsSet (  )  [inline]

Destructor

Definition at line 116 of file ScalarDegreeOfFreedomPositionsSet.hpp.

00117   {
00118     ;
00119   }


Member Function Documentation

void ScalarDegreeOfFreedomPositionsSet::__build ( const ScalarDiscretizationTypeBase discretizationType,
const Mesh mesh 
) [private]

Constructs the degrees of freedom position set for a given mesh and a given discretization type

Parameters:
discretizationType given discretization type
mesh given mesh

Definition at line 470 of file ScalarDegreeOfFreedomPositionsSet.cpp.

References ScalarDegreeOfFreedomPositionsSet::Builder::build().

Referenced by ScalarDegreeOfFreedomPositionsSet().

00472 {
00473   Builder builder(*this);
00474 
00475   builder.build(discretizationType, mesh);
00476 }

Here is the call graph for this function:

const TinyVector<3,real_t>& ScalarDegreeOfFreedomPositionsSet::vertex ( const size_t &  i  )  const [inline]

const size_t& ScalarDegreeOfFreedomPositionsSet::operator() ( const size_t &  cellNumber,
const size_t &  localDOFNumber 
) const [inline]

Read-only access to the global number of a local degree of freedom in a cell

Returns:
the global number of a cell degree of freedom

Definition at line 84 of file ScalarDegreeOfFreedomPositionsSet.hpp.

References __dofNumber, and __numberOfDOFPerCell.

00086   {
00087     return __dofNumber[cellNumber*__numberOfDOFPerCell + localDOFNumber];
00088   }

const size_t& ScalarDegreeOfFreedomPositionsSet::number (  )  const [inline]


Friends And Related Function Documentation

friend class Builder [friend]

Degrees of freedom set builder

Definition at line 51 of file ScalarDegreeOfFreedomPositionsSet.hpp.


Member Data Documentation

degrees of freedom numbers (stored by cell)

Definition at line 45 of file ScalarDegreeOfFreedomPositionsSet.hpp.

Referenced by ScalarDegreeOfFreedomPositionsSet::Builder::__buildFEM(), and operator()().

number of degrees of freedom carried by a cell

Definition at line 48 of file ScalarDegreeOfFreedomPositionsSet.hpp.

Referenced by ScalarDegreeOfFreedomPositionsSet::Builder::__buildFEM(), and operator()().


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

Generated on Wed Nov 19 00:12:45 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6