Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PsNoMemoryAvailableException Class Reference

exception throwed by memory managers when they are unable to allocated memory More...

#include <PsNoMemoryAvailableException.h>

Inheritance diagram for PsNoMemoryAvailableException:

Inheritance graph
[legend]
Collaboration diagram for PsNoMemoryAvailableException:

Collaboration graph
[legend]
List of all members.

Public Methods

 PsNoMemoryAvailableException (const PsString &message, size_t &size)
 constructor

 PsNoMemoryAvailableException (const PsNoMemoryAvailableException &)
 copy constructor

virtual ~PsNoMemoryAvailableException ()
 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 allocated memory

Definition at line 24 of file PsNoMemoryAvailableException.h.


Constructor & Destructor Documentation

PsNoMemoryAvailableException::PsNoMemoryAvailableException const PsString   message,
size_t &    size
 

constructor

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

Definition at line 20 of file PsNoMemoryAvailableException.cxx.

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

PsNoMemoryAvailableException::PsNoMemoryAvailableException const PsNoMemoryAvailableException &   
 

copy constructor

Definition at line 24 of file PsNoMemoryAvailableException.cxx.

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

PsNoMemoryAvailableException::~PsNoMemoryAvailableException   [virtual]
 

destructor

Definition at line 28 of file PsNoMemoryAvailableException.cxx.

00028                                                             {
00029 
00030 }


Member Function Documentation

size_t PsNoMemoryAvailableException::getNeededSize   [virtual]
 

get the requested size that couldn't be allocated

Definition at line 32 of file PsNoMemoryAvailableException.cxx.

References _sizeAskedFor.

00032                                                    {
00033    return _sizeAskedFor ;
00034 }


Member Data Documentation

size_t PsNoMemoryAvailableException::_sizeAskedFor [protected]
 

the requested size that couldn't be allocated

Definition at line 45 of file PsNoMemoryAvailableException.h.

Referenced by getNeededSize().


The documentation for this class was generated from the following files:
logo OpenMask

Documentation generated on Mon Nov 25 15:26:15 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001