Definition at line 306 of file PureManager.cpp.
◆ ~PureManagerImpl()
PureManager::PureManagerImpl::~PureManagerImpl |
( |
| ) |
|
|
virtual |
◆ PureManagerImpl() [1/2]
PureManager::PureManagerImpl::PureManagerImpl |
( |
PureManager * | pOwner | ) |
|
|
explicitprivate |
- Parameters
-
pOwner | The public class owning this pimpl object. |
Definition at line 510 of file PureManager.cpp.
◆ PureManagerImpl() [2/2]
PureManager::PureManagerImpl::PureManagerImpl |
( |
const PureManagerImpl & | other | ) |
|
|
private |
◆ Attach()
void PureManager::PureManagerImpl::Attach |
( |
PureManaged & | m | ) |
|
◆ createManaged()
TPureInt PureManager::PureManagerImpl::createManaged |
( |
| ) |
|
|
private |
Gets an index to a free slot for a new managed object.
If there is 1 free slot somewhere, that's index will be returned, otherwise it'll allocate a new slot.
- Returns
- Non-zero index to a free slot, -1 on error.
Definition at line 590 of file PureManager.cpp.
◆ DeleteAll()
void PureManager::PureManagerImpl::DeleteAll |
( |
| ) |
|
◆ DeleteAttachedInstance()
void PureManager::PureManagerImpl::DeleteAttachedInstance |
( |
PureManaged & | m | ) |
|
◆ Detach() [1/2]
void PureManager::PureManagerImpl::Detach |
( |
PureManaged & | m | ) |
|
◆ Detach() [2/2]
void PureManager::PureManagerImpl::Detach |
( |
TPureInt | ind | ) |
|
|
private |
Removes the given indexed object from the array (but doesn't destructs it!).
This is called by the public version of this function and by DeleteManagedInstance(). Nulls parentMgr because maybe we don't want to destruct the managed, just release it from the manager.
Definition at line 611 of file PureManager.cpp.
◆ getAttachedAt()
◆ getAttachedIndex()
◆ getCount()
TPureInt PureManager::PureManagerImpl::getCount |
( |
| ) |
const |
◆ getSize()
TPureInt PureManager::PureManagerImpl::getSize |
( |
| ) |
const |
◆ getUsedSystemMemory()
TPureUInt PureManager::PureManagerImpl::getUsedSystemMemory |
( |
| ) |
const |
◆ hasAttached()
◆ isEmpty()
TPureBool PureManager::PureManagerImpl::isEmpty |
( |
| ) |
const |
◆ operator=()
◆ PreAlloc()
void PureManager::PureManagerImpl::PreAlloc |
( |
TPureInt | count | ) |
|
◆ preAlloc()
Extends the array by the given value.
So if it has 4 manageds and count is 10, then the total number of slots will be 14. Only positive value is accepted. Sometimes its good to preallocate many slots only once instead of allocation over and over a few new slots, to avoid memory fragmentation.
- Returns
- The first free slot of the NEW slots. -1 if the given parameter is not positive or allocation error occurred.
Definition at line 554 of file PureManager.cpp.
◆ PureManager
◆ _pOwner
The owner public object who creates this pimpl object.
Definition at line 331 of file PureManager.cpp.
◆ nManagedAllocated
TPureInt PureManager::PureManagerImpl::nManagedAllocated |
|
private |
Number of allocated slots for managed objects, nManagedAllocated >= nManagedCount, only readable for descendants: getSize().
Definition at line 333 of file PureManager.cpp.
◆ nManagedCount
TPureInt PureManager::PureManagerImpl::nManagedCount |
|
private |
◆ pManageds
The documentation for this class was generated from the following file: