PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
Loading...
Searching...
No Matches
PureManaged::PureManagedImpl Class Reference

Detailed Description

Definition at line 16 of file PureManagedImpl.h.

#include <PureManagedImpl.h>

Public Member Functions

virtual ~PureManagedImpl ()
 
void DetachFrom ()
 Removes the managed from its manager.
 
PureManagergetManager () 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.
 

Protected Member Functions

 PureManagedImpl (PureManaged *owner)
 
 PureManagedImpl (const PureManagedImpl &other)
 
PureManagedImploperator= (const PureManagedImpl &other)
 

Private Attributes

PureManaged_pOwner
 Public instance of which private part is this.
 
PureManagerpParentMgr
 Who manages this; descendants can read it through getManager().
 
PureManagedpUtiliser
 Who utilizes this managed.
 
std::string sName
 Name.
 

Static Private Attributes

static TPureInt nManagedsTotal = 0
 

Friends

class PureManaged
 
class PureManager
 
class PureManagerImpl
 

Constructor & Destructor Documentation

◆ ~PureManagedImpl()

PureManaged::PureManagedImpl::~PureManagedImpl ( )
virtual

Definition at line 26 of file PureManager.cpp.

◆ PureManagedImpl() [1/2]

PureManaged::PureManagedImpl::PureManagedImpl ( PureManaged * owner)
explicitprotected

Definition at line 101 of file PureManager.cpp.

◆ PureManagedImpl() [2/2]

PureManaged::PureManagedImpl::PureManagedImpl ( const PureManagedImpl & other)
protected

Definition at line 111 of file PureManager.cpp.

Member Function Documentation

◆ DetachFrom()

void PureManaged::PureManagedImpl::DetachFrom ( )

Removes the managed from its manager.

Actually it calls the public Detach() method of the manager with the this pointer.

Definition at line 39 of file PureManager.cpp.

◆ FlushResources()

void PureManaged::PureManagedImpl::FlushResources ( )
virtual

This can be used if the specialized managed object has some resources that may be released from memory when not needed anymore.

Definition at line 80 of file PureManager.cpp.

◆ getManager()

PureManager * PureManaged::PureManagedImpl::getManager ( ) const

Gets the manager of the managed.

Returns
Pointer to manager.

Definition at line 52 of file PureManager.cpp.

◆ getName()

const std::string & PureManaged::PureManagedImpl::getName ( ) const

Gets the name.

Definition at line 61 of file PureManager.cpp.

◆ getUsedSystemMemory()

TPureUInt PureManaged::PureManagedImpl::getUsedSystemMemory ( ) const
virtual

Gets the amount of allocated system memory for this managed.

Memory usage of owned managed objects are NOT calculated here.

Returns
Amount of used system memory in Bytes.

Definition at line 92 of file PureManager.cpp.

◆ operator=()

PureManaged::PureManagedImpl & PureManaged::PureManagedImpl::operator= ( const PureManagedImpl & other)
protected

Definition at line 116 of file PureManager.cpp.

◆ SetName()

void PureManaged::PureManagedImpl::SetName ( const std::string & name)

Sets the name.

Definition at line 70 of file PureManager.cpp.

Friends And Related Symbol Documentation

◆ PureManaged

friend class PureManaged
friend

Definition at line 54 of file PureManagedImpl.h.

◆ PureManager

friend class PureManager
friend

Definition at line 55 of file PureManagedImpl.h.

◆ PureManagerImpl

friend class PureManagerImpl
friend

Definition at line 56 of file PureManagedImpl.h.

Member Data Documentation

◆ _pOwner

PureManaged* PureManaged::PureManagedImpl::_pOwner
private

Public instance of which private part is this.

Definition at line 49 of file PureManagedImpl.h.

◆ nManagedsTotal

TPureInt PureManaged::PureManagedImpl::nManagedsTotal = 0
staticprivate

Definition at line 45 of file PureManagedImpl.h.

◆ pParentMgr

PureManager* PureManaged::PureManagedImpl::pParentMgr
private

Who manages this; descendants can read it through getManager().

Definition at line 50 of file PureManagedImpl.h.

◆ pUtiliser

PureManaged* PureManaged::PureManagedImpl::pUtiliser
private

Who utilizes this managed.

Definition at line 51 of file PureManagedImpl.h.

◆ sName

std::string PureManaged::PureManagedImpl::sName
private

Name.

Definition at line 52 of file PureManagedImpl.h.


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