StaticPool< BaseT, TMaxVerts > Class Template Reference
[Hybrid Mesh Module]

#include <StaticPool.hpp>

Collaboration diagram for StaticPool< BaseT, TMaxVerts >:
Collaboration graph
[legend]

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 >
TnewObj (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< notBrokenbegin () const
Iterator< notBrokenbegin ()
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>
typedef BaseT* StaticPool< BaseT, TMaxVerts >::BaseTPtr
template<class BaseT, int TMaxVerts = BaseT::nVerts>
typedef unordered_map< VtsId, uTind> StaticPool< BaseT, TMaxVerts >::HashPosByVts
template<class BaseT, int TMaxVerts = BaseT::nVerts>
typedef HashPosByVts::const_iterator StaticPool< BaseT, TMaxVerts >::Vts2posCIter
template<class BaseT, int TMaxVerts = BaseT::nVerts>
typedef HashPosByVts::iterator StaticPool< BaseT, TMaxVerts >::Vts2posIter
template<class BaseT, int TMaxVerts = BaseT::nVerts>
typedef VtsSqId<TMaxVerts> StaticPool< BaseT, TMaxVerts >::VtsId
template<class BaseT, int TMaxVerts = BaseT::nVerts>
typedef HashPosByVts::value_type StaticPool< BaseT, TMaxVerts >::VtsPos

Constructor & Destructor Documentation

template<class BaseT, int TMaxVerts = BaseT::nVerts>
StaticPool< BaseT, TMaxVerts >::StaticPool ( hHybridMesh mesh  )  [inline]
template<class BaseT, int TMaxVerts = BaseT::nVerts>
StaticPool< BaseT, TMaxVerts >::~StaticPool (  )  [inline]

Member Function Documentation

template<class BaseT, int TMaxVerts = BaseT::nVerts>
void StaticPool< BaseT, TMaxVerts >::adjust (  )  [inline]

Pre: +all markings have beed done (correctly). + pool is not empty

Here is the caller graph for this function:

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 >
RetType& StaticPool< BaseT, TMaxVerts >::at ( const uTind  pos_  )  [inline]
template<class BaseT, int TMaxVerts = BaseT::nVerts>
BaseT& StaticPool< BaseT, TMaxVerts >::at ( const uTind  pos_  )  [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
Iterator<notBroken> StaticPool< BaseT, TMaxVerts >::begin (  )  [inline]
template<class BaseT, int TMaxVerts = BaseT::nVerts>
constIterator<notBroken> StaticPool< BaseT, TMaxVerts >::begin (  )  const [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
uTind StaticPool< BaseT, TMaxVerts >::capacity (  )  const [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
void StaticPool< BaseT, TMaxVerts >::checkHash (  )  const [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
void StaticPool< BaseT, TMaxVerts >::clear (  )  [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
bool StaticPool< BaseT, TMaxVerts >::empty (  )  const [inline]

Here is the caller graph for this function:

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]

Here is the caller graph for this function:

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]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
uTind StaticPool< BaseT, TMaxVerts >::hashSize (  )  const [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
uTind StaticPool< BaseT, TMaxVerts >::last (  )  const [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
uTlong StaticPool< BaseT, TMaxVerts >::memoryNeeded (  )  const [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
template<class T >
T* StaticPool< BaseT, TMaxVerts >::newObj ( hHybridMesh myMesh,
const uTind  verts[],
void memPtr = NULL 
) [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
uTind StaticPool< BaseT, TMaxVerts >::nonDividedObjs (  )  const [inline]

Here is the caller graph for this function:

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]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
void StaticPool< BaseT, TMaxVerts >::reallocate ( const uTind  newCapacity,
uTlong  newCapacityB = 0,
bool  forceResize = false 
) [inline]

!

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
void StaticPool< BaseT, TMaxVerts >::rebuildHash (  )  [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
void StaticPool< BaseT, TMaxVerts >::rebuildVts2Pos (  )  [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
void StaticPool< BaseT, TMaxVerts >::requestChange ( const Tind  sizeChange,
const Tlong  memChange 
) [inline]
template<class BaseT, int TMaxVerts = BaseT::nVerts>
void StaticPool< BaseT, TMaxVerts >::reserve ( const uTind  newCapacity,
uTind  newCapacityB = 0,
bool  forceResize = false 
) [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
uTind StaticPool< BaseT, TMaxVerts >::size (  )  const [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
uTlong StaticPool< BaseT, TMaxVerts >::totalMemory (  )  const [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
void StaticPool< BaseT, TMaxVerts >::updateHashSize (  )  [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
uTlong StaticPool< BaseT, TMaxVerts >::usedMemory (  )  const [inline]

Here is the caller graph for this function:

template<class BaseT, int TMaxVerts = BaseT::nVerts>
std::ostream& StaticPool< BaseT, TMaxVerts >::write ( std::ostream &  stream  )  const [inline]

Here is the caller graph for this function:


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>
uTind StaticPool< BaseT, TMaxVerts >::dividedObjs_
template<class BaseT, int TMaxVerts = BaseT::nVerts>
HashPosByVts StaticPool< BaseT, TMaxVerts >::vts2pos_

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1