VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
CbVectorAllocatorPool< T > Class Template Reference

#include <CbVectorPool.h>

Inheritance diagram for CbVectorAllocatorPool< T >:
CbVectorAllocator< T >

Public Types

using value_type = typename CbVector< T >::value_type
 
using size_type = typename CbVector< value_type >::size_type
 
- Public Types inherited from CbVectorAllocator< T >
using value_type = typename CbVector< T >::value_type
 
using size_type = typename CbVector< value_type >::size_type
 

Public Member Functions

 CbVectorAllocatorPool (const CbVectorAllocatorPool &)=delete
 
const CbVectorAllocatorPool & operator= (const CbVectorAllocatorPool &)=delete
 
 CbVectorAllocatorPool (const typename CbVectorPool< value_type >::CbVectorKey &key, CbVectorPool< value_type > *const &ptrVectorPool)
 
 CbVectorAllocatorPool (CbVectorPool< value_type > *const &ptrVectorPool)
 
bool alloc (CbVector< value_type > &vec, const size_type &dataSize, const value_type &value=value_type()) override
 
bool resize (CbVector< value_type > &vec, const size_type &dataSize, const value_type &value=value_type()) override
 
bool dealloc (CbVector< value_type > &vec) override
 
const CbVectorPool< value_type > & getCbVectorPool ()
 
- Public Member Functions inherited from CbVectorAllocator< T >
 CbVectorAllocator ()=default
 
virtual ~CbVectorAllocator ()=default
 

Friends

class CbVectorPool< value_type >
 

Additional Inherited Members

- Protected Member Functions inherited from CbVectorAllocator< T >
value_type *& ptrDataOf (CbVector< value_type > &vec)
 
size_type & dataSizeOf (CbVector< value_type > &vec)
 

Detailed Description

template<typename T>
class CbVectorAllocatorPool< T >



Author
S. Freudiger
Version
1.0 - 08.11.07
1.1 - 09.02.08

Definition at line 433 of file CbVectorPool.h.

Member Typedef Documentation

◆ size_type

template<typename T >
using CbVectorAllocatorPool< T >::size_type = typename CbVector<value_type>::size_type

Definition at line 438 of file CbVectorPool.h.

◆ value_type

template<typename T >
using CbVectorAllocatorPool< T >::value_type = typename CbVector<T>::value_type

Definition at line 437 of file CbVectorPool.h.

Constructor & Destructor Documentation

◆ CbVectorAllocatorPool() [1/3]

◆ CbVectorAllocatorPool() [2/3]

template<typename T >
CbVectorAllocatorPool< T >::CbVectorAllocatorPool ( const typename CbVectorPool< value_type >::CbVectorKey &  key,
CbVectorPool< value_type > *const &  ptrVectorPool 
)
inline

Definition at line 447 of file CbVectorPool.h.

◆ CbVectorAllocatorPool() [3/3]

template<typename T >
CbVectorAllocatorPool< T >::CbVectorAllocatorPool ( CbVectorPool< value_type > *const &  ptrVectorPool)
inline

Definition at line 456 of file CbVectorPool.h.

Member Function Documentation

◆ alloc()

template<typename T >
bool CbVectorAllocatorPool< T >::alloc ( CbVector< value_type > &  vec,
const size_type &  dataSize,
const value_type &  value = value_type() 
)
inlineoverridevirtual

Implements CbVectorAllocator< T >.

Definition at line 464 of file CbVectorPool.h.

◆ dealloc()

template<typename T >
bool CbVectorAllocatorPool< T >::dealloc ( CbVector< value_type > &  vec)
inlineoverridevirtual

Implements CbVectorAllocator< T >.

Definition at line 478 of file CbVectorPool.h.

◆ getCbVectorPool()

template<typename T >
const CbVectorPool< value_type > & CbVectorAllocatorPool< T >::getCbVectorPool ( )
inline

Definition at line 486 of file CbVectorPool.h.

◆ operator=()

◆ resize()

template<typename T >
bool CbVectorAllocatorPool< T >::resize ( CbVector< value_type > &  vec,
const size_type &  dataSize,
const value_type &  value = value_type() 
)
inlineoverridevirtual

Implements CbVectorAllocator< T >.

Definition at line 471 of file CbVectorPool.h.

Friends And Related Symbol Documentation

◆ CbVectorPool< value_type >

template<typename T >
friend class CbVectorPool< value_type >
friend

Definition at line 426 of file CbVectorPool.h.


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