Public Member Functions | Protected Attributes

nitro::PointerInterface Class Reference

#include <utilities/pointer_interface.h>

Inherited by nitro::Pointer< stored_type, memory_handler >.

List of all members.

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

Detailed Description

Class describes interface for pointers

Author:
Dodonov A.A.

Definition at line 36 of file pointer_interface.h.


Constructor & Destructor Documentation

nitro::PointerInterface::PointerInterface ( void   ) 

Constructor.

Author:
Dodonov A.A.

Definition at line 8 of file pointer_interface.cpp.

References ItemCount.

        {
                ItemCount = 0;
        }

nitro::PointerInterface::~PointerInterface (  )  [virtual]

Destructor.

Author:
Dodonov A.A.

Definition at line 13 of file pointer_interface.cpp.

References ItemCount.

        {
                try
                {               
                        ItemCount = 0;
                }
                catch( ... )
                {
                }
        }


Member Function Documentation

virtual void nitro::PointerInterface::Allocate ( std::size_t  theItemCount  )  [pure virtual]

Function allocates memory for theItemCount elements.

Parameters:
theItemCount - Count of elements for wich memory will be allocated.
Exceptions:
nitro::exception Exception of this type is throw. It contains a description of the occured error.
Author:
Dodonov A.A.

Implemented in nitro::Pointer< stored_type, memory_handler >.

virtual void nitro::PointerInterface::Release ( void   )  [pure virtual]

Function deallocates all allocated memory.

Exceptions:
nitro::exception Exception of this type is throw. It contains a description of the occured error.
Author:
Dodonov A.A.

Implemented in nitro::Pointer< stored_type, memory_handler >.


Member Data Documentation

std::size_t nitro::PointerInterface::ItemCount [protected]

The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.1