|
TuttleOFX
1
|


Public Member Functions | |
| PoolData (IPool &pool, const std::size_t size) | |
| ~PoolData () | |
| bool | operator== (const PoolData &other) const |
| void | addRef () |
| void | release () |
| char * | data () |
| const char * | data () const |
| const std::size_t | size () const |
| const std::size_t | reservedSize () const |
Private Member Functions | |
| PoolData () | |
| No default Ctor. | |
| PoolData (const PoolData &) | |
| No copy Ctor. | |
Private Attributes | |
| IPool & | _pool |
| ref to the owner pool | |
| const std::size_t | _id |
| unique id to identify one memory data | |
| const std::size_t | _reservedSize |
| memory allocated | |
| std::size_t | _size |
| memory requested | |
| char *const | _pData |
| own the data | |
| int | _refCount |
| counter on clients currently using this data | |
Static Private Attributes | |
| static std::size_t | _count = 0 |
| unique id generator | |
Friends | |
| class | MemoryPool |
Definition at line 13 of file MemoryPool.cpp.
| tuttle::host::memory::PoolData::PoolData | ( | ) | [private] |
No default Ctor.
| tuttle::host::memory::PoolData::PoolData | ( | const PoolData & | ) | [private] |
No copy Ctor.
| tuttle::host::memory::PoolData::PoolData | ( | IPool & | pool, |
| const std::size_t | size | ||
| ) | [inline] |
Definition at line 21 of file MemoryPool.cpp.
| tuttle::host::memory::PoolData::~PoolData | ( | ) | [inline] |
Definition at line 30 of file MemoryPool.cpp.
References _pData.
| void tuttle::host::memory::PoolData::addRef | ( | ) | [virtual] |
Implements tuttle::host::memory::IUnknown.
Definition at line 71 of file MemoryPool.cpp.
References _pool, _refCount, and tuttle::host::memory::IPool::referenced().

| char* tuttle::host::memory::PoolData::data | ( | ) | [inline, virtual] |
Implements tuttle::host::memory::IPoolData.
Definition at line 44 of file MemoryPool.cpp.
References _pData.
Referenced by tuttle::host::memory::MemoryPool::referenced().
| const char* tuttle::host::memory::PoolData::data | ( | ) | const [inline, virtual] |
Implements tuttle::host::memory::IPoolData.
Definition at line 45 of file MemoryPool.cpp.
References _pData.
| bool tuttle::host::memory::PoolData::operator== | ( | const PoolData & | other | ) | const [inline] |
Definition at line 36 of file MemoryPool.cpp.
References _id.
| void tuttle::host::memory::PoolData::release | ( | ) | [virtual] |
Implements tuttle::host::memory::IUnknown.
Definition at line 77 of file MemoryPool.cpp.
References _pool, _refCount, and tuttle::host::memory::IPool::released().

| const std::size_t tuttle::host::memory::PoolData::reservedSize | ( | ) | const [inline, virtual] |
Implements tuttle::host::memory::IPoolData.
Definition at line 47 of file MemoryPool.cpp.
References _reservedSize.
| const std::size_t tuttle::host::memory::PoolData::size | ( | ) | const [inline, virtual] |
Implements tuttle::host::memory::IPoolData.
Definition at line 46 of file MemoryPool.cpp.
References _size.
friend class MemoryPool [friend] |
Definition at line 18 of file MemoryPool.cpp.
std::size_t tuttle::host::memory::PoolData::_count = 0 [static, private] |
unique id generator
Definition at line 50 of file MemoryPool.cpp.
const std::size_t tuttle::host::memory::PoolData::_id [private] |
unique id to identify one memory data
Definition at line 52 of file MemoryPool.cpp.
Referenced by operator==().
char* const tuttle::host::memory::PoolData::_pData [private] |
IPool& tuttle::host::memory::PoolData::_pool [private] |
ref to the owner pool
Definition at line 51 of file MemoryPool.cpp.
int tuttle::host::memory::PoolData::_refCount [private] |
counter on clients currently using this data
Definition at line 56 of file MemoryPool.cpp.
const std::size_t tuttle::host::memory::PoolData::_reservedSize [private] |
std::size_t tuttle::host::memory::PoolData::_size [private] |
memory requested
Definition at line 54 of file MemoryPool.cpp.
Referenced by tuttle::host::memory::MemoryPool::allocate(), and size().