DegreeOfFreedomPositionsSet Class Reference

#include <DegreeOfFreedomPositionsSet.hpp>

List of all members.

Public Member Functions

void add (ConstReferenceCounting< ScalarDegreeOfFreedomPositionsSet > dofPositionSet)
const
ScalarDegreeOfFreedomPositionsSet
operator[] (const size_t &i) const
size_t number () const
 DegreeOfFreedomPositionsSet ()
 ~DegreeOfFreedomPositionsSet ()

Private Attributes

std::vector
< ConstReferenceCounting
< ScalarDegreeOfFreedomPositionsSet > > 
__positionsSet


Detailed Description

Definition at line 35 of file DegreeOfFreedomPositionsSet.hpp.


Constructor & Destructor Documentation

DegreeOfFreedomPositionsSet::DegreeOfFreedomPositionsSet (  )  [inline]

Constructor

Definition at line 79 of file DegreeOfFreedomPositionsSet.hpp.

00080   {
00081     ;
00082   }

DegreeOfFreedomPositionsSet::~DegreeOfFreedomPositionsSet (  ) 

Destructor

Definition at line 25 of file DegreeOfFreedomPositionsSet.cpp.

References __positionsSet, StaticBase< DegreeOfFreedomSetManager >::instance(), and DegreeOfFreedomSetManager::unsubscribe().

00026 {
00027   for (size_t i=0; i<__positionsSet.size(); ++i) {
00028     DegreeOfFreedomSetManager::instance().unsubscribe(__positionsSet[i]);
00029   }
00030 }

Here is the call graph for this function:


Member Function Documentation

void DegreeOfFreedomPositionsSet::add ( ConstReferenceCounting< ScalarDegreeOfFreedomPositionsSet dofPositionSet  )  [inline]

Adds a position set to the list

Parameters:
dofPositionSet the position set to add

Definition at line 47 of file DegreeOfFreedomPositionsSet.hpp.

References __positionsSet.

00048   {
00049     __positionsSet.push_back(dofPositionSet);
00050   }

const ScalarDegreeOfFreedomPositionsSet& DegreeOfFreedomPositionsSet::operator[] ( const size_t &  i  )  const [inline]

Read-only access to the i th variable's dof positions set

Parameters:
i variable number
Returns:
i th variable's dof positions set

Definition at line 59 of file DegreeOfFreedomPositionsSet.hpp.

References __positionsSet, and ASSERT.

00060   {
00061     ASSERT(i<__positionsSet.size());
00062     return *__positionsSet[i];
00063   }

size_t DegreeOfFreedomPositionsSet::number (  )  const [inline]

Read-only access to the total number of degrees of freedom

Returns:
the total number of degrees of freedom

Definition at line 70 of file DegreeOfFreedomPositionsSet.hpp.

References __positionsSet.

Referenced by DegreeOfFreedomSet::DegreeOfFreedomSet().

00071   {
00072     return __positionsSet.size();
00073   }


Member Data Documentation

position list

Definition at line 39 of file DegreeOfFreedomPositionsSet.hpp.

Referenced by add(), number(), operator[](), and ~DegreeOfFreedomPositionsSet().


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

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