OMK::NoMemoryAvailableException Class Reference

Exception throwed by memory managers when they are unable to allocate memory. More...

#include <OMKNoMemoryAvailableException.h>

Inheritance diagram for OMK::NoMemoryAvailableException:

Inheritance graph
[legend]
Collaboration diagram for OMK::NoMemoryAvailableException:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NoMemoryAvailableException (const std::string &message, size_t &size)
 constructor
 NoMemoryAvailableException (const NoMemoryAvailableException &)
 copy constructor
virtual ~NoMemoryAvailableException ()
 destructor
virtual size_t getNeededSize ()
 get the requested size that couldn't be allocated

Protected Attributes

size_t _sizeAskedFor
 the requested size that couldn't be allocated

Detailed Description

Exception throwed by memory managers when they are unable to allocate memory.

Definition at line 26 of file OMKNoMemoryAvailableException.h.


Constructor & Destructor Documentation

NoMemoryAvailableException::NoMemoryAvailableException ( const std::string &  message,
size_t &  size 
)

constructor

Parameters:
message the exception message
size the size that couldn't be allocated

Definition at line 21 of file OMKNoMemoryAvailableException.cpp.

00021                                                                                                     : Exception(mess), _sizeAskedFor(sizeAskedFor) {
00022    //cerr<<"construction de l'exception"<<endl;
00023 }

NoMemoryAvailableException::NoMemoryAvailableException ( const NoMemoryAvailableException  ) 

copy constructor

Definition at line 25 of file OMKNoMemoryAvailableException.cpp.

00025                                                                                               : Exception(orig), _sizeAskedFor(orig._sizeAskedFor) {
00026    //cerr<<"copie de l'exception"<<endl;
00027 }

NoMemoryAvailableException::~NoMemoryAvailableException (  )  [virtual]

destructor

Definition at line 29 of file OMKNoMemoryAvailableException.cpp.

00029                                                         {
00030 
00031 }


Member Function Documentation

size_t NoMemoryAvailableException::getNeededSize (  )  [virtual]

get the requested size that couldn't be allocated

Definition at line 33 of file OMKNoMemoryAvailableException.cpp.

References _sizeAskedFor.

00033                                                  {
00034    return _sizeAskedFor ;
00035 }


Member Data Documentation

size_t OMK::NoMemoryAvailableException::_sizeAskedFor [protected]

the requested size that couldn't be allocated

Definition at line 48 of file OMKNoMemoryAvailableException.h.

Referenced by getNeededSize().


logo OpenMask

Documentation generated on Mon Jun 9 11:46:01 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007