![]() |
PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
|
Ancestor class for managed classes. More...
Ancestor class for managed classes.
Cannot be copied, because the copy should be inserted into the manager's array (and it's unnecessary to implement now).
Definition at line 24 of file PureManager.h.
#include <PureManager.h>
Classes | |
class | PureManagedImpl |
Public Member Functions | |
PureManaged () | |
virtual | ~PureManaged () |
CConsole & | getManagedConsole () const |
Returns access to console preset with logger module name as this class. | |
const PureManaged * | getUtiliser () const |
Returns the managed that utilizes this managed. | |
PureManaged * | getUtiliser () |
Returns the managed that utilizes this managed. | |
void | SetUtiliser (PureManaged *pUtiliser) |
Sets the managed that utilizes this managed. | |
void | DetachFrom () |
Removes the managed from its manager. | |
PureManager * | getManager () const |
Gets the manager of the managed. | |
const std::string & | getName () const |
Gets the name. | |
void | SetName (const std::string &name) |
Sets the name. | |
virtual void | FlushResources () |
This can be used if the specialized managed object has some resources that may be released from memory when not needed anymore. | |
virtual TPureUInt | getUsedSystemMemory () const |
Gets the amount of allocated system memory for this managed. | |
Static Public Member Functions | |
static const char * | getLoggerModuleName () |
Returns the logger module name of this class. | |
Protected Member Functions | |
PureManaged (const PureManaged &other) | |
PureManaged & | operator= (const PureManaged &other) |
Private Attributes | |
PureManagedImpl * | pImpl |
Friends | |
class | PureManager |
class | PureManagerImpl |
PureManaged::PureManaged | ( | ) |
Definition at line 137 of file PureManager.cpp.
|
virtual |
Definition at line 143 of file PureManager.cpp.
|
protected |
Definition at line 285 of file PureManager.cpp.
void PureManaged::DetachFrom | ( | ) |
Removes the managed from its manager.
Actually it calls the public Detach() method of the manager with the this pointer.
Definition at line 227 of file PureManager.cpp.
|
virtual |
This can be used if the specialized managed object has some resources that may be released from memory when not needed anymore.
Reimplemented in PureImage.
Definition at line 265 of file PureManager.cpp.
|
static |
Returns the logger module name of this class.
Intentionally not virtual, so derived class should hide this instead of overriding. Not even private, so user can also access this from outside, for any reason like controlling log filtering per logger module name.
Definition at line 169 of file PureManager.cpp.
CConsole & PureManaged::getManagedConsole | ( | ) | const |
Returns access to console preset with logger module name as this class.
Intentionally not virtual, so the getConsole() in derived class should hide this instead of overriding.
Definition at line 156 of file PureManager.cpp.
PureManager * PureManaged::getManager | ( | ) | const |
Gets the manager of the managed.
Definition at line 237 of file PureManager.cpp.
const std::string & PureManaged::getName | ( | ) | const |
Gets the name.
Definition at line 246 of file PureManager.cpp.
|
virtual |
Gets the amount of allocated system memory for this managed.
Reimplemented in PureFiledManaged, PureImage, PureMaterial, PureMesh3D, PureObject3D, PureTexture, and PureVertexTransfer.
Definition at line 276 of file PureManager.cpp.
PureManaged * PureManaged::getUtiliser | ( | ) |
Returns the managed that utilizes this managed.
The utiliser is another PureManaged instance, usually having different class, and that class becomes complete with the utilised managed instance. For example: every PureMesh3D instance has an associated PureMaterial instance, in this case PureMesh3D instance utilizes a PureMaterial instance, so the latter instance's getUtiliser() returns the PureMesh3D instance. A PureManaged instance can have multiple utilised PureManaged instances, but any PureManaged instance can have maximum 1 utiliser instance.
Definition at line 200 of file PureManager.cpp.
const PureManaged * PureManaged::getUtiliser | ( | ) | const |
Returns the managed that utilizes this managed.
The utiliser is another PureManaged instance, usually having different class, and that class becomes complete with the utilised managed instance. For example: every PureMesh3D instance has an associated PureMaterial instance, in this case PureMesh3D instance utilizes a PureMaterial instance, so the latter instance's getUtiliser() returns the PureMesh3D instance. A PureManaged instance can have multiple utilised PureManaged instances, but any PureManaged instance can have maximum 1 utiliser instance.
Definition at line 184 of file PureManager.cpp.
|
protected |
Definition at line 291 of file PureManager.cpp.
void PureManaged::SetName | ( | const std::string & | name | ) |
Sets the name.
Definition at line 255 of file PureManager.cpp.
void PureManaged::SetUtiliser | ( | PureManaged * | pUtiliser | ) |
Sets the managed that utilizes this managed.
PGENULL is also accepted.
Definition at line 211 of file PureManager.cpp.
|
friend |
Definition at line 65 of file PureManager.h.
|
friend |
Definition at line 66 of file PureManager.h.
|
private |
Definition at line 63 of file PureManager.h.