STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
stdext::allocators::max_variable_size Class Reference

Public Member Functions

 max_variable_size ()
 
bool full () const
 
void saved ()
 
void released ()
 
void allocated (size_t _Nx=1)
 
void deallocated (size_t _Nx=1)
 

Private Attributes

unsigned long _Nblocks
 
unsigned long _Nallocs
 

Constructor & Destructor Documentation

stdext::allocators::max_variable_size::max_variable_size ( )
inline
280  : _Nblocks(0), _Nallocs(0)
281  { // construct with no blocks or allocations
282  }
unsigned long _Nblocks
Definition: allocators:310
unsigned long _Nallocs
Definition: allocators:311

Member Function Documentation

void stdext::allocators::max_variable_size::allocated ( size_t  _Nx = 1)
inline
300  { // increment allocated count
301  _Nallocs = (unsigned long)(_Nallocs + _Nx);
302  }
unsigned long _Nallocs
Definition: allocators:311
void stdext::allocators::max_variable_size::deallocated ( size_t  _Nx = 1)
inline
305  { // decrement allocated count
306  _Nallocs = (unsigned long)(_Nallocs - _Nx);
307  }
unsigned long _Nallocs
Definition: allocators:311
bool stdext::allocators::max_variable_size::full ( ) const
inline
285  { // test for full
286  return (_Nallocs / 16 + 16 <= _Nblocks);
287  }
unsigned long _Nblocks
Definition: allocators:310
unsigned long _Nallocs
Definition: allocators:311
void stdext::allocators::max_variable_size::released ( )
inline
295  { // decrement saved count
296  --_Nblocks;
297  }
unsigned long _Nblocks
Definition: allocators:310
void stdext::allocators::max_variable_size::saved ( )
inline
290  { // increment saved count
291  ++_Nblocks;
292  }
unsigned long _Nblocks
Definition: allocators:310

Member Data Documentation

unsigned long stdext::allocators::max_variable_size::_Nallocs
private
unsigned long stdext::allocators::max_variable_size::_Nblocks
private

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