Classes | Namespaces | Defines

managers/object_manager.h File Reference

#include <string>
#include <utility>
#include <vector>
#include <utilities/exception.h>
Include dependency graph for object_manager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nitro::ObjectManagerBasic< managing_class >
 Class provides routine for storing of various objects. More...
class  nitro::ObjectManager< managing_class >
 Class provides routine for storing of various objects. More...
class  nitro::LocalObjectManager< managing_class >
 Class provides routine for storing of various objects. More...

Namespaces

namespace  nitro

Defines

#define DECLARE_SQUARE_BRACE_OPERATOR_REF_LOCATOR(TYPE_NAME)   TYPE_NAME * operator[]( const char * ObjectName );
#define DEFINE_SQUARE_BRACE_OPERATOR_REF_LOCATOR(TYPE_NAME, CLASS_NAME, FIELD_NAME)
#define DECLARE_SQUARE_BRACE_OPERATOR_REF_CURSOR(TYPE_NAME)   template< class numeric >TYPE_NAME * operator[]( const numeric ObjectCursor );
#define DEFINE_SQUARE_BRACE_OPERATOR_REF_CURSOR(TYPE_NAME, CLASS_NAME, FIELD_NAME)
#define DECLARE_RELEASE_FUNCTION(FUNCTION_NAME, FIELD_NAME)   void FUNCTION_NAME( void );
#define DEFINE_RELEASE_FUNCTION(CLASS_NAME, FUNCTION_NAME, FIELD_NAME)

Define Documentation

#define DECLARE_RELEASE_FUNCTION (   FUNCTION_NAME,
  FIELD_NAME 
)    void FUNCTION_NAME( void );

Definition at line 959 of file object_manager.h.

#define DECLARE_SQUARE_BRACE_OPERATOR_REF_CURSOR (   TYPE_NAME  )     template< class numeric >TYPE_NAME * operator[]( const numeric ObjectCursor );

Definition at line 939 of file object_manager.h.

#define DECLARE_SQUARE_BRACE_OPERATOR_REF_LOCATOR (   TYPE_NAME  )     TYPE_NAME * operator[]( const char * ObjectName );

Definition at line 919 of file object_manager.h.

#define DEFINE_RELEASE_FUNCTION (   CLASS_NAME,
  FUNCTION_NAME,
  FIELD_NAME 
)
Value:
void                                                                    CLASS_NAME::FUNCTION_NAME( void )\
                {\
                        try\
                        {\
                                for( std::size_t i( 0 ) ; i < FIELD_NAME.Count() ; i++ )\
                                {\
                                        delete FIELD_NAME[ ( int )i ];\
                                }\
                                FIELD_NAME.Release();\
                        }\
                        catch( nitro::exception e )\
                        {\
                                throw( nitro::exception( std::string( "INHERITER::Release( void )::" ) + e.what() , e.code() ) );\
                        }\
                        catch( ... )\
                        {\
                                throw( nitro::exception( std::string( "INHERITER::Release( void )::An error occured" ) , 1 ) );\
                        }\
                }

Definition at line 962 of file object_manager.h.

#define DEFINE_SQUARE_BRACE_OPERATOR_REF_CURSOR (   TYPE_NAME,
  CLASS_NAME,
  FIELD_NAME 
)
Value:
template< class numeric >TYPE_NAME *    CLASS_NAME::operator[]( const numeric ObjectCursor )\
                {\
                        try\
                        {\
                                return( &( * FIELD_NAME[ ObjectCursor ] ) );\
                        }\
                        catch( nitro::exception e )\
                        {\
                                throw( nitro::exception( std::string( "INHERITER::operator[]( numeric ObjectCursor )::" ) + e.what() , e.code() ) );\
                        }\
                        catch( ... )\
                        {\
                                throw( nitro::exception( std::string( "INHERITER::operator[]( numeric ObjectCursor )::An error occured" ) , 1 ) );\
                        }\
                }

Definition at line 942 of file object_manager.h.

#define DEFINE_SQUARE_BRACE_OPERATOR_REF_LOCATOR (   TYPE_NAME,
  CLASS_NAME,
  FIELD_NAME 
)
Value:
TYPE_NAME *                                                             CLASS_NAME::operator[]( const char * ObjectName )\
                {\
                        try\
                        {\
                                return( &( * FIELD_NAME[ ObjectName ] ) );\
                        }\
                        catch( nitro::exception e )\
                        {\
                                throw( nitro::exception( std::string( "INHERITER::operator[]( const char * ObjectName )::" ) + e.what() , e.code() ) );\
                        }\
                        catch( ... )\
                        {\
                                throw( nitro::exception( std::string( "INHERITER::operator[]( const char * ObjectName )::An error occured" ) , 1 ) );\
                        }\
                }

Definition at line 922 of file object_manager.h.


Generated by  doxygen 1.6.1