CoreLinux++
0.4.32
|
Allocator is a Strategy class used by AbstractAllocator and AbstractFactory.Each Allocator instance tracks allocates and deallocates. More...
#include <Allocator.hpp>
Public Member Functions | |
Allocator (void) | |
Default constructor. | |
Allocator (AllocatorCref) | |
Copy constructor. More... | |
virtual | ~Allocator (void) |
Virtual destructor. | |
Allocator & | operator= (AllocatorCref) |
Assingment operator overload. More... | |
bool | operator== (AllocatorCref) const |
Equality operator overload. More... | |
virtual CountCref | getAllocateCount (void) const |
Retrieves the number of allocations by this Allocator. More... | |
virtual CountCref | getDeallocateCount (void) const |
Retrieves the number of deallocations by this Allocator. More... | |
virtual void | incrementAllocates (void) |
Increment the allocates. | |
virtual void | decrementAllocates (void) |
Decrement the allocates. | |
virtual void | incrementDeallocates (void) |
Increment the deallocates. | |
virtual void | decrementDeallocates (void) |
Decrement the deallocates. | |
![]() | |
Strategy (void) | |
Default Constructor. | |
Strategy (StrategyCref) | |
Copy Constructor. More... | |
virtual | ~Strategy (void) |
Virtual Destructor. | |
StrategyRef | operator= (StrategyCref) |
Assignment operator overload. More... | |
bool | operator== (StrategyCref) const |
Equality operator overload. More... | |
bool | operator!= (StrategyCref) const |
Non-equality operator overload. More... | |
Allocator is a Strategy class used by AbstractAllocator and AbstractFactory.Each Allocator instance tracks allocates and deallocates.
corelinux::Allocator::Allocator | ( | AllocatorCref | aRef | ) |
Copy constructor.
Allocator | const reference |
|
virtual |
Retrieves the number of allocations by this Allocator.
|
virtual |
Retrieves the number of deallocations by this Allocator.
AllocatorRef corelinux::Allocator::operator= | ( | AllocatorCref | aRef | ) |
Assingment operator overload.
Allocator | const reference |
Referenced by corelinux::AbstractAllocator< TypeImpl >::operator=().
bool corelinux::Allocator::operator== | ( | AllocatorCref | aRef | ) | const |
Equality operator overload.
Allocator | const reference |
Referenced by corelinux::AbstractAllocator< TypeImpl >::operator==().