00001 #ifndef CDBBDBSHARED_LEAF_NODE_P_HH
00002 #define CDBBDBSHARED_LEAF_NODE_P_HH
00003
00004
00005
00006
00007 #include "BdbUtil/Bdb.hh"
00008
00009 #include "CdbBdbShared/CdbBdbSNodeP.hh"
00010
00011
00012
00013
00014
00015
00016 template< typename E >
00017 class CdbBdbSLeafNodeP : public CdbBdbSNodeP<E> {
00018
00019 public:
00020
00021
00022
00023 CdbBdbSLeafNodeP( d_ULong theSize = 0 );
00024
00025
00026
00027 virtual ~CdbBdbSLeafNodeP( );
00028
00029
00030
00031 virtual BdbStatus resize( d_ULong theNewSize,
00032 d_ULong theNumPerLeaf,
00033 d_ULong theNumPerDirectory );
00034
00035
00036
00037 virtual void setElementAt( d_ULong theIndex,
00038 const E& value,
00039 d_ULong theNumPerLeaf,
00040 d_ULong theNumPerDirectory );
00041
00042
00043
00044 virtual E elementAt( d_ULong theIndex,
00045 d_ULong theNumPerLeaf,
00046 d_ULong theNumPerDirectory ) const;
00047
00048
00049
00050
00051
00052
00053 virtual void dump( d_ULong numSpaces,
00054 std::ostream& o,
00055 bool dumpContentsFlag ) const;
00056
00057 public:
00058
00059
00060
00061 ooVArray(E) _data;
00062 };
00063
00064 #ifdef BABAR_COMP_INST
00065 #include "CdbBdbShared/CdbBdbSLeafNodeP.cc"
00066 #endif
00067
00068 #endif