#include <oscl_refcounter_memfrag.h>
Public Methods | |
OsclRefCounterMemFrag (OsclMemoryFragment &m, OsclRefCounter *r, uint32 in_capacity) | |
OsclRefCounterMemFrag (const OsclRefCounterMemFrag &x) | |
OsclRefCounterMemFrag () | |
OsclRefCounterMemFrag & | operator= (const OsclRefCounterMemFrag &x) |
~OsclRefCounterMemFrag () | |
OsclRefCounter * | getRefCounter () |
OsclMemoryFragment & | getMemFrag () |
OsclAny * | getMemFragPtr () |
uint32 | getMemFragSize () |
uint32 | getCapacity () |
uint32 | getCount () |
|
Constructor. A valid memory fragment and reference counter are required as input. The memory fragment structure will be copied locally.
|
|
Copy constructor. |
|
Default constructor. |
|
Destructor. Removes this object's reference from the reference counter. The reference counter will not be deleted. The reference counter is designed to self-delete when it's reference count reaches 0. |
|
Returns the capacity of the memory fragment
|
|
Returns the reference counter's current count. |
|
Returns a reference to the contained memory fragment structure. |
|
Returns a pointer to the memory fragment data. |
|
Returns the size of the memory fragment data which equals its filled size.
|
|
Returns a pointer to the contained reference counter object |
|
Assignment Operator |