Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::MultiBufferT< T > Class Template Reference

Public Types

typedef UniqueArray< T > BufferType

Public Member Functions

 MultiBufferT (Integer buf_size)
 MultiBufferT (const MultiBufferT< T > &ref)
 Copy constructor.
void operator= (const MultiBufferT< T > &ref)
 Copy assignment operator (forbidden).
T * allocOne ()
 Allocates a new element.
ArrayView< T > allocMany (Integer n)
 Allocates n elements.
void clear ()
Integer nbAllocatedBuffer ()
Integer bufferSize () const

Protected Member Functions

void _freeAllocatedBuffers ()

Detailed Description

template<class T>
class Arcane::MultiBufferT< T >

Definition at line 44 of file MultiBuffer.h.

Member Typedef Documentation

◆ BufferType

template<class T>
typedef UniqueArray<T> Arcane::MultiBufferT< T >::BufferType

Definition at line 48 of file MultiBuffer.h.

Constructor & Destructor Documentation

◆ MultiBufferT() [1/3]

template<class T>
Arcane::MultiBufferT< T >::MultiBufferT ( )
inline

Definition at line 52 of file MultiBuffer.h.

◆ MultiBufferT() [2/3]

template<class T>
Arcane::MultiBufferT< T >::MultiBufferT ( Integer buf_size)
inline

Definition at line 59 of file MultiBuffer.h.

◆ MultiBufferT() [3/3]

template<class T>
Arcane::MultiBufferT< T >::MultiBufferT ( const MultiBufferT< T > & ref)
inline

Copy constructor.

Definition at line 68 of file MultiBuffer.h.

◆ ~MultiBufferT()

template<class T>
Arcane::MultiBufferT< T >::~MultiBufferT ( )
inline

Definition at line 75 of file MultiBuffer.h.

Member Function Documentation

◆ _freeAllocatedBuffers()

template<class T>
void Arcane::MultiBufferT< T >::_freeAllocatedBuffers ( )
inlineprotected

Definition at line 139 of file MultiBuffer.h.

◆ allocMany()

template<class T>
ArrayView< T > Arcane::MultiBufferT< T >::allocMany ( Integer n)
inline

Allocates n elements.

Definition at line 106 of file MultiBuffer.h.

◆ allocOne()

template<class T>
T * Arcane::MultiBufferT< T >::allocOne ( )
inline

Allocates a new element.

Definition at line 94 of file MultiBuffer.h.

◆ bufferSize()

template<class T>
Integer Arcane::MultiBufferT< T >::bufferSize ( ) const
inline

Definition at line 135 of file MultiBuffer.h.

◆ clear()

template<class T>
void Arcane::MultiBufferT< T >::clear ( )
inline

Definition at line 127 of file MultiBuffer.h.

◆ nbAllocatedBuffer()

template<class T>
Integer Arcane::MultiBufferT< T >::nbAllocatedBuffer ( )
inline

Definition at line 134 of file MultiBuffer.h.

◆ operator=()

template<class T>
void Arcane::MultiBufferT< T >::operator= ( const MultiBufferT< T > & ref)
inline

Copy assignment operator (forbidden).

Definition at line 83 of file MultiBuffer.h.


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