StaticPool< BaseT, TMaxVerts > Class Template Reference
[Hybrid Mesh Module]
#include <StaticPool.hpp>
List of all members.
Classes |
struct | allObj |
struct | atBoundary |
class | constIterator |
class | Iterator |
struct | notBroken |
Public Types |
typedef VtsSqId< TMaxVerts > | VtsId |
typedef unordered_map< VtsId,
uTind > | HashPosByVts |
typedef HashPosByVts::value_type | VtsPos |
typedef HashPosByVts::iterator | Vts2posIter |
typedef
HashPosByVts::const_iterator | Vts2posCIter |
typedef BaseT * | BaseTPtr |
Public Member Functions |
| StaticPool (hHybridMesh *mesh) |
| ~StaticPool () |
uTind | last () const |
BaseT * | end () const |
uTind | size () const |
uTind | capacity () const |
bool | empty () const |
void | clear () |
void | reserve (const uTind newCapacity, uTind newCapacityB=0, bool forceResize=false) |
void | reallocate (const uTind newCapacity, uTlong newCapacityB=0, bool forceResize=false) |
void | rebuildVts2Pos () |
uTind | hashSize () const |
void | updateHashSize () |
void | rebuildHash () |
void | checkHash () const |
BaseT & | first () |
const BaseT & | first () const |
BaseT & | at (const uTind pos_) |
template<class RetType > |
RetType & | at (const uTind pos_) |
const BaseT & | at (const uTind pos_) const |
template<class RetType > |
const RetType & | at (const uTind pos_) const |
BaseT & | getById (const ID id) |
template<class RetType > |
RetType & | getById (const ID id) |
const BaseT & | getById (const ID id) const |
template<class RetType > |
const RetType & | getById (const ID id) const |
const BaseT & | operator[] (const Tind pos_) const |
BaseT & | operator[] (const Tind pos_) |
const BaseT & | operator() (const ID id) const |
BaseT & | operator() (const ID id) |
template<class T > |
T * | newObj (hHybridMesh *myMesh, const uTind verts[], void *memPtr=NULL) |
uTlong | totalMemory () const |
uTlong | usedMemory () const |
void | requestChange (const Tind sizeChange, const Tlong memChange) |
uTlong | memoryNeeded () const |
void | adjust () |
uTind | nonDividedObjs () const |
std::ofstream & | operator<< (std::ofstream &stream) |
std::ifstream & | operator>> (std::ifstream &stream) |
constIterator< notBroken > | begin () const |
Iterator< notBroken > | begin () |
std::ostream & | write (std::ostream &stream) const |
std::istream & | read (std::istream &stream) |
Public Attributes |
uTind | dividedObjs_ |
HashPosByVts | vts2pos_ |
Friends |
template<class T , int T1> |
std::ostream & | operator<< (std::ostream &os, const StaticPool< T, T1 > &pool) |
template<class T , int T1> |
std::istream & | operator>> (std::istream &os, const StaticPool< T, T1 > &pool) |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
class StaticPool< BaseT, TMaxVerts >
Member Typedef Documentation
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
Constructor & Destructor Documentation
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
Member Function Documentation
template<class BaseT, int TMaxVerts = BaseT::nVerts>
Pre: +all markings have beed done (correctly). + pool is not empty
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class RetType >
const RetType& StaticPool< BaseT, TMaxVerts >::at |
( |
const uTind |
pos_ |
) |
const [inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
const BaseT& StaticPool< BaseT, TMaxVerts >::at |
( |
const uTind |
pos_ |
) |
const [inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class RetType >
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
bool StaticPool< BaseT, TMaxVerts >::empty |
( |
|
) |
const [inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
BaseT* StaticPool< BaseT, TMaxVerts >::end |
( |
|
) |
const [inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
const BaseT& StaticPool< BaseT, TMaxVerts >::first |
( |
|
) |
const [inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
BaseT& StaticPool< BaseT, TMaxVerts >::first |
( |
|
) |
[inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class RetType >
const RetType& StaticPool< BaseT, TMaxVerts >::getById |
( |
const ID |
id |
) |
const [inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
const BaseT& StaticPool< BaseT, TMaxVerts >::getById |
( |
const ID |
id |
) |
const [inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class RetType >
RetType& StaticPool< BaseT, TMaxVerts >::getById |
( |
const ID |
id |
) |
[inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
BaseT& StaticPool< BaseT, TMaxVerts >::getById |
( |
const ID |
id |
) |
[inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class T >
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
BaseT& StaticPool< BaseT, TMaxVerts >::operator() |
( |
const ID |
id |
) |
[inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
const BaseT& StaticPool< BaseT, TMaxVerts >::operator() |
( |
const ID |
id |
) |
const [inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
std::ofstream& StaticPool< BaseT, TMaxVerts >::operator<< |
( |
std::ofstream & |
stream |
) |
[inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
std::ifstream& StaticPool< BaseT, TMaxVerts >::operator>> |
( |
std::ifstream & |
stream |
) |
[inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
BaseT& StaticPool< BaseT, TMaxVerts >::operator[] |
( |
const Tind |
pos_ |
) |
[inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
const BaseT& StaticPool< BaseT, TMaxVerts >::operator[] |
( |
const Tind |
pos_ |
) |
const [inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
std::istream& StaticPool< BaseT, TMaxVerts >::read |
( |
std::istream & |
stream |
) |
[inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
void StaticPool< BaseT, TMaxVerts >::reallocate |
( |
const uTind |
newCapacity, |
|
|
uTlong |
newCapacityB = 0 , |
|
|
bool |
forceResize = false | |
|
) |
| | [inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
void StaticPool< BaseT, TMaxVerts >::reserve |
( |
const uTind |
newCapacity, |
|
|
uTind |
newCapacityB = 0 , |
|
|
bool |
forceResize = false | |
|
) |
| | [inline] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
std::ostream& StaticPool< BaseT, TMaxVerts >::write |
( |
std::ostream & |
stream |
) |
const [inline] |
Friends And Related Function Documentation
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class T , int T1>
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const StaticPool< T, T1 > & |
pool | |
|
) |
| | [friend] |
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class T , int T1>
std::istream& operator>> |
( |
std::istream & |
os, |
|
|
const StaticPool< T, T1 > & |
pool | |
|
) |
| | [friend] |
Member Data Documentation
template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class BaseT, int TMaxVerts = BaseT::nVerts>
The documentation for this class was generated from the following file: