#include <DegreeOfFreedomPositionsSet.hpp>
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 |
Definition at line 35 of file DegreeOfFreedomPositionsSet.hpp.
| DegreeOfFreedomPositionsSet::DegreeOfFreedomPositionsSet | ( | ) | [inline] |
| 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 }

| void DegreeOfFreedomPositionsSet::add | ( | ConstReferenceCounting< ScalarDegreeOfFreedomPositionsSet > | dofPositionSet | ) | [inline] |
Adds a position set to the list
| 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
| i | variable number |
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
Definition at line 70 of file DegreeOfFreedomPositionsSet.hpp.
References __positionsSet.
Referenced by DegreeOfFreedomSet::DegreeOfFreedomSet().
00071 { 00072 return __positionsSet.size(); 00073 }
std::vector<ConstReferenceCounting<ScalarDegreeOfFreedomPositionsSet> > DegreeOfFreedomPositionsSet::__positionsSet [private] |
position list
Definition at line 39 of file DegreeOfFreedomPositionsSet.hpp.
Referenced by add(), number(), operator[](), and ~DegreeOfFreedomPositionsSet().
1.5.6