SoMemoryError(3) | Coin | SoMemoryError(3) |
NAME¶
SoMemoryError - The SoMemoryError class is used to inform of problems with memory allocation. Modern operating systems takes care of handling most out of memory conditions for you, but in certain situations it can be wise to do some manual checking and intervention. This class is provided as an aid to help out in these situations.SYNOPSIS¶
#include <Inventor/errors/SoMemoryError.h> Inherits SoError.Public Member Functions¶
virtual SoType getTypeId (void) const
Static Public Member Functions¶
static void setHandlerCallback (SoErrorCB *const callback, void *const data)
Protected Member Functions¶
virtual SoErrorCBPtr getHandler (void *&data) const
Additional Inherited Members¶
Detailed Description¶
The SoMemoryError class is used to inform of problems with memory allocation. Modern operating systems takes care of handling most out of memory conditions for you, but in certain situations it can be wise to do some manual checking and intervention. This class is provided as an aid to help out in these situations.Member Function Documentation¶
void SoMemoryError::setHandlerCallback (SoErrorCB *constfunction, void *constdata) [static]¶
This method sets the error handler callback for messages posted via this class. Note that this will not override the error/debug message handler for subclasses, these will have to be overrided by calling the subclass' setHandlerCallback() method. See also:defaultHandlerCB()
SoErrorCB * SoMemoryError::getHandlerCallback (void) [static]¶
Returns the error handler callback for messages posted via this class. Reimplemented from SoError.void * SoMemoryError::getHandlerData (void) [static]¶
This method returns the pointer used for passing data back to the callback handler method. Reimplemented from SoError.SoType SoMemoryError::getClassTypeId (void) [static]¶
This static method returns the SoType for this class. See also:getTypeId()
SoType SoMemoryError::getTypeId (void) const [virtual]¶
This method returns the SoType of a particular object instance. See also:getClassTypeId()
void SoMemoryError::post (const char *constwhatWasAllocated) [static]¶
Posts a warning about a failed memory allocation. whatWasAllocated should contain a description of what we tried to allocate.void SoMemoryError::initClass (void) [static]¶
This method takes care of initializing all static data for the class. Reimplemented from SoError.SoErrorCB * SoMemoryError::getHandler (void *&data) const [protected], [virtual]¶
This is just a convenience wrapper around the getHandlerCallback() and getHandlerData() methods. Reimplemented from SoError.Author¶
Generated automatically by Doxygen for Coin from the source code.Wed May 23 2012 | Version 3.1.3 |