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
274  : _Nblocks(0), _Nallocs(0)
275  { // construct with no blocks or allocations
276  }
unsigned long _Nblocks
Definition: allocators:304
unsigned long _Nallocs
Definition: allocators:305

Member Function Documentation

void stdext::allocators::max_variable_size::allocated ( size_t  _Nx = 1)
inline
294  { // increment allocated count
295  _Nallocs = (unsigned long)(_Nallocs + _Nx);
296  }
unsigned long _Nallocs
Definition: allocators:305
void stdext::allocators::max_variable_size::deallocated ( size_t  _Nx = 1)
inline
299  { // decrement allocated count
300  _Nallocs = (unsigned long)(_Nallocs - _Nx);
301  }
unsigned long _Nallocs
Definition: allocators:305
bool stdext::allocators::max_variable_size::full ( ) const
inline
279  { // test for full
280  return (_Nallocs / 16 + 16 <= _Nblocks);
281  }
unsigned long _Nblocks
Definition: allocators:304
unsigned long _Nallocs
Definition: allocators:305
void stdext::allocators::max_variable_size::released ( )
inline
289  { // decrement saved count
290  --_Nblocks;
291  }
unsigned long _Nblocks
Definition: allocators:304
void stdext::allocators::max_variable_size::saved ( )
inline
284  { // increment saved count
285  ++_Nblocks;
286  }
unsigned long _Nblocks
Definition: allocators:304

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: