6 #ifndef PZADMCHUNKTHREADSAFE_H 7 #define PZADMCHUNKTHREADSAFE_H 14 template <
class T,
int EXP=10>
38 void Resize(
const int newsize);
52 template<
class T ,
int EXP>
61 template<
class T ,
int EXP>
70 template<
class T ,
int EXP>
79 template<
class T ,
int EXP>
85 template<
class T,
int EXP >
91 template<
class T,
int EXP >
101 template<
class T,
int EXP >
108 template<
class T,
int EXP >
115 template <
class T,
int EXP >
121 template <
class T ,
int EXP>
130 template<
class T,
int EXP >
137 template<
class T,
int EXP >
146 template<
class T,
int EXP>
156 #endif // PZADMCHUNKTHREADSAFE_H #define DEFAULTNUMBEROFCHUNKS
Default number of elements which will be allocated in the chunk vector.
int AllocateNewElement()
Makes more room for new elements.
virtual ~TPZAdmChunkVectorThreadSafe()
pthread_mutex_t fAdmChunkVectorLock
T & operator[](const int64_t nelem) const
Returns a reference to the ith element of the vector.
TPZAdmChunkVectorThreadSafe< T, EXP > & operator=(const TPZAdmChunkVectorThreadSafe< T, EXP > &TPZAdmCh)
Declarates the TPZBlock<REAL>class which implements block matrices.
int PrintFree(int i)
Print index i into the fFree vector.
int64_t NElements() const
Access method to query the number of elements of the vector.
Implements a chunk vector with free store administration. Utility.
int64_t FindObject(T *object)
Finds the index of an object by its pointer.
void CompactDataStructure(int type=2)
void Resize(const int newsize)
Increase the size of the chunk vector.
TPZAdmChunkVectorThreadSafe(const TPZAdmChunkVectorThreadSafe< T, EXP > &AdmCh)
int64_t NFreeElements() const
Access method to return the number of free elements.
void CompactDataStructure(CompactScheme type=CompactScheme::ALWAYS)
Sets the method to compact the data structure based on the.
T & operator[](const int nelem) const
void SetFree(int index)
Indicate an element as free.
void Resize(const int newsize)
This class defines the interface to save and restore objects from TPZStream objects. Persistency.