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
284  : _Nblocks(0), _Nallocs(0)
285  { // construct with no blocks or allocations
286  }
unsigned long _Nblocks
Definition: allocators:314
unsigned long _Nallocs
Definition: allocators:315

Member Function Documentation

void stdext::allocators::max_variable_size::allocated ( size_t  _Nx = 1)
inline
304  { // increment allocated count
305  _Nallocs = (unsigned long)(_Nallocs + _Nx);
306  }
_In_ long
Definition: corecrt_wstdlib.h:88
unsigned long _Nallocs
Definition: allocators:315
void stdext::allocators::max_variable_size::deallocated ( size_t  _Nx = 1)
inline
309  { // decrement allocated count
310  _Nallocs = (unsigned long)(_Nallocs - _Nx);
311  }
_In_ long
Definition: corecrt_wstdlib.h:88
unsigned long _Nallocs
Definition: allocators:315
bool stdext::allocators::max_variable_size::full ( ) const
inline
289  { // test for full
290  return (_Nallocs / 16 + 16 <= _Nblocks);
291  }
unsigned long _Nblocks
Definition: allocators:314
unsigned long _Nallocs
Definition: allocators:315
void stdext::allocators::max_variable_size::released ( )
inline
299  { // decrement saved count
300  --_Nblocks;
301  }
unsigned long _Nblocks
Definition: allocators:314
void stdext::allocators::max_variable_size::saved ( )
inline
294  { // increment saved count
295  ++_Nblocks;
296  }
unsigned long _Nblocks
Definition: allocators:314

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: