Anaphe Home Page Reference Documentation

Main Page     Namespaces     Classes     Source Code    

P_Lifetime.h

Go to the documentation of this file.
00001 #ifndef _H_P__LIFETIME_H_
00002 #define _H_P__LIFETIME_H_ 1
00003 
00004 #include "HTL/H_iid.h"
00005 #include "HTL/P_macros.h"
00006 #include <oo.h>
00007 
00008 
00012 template< class T_Bin >
00013 class P_Lifetime
00014 {
00015 public:
00017   H_IID_IMPLEMENT( P_Lifetime );
00018 protected:
00019         P_Lifetime() {}
00020         virtual ~P_Lifetime() {}
00021 public:
00022         typedef ooVString S_String;
00023         //typedef int S_Extra_Index;
00024         // See note [September 4] for the following typedef:
00025         //typedef ooVArrayT<T_Bin> H_P__NAME(Bin_Container);
00026 
00027 #ifdef __HP_aCC
00028 # ifndef OO_DDL_TRANSLATION
00029         typedef ooVArrayT<T_Bin> H_P__NAME(Bin_Container);
00030 # endif
00031 #else
00032         class H_P__NAME(Bin_Container): public ooVArrayT<T_Bin>
00033         {
00034         public:
00035                 H_P__NAME(Bin_Container)(): ooVArrayT<T_Bin>() {}
00036                         // Default constructor needed.
00037                 H_P__NAME(Bin_Container)( uint32 n ): ooVArrayT<T_Bin> (n) {}
00038                         // Create container with n elements.
00039 
00040                 T_Bin & operator[] ( uint32 i ) { return this->elem(i); }
00041                 T_Bin & operator[] ( uint32 i ) const { return this->elem(i);}
00042                 //{ this->update(); return this->elem(i); }
00043                 // if( oovTopFD.openMode() != oocRead ) this->update();
00044                 // Too slow... Update is now done at the histo level.
00045         };
00046 #endif
00047 
00048 //#endif
00049 
00050 };
00051 
00052 #endif // _H_P__LIFETIME_H_
00053 
00054 
00055 // *************************************************************************** 
00056 // * Notes:
00057 // *************************************************************************** 
00058 
00059 /*
00060 
00061 September 4:
00062 ------------
00063 Believe it or not, I want to scan histo in Objy:
00064 . When H_P__NAME(Bin_Container) is declared as a class, it works fine: the
00065 array can be accessed.
00066 . When H_P__NAME(Bin_Container) is a typedef, it does not work anymore: the
00067 array cannot be accessed!!
00068 
00069 */
00070 


Anaphe documentation generated by Doxygen (www.doxygen.org)