#include <utilities/pointer_interface.h>
Inherited by nitro::Pointer< stored_type, memory_handler >.
Public Member Functions | |
PointerInterface (void) | |
virtual void | Allocate (std::size_t theItemCount)=0 |
virtual void | Release (void)=0 |
virtual | ~PointerInterface () |
Protected Attributes | |
std::size_t | ItemCount |
Class describes interface for pointers
Definition at line 36 of file pointer_interface.h.
nitro::PointerInterface::PointerInterface | ( | void | ) |
Constructor.
Definition at line 8 of file pointer_interface.cpp.
References ItemCount.
{ ItemCount = 0; }
nitro::PointerInterface::~PointerInterface | ( | ) | [virtual] |
Destructor.
Definition at line 13 of file pointer_interface.cpp.
References ItemCount.
{ try { ItemCount = 0; } catch( ... ) { } }
virtual void nitro::PointerInterface::Allocate | ( | std::size_t | theItemCount | ) | [pure virtual] |
Function allocates memory for theItemCount elements.
theItemCount | - Count of elements for wich memory will be allocated. |
nitro::exception | Exception of this type is throw. It contains a description of the occured error. |
Implemented in nitro::Pointer< stored_type, memory_handler >.
virtual void nitro::PointerInterface::Release | ( | void | ) | [pure virtual] |
Function deallocates all allocated memory.
nitro::exception | Exception of this type is throw. It contains a description of the occured error. |
Implemented in nitro::Pointer< stored_type, memory_handler >.
std::size_t nitro::PointerInterface::ItemCount [protected] |
Count of the stored elements.
Definition at line 111 of file pointer_interface.h.
Referenced by nitro::Pointer< stored_type, memory_handler >::Allocate(), nitro::Pointer< stored_type, memory_handler >::GetBufferSize(), nitro::Pointer< stored_type, memory_handler >::operator=(), nitro::Pointer< stored_type, memory_handler >::Pointer(), PointerInterface(), nitro::Pointer< stored_type, memory_handler >::Release(), and ~PointerInterface().