Open CASCADE Technology  6.9.1
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
NCollection_LocalArray< theItem > Class Template Reference

Auxiliary class optimizing creation of array buffer (using stack allocation for small arrays). More...

#include <NCollection_LocalArray.hxx>

Public Member Functions

 NCollection_LocalArray (const size_t theSize)
 
 NCollection_LocalArray ()
 
 ~NCollection_LocalArray ()
 
void Allocate (const size_t theSize)
 
 operator theItem * () const
 

Static Public Attributes

static const size_t MAX_ARRAY_SIZE = 1024
 

Protected Member Functions

void Deallocate ()
 

Protected Attributes

theItem myBuffer [MAX_ARRAY_SIZE]
 
theItem * myPtr
 

Detailed Description

template<class theItem>
class NCollection_LocalArray< theItem >

Auxiliary class optimizing creation of array buffer (using stack allocation for small arrays).

Constructor & Destructor Documentation

template<class theItem >
NCollection_LocalArray< theItem >::NCollection_LocalArray ( const size_t  theSize)
inline
template<class theItem >
NCollection_LocalArray< theItem >::NCollection_LocalArray ( )
inline
template<class theItem >
NCollection_LocalArray< theItem >::~NCollection_LocalArray ( )
inline

Member Function Documentation

template<class theItem >
void NCollection_LocalArray< theItem >::Allocate ( const size_t  theSize)
inline
template<class theItem >
void NCollection_LocalArray< theItem >::Deallocate ( )
inlineprotected
template<class theItem >
NCollection_LocalArray< theItem >::operator theItem * ( ) const
inline

Field Documentation

template<class theItem >
const size_t NCollection_LocalArray< theItem >::MAX_ARRAY_SIZE = 1024
static
template<class theItem >
theItem NCollection_LocalArray< theItem >::myBuffer[MAX_ARRAY_SIZE]
protected
template<class theItem >
theItem* NCollection_LocalArray< theItem >::myPtr
protected

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