BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
ComPackBase< T > Class Template Referenceabstract

#include <ComPackBase.h>

+ Inheritance diagram for ComPackBase< T >:

Public Member Functions

 ComPackBase ()
 
 ComPackBase (T minval, T maxval, d_ULong bitrange)
 
virtual ~ComPackBase ()
 
virtual StatusCode pack (const T, d_ULong &) const =0
 
virtual StatusCode unpack (const d_ULong, T &) const =0
 
virtual const T & getMinVal () const
 
virtual const T & getMaxVal () const
 
virtual const T & getRange () const
 
d_ULong bitRange () const
 
d_ULong bitMask () const
 
 ComPackBase (const ComPackBase &)
 
ComPackBaseoperator= (const ComPackBase &)
 
 ComPackBase ()
 
 ComPackBase (T minval, T maxval, d_ULong bitrange)
 
virtual ~ComPackBase ()
 
virtual StatusCode pack (const T, d_ULong &) const =0
 
virtual StatusCode unpack (const d_ULong, T &) const =0
 
virtual const T & getMinVal () const
 
virtual const T & getMaxVal () const
 
virtual const T & getRange () const
 
d_ULong bitRange () const
 
d_ULong bitMask () const
 
 ComPackBase (const ComPackBase &)
 
ComPackBaseoperator= (const ComPackBase &)
 

Protected Types

enum  { _maxlongbits = 32 }
 
enum  { _maxlongbits = 32 }
 

Protected Attributes

_minVal
 
_maxVal
 
_valRange
 
d_ULong _bitRange
 
d_ULong _bitMask
 

Additional Inherited Members

- Public Types inherited from ComPackBaseBase
enum  StatusCode {
  TAG_OK , TAG_BAD , TAG_RANGE_ERROR , TAG_VAL_ROUND_DOWN ,
  TAG_VAL_ROUND_UP , TAG_OK , TAG_BAD , TAG_RANGE_ERROR ,
  TAG_VAL_ROUND_DOWN , TAG_VAL_ROUND_UP
}
 
enum  StatusCode {
  TAG_OK , TAG_BAD , TAG_RANGE_ERROR , TAG_VAL_ROUND_DOWN ,
  TAG_VAL_ROUND_UP , TAG_OK , TAG_BAD , TAG_RANGE_ERROR ,
  TAG_VAL_ROUND_DOWN , TAG_VAL_ROUND_UP
}
 

Detailed Description

template<class T>
class ComPackBase< T >

Definition at line 40 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/ComPackBase.h.

Member Enumeration Documentation

◆ anonymous enum

template<class T >
anonymous enum
protected

◆ anonymous enum

template<class T >
anonymous enum
protected
Enumerator
_maxlongbits 

Definition at line 83 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/ComPackBase.h.

83{ _maxlongbits = 32 };

Constructor & Destructor Documentation

◆ ComPackBase() [1/6]

template<class T >
ComPackBase< T >::ComPackBase ( )
inline

◆ ComPackBase() [2/6]

◆ ~ComPackBase() [1/2]

template<class T >
virtual ComPackBase< T >::~ComPackBase ( )
inlinevirtual

◆ ComPackBase() [3/6]

template<class T >
ComPackBase< T >::ComPackBase ( const ComPackBase< T > &  )
inline

Definition at line 78 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/ComPackBase.h.

78{ ::abort(); }

◆ ComPackBase() [4/6]

template<class T >
ComPackBase< T >::ComPackBase ( )
inline

◆ ComPackBase() [5/6]

template<class T >
ComPackBase< T >::ComPackBase ( minval,
maxval,
d_ULong  bitrange 
)
inline

Definition at line 48 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/ComPackBase.h.

48 :
49 _minVal(minval),_maxVal(maxval),_valRange(maxval-minval),
50 _bitRange(bitrange),_bitMask((1<<bitrange)-1){;}

◆ ~ComPackBase() [2/2]

template<class T >
virtual ComPackBase< T >::~ComPackBase ( )
inlinevirtual

◆ ComPackBase() [6/6]

template<class T >
ComPackBase< T >::ComPackBase ( const ComPackBase< T > &  )
inline

Member Function Documentation

◆ bitMask() [1/2]

template<class T >
d_ULong ComPackBase< T >::bitMask ( ) const
inline

Definition at line 75 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/ComPackBase.h.

75{ return _bitMask; }

◆ bitMask() [2/2]

template<class T >
d_ULong ComPackBase< T >::bitMask ( ) const
inline

◆ bitRange() [1/2]

template<class T >
d_ULong ComPackBase< T >::bitRange ( ) const
inline

Definition at line 74 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/ComPackBase.h.

74{ return _bitRange; }

◆ bitRange() [2/2]

template<class T >
d_ULong ComPackBase< T >::bitRange ( ) const
inline

◆ getMaxVal() [1/2]

template<class T >
virtual const T & ComPackBase< T >::getMaxVal ( ) const
inlinevirtual

Definition at line 71 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/ComPackBase.h.

71{ return _maxVal;};

◆ getMaxVal() [2/2]

template<class T >
virtual const T & ComPackBase< T >::getMaxVal ( ) const
inlinevirtual

◆ getMinVal() [1/2]

template<class T >
virtual const T & ComPackBase< T >::getMinVal ( ) const
inlinevirtual

Definition at line 70 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/ComPackBase.h.

70{ return _minVal;};

◆ getMinVal() [2/2]

template<class T >
virtual const T & ComPackBase< T >::getMinVal ( ) const
inlinevirtual

◆ getRange() [1/2]

template<class T >
virtual const T & ComPackBase< T >::getRange ( ) const
inlinevirtual

Definition at line 72 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/ComPackBase.h.

72{ return _valRange;};

◆ getRange() [2/2]

template<class T >
virtual const T & ComPackBase< T >::getRange ( ) const
inlinevirtual

◆ operator=() [1/2]

template<class T >
ComPackBase & ComPackBase< T >::operator= ( const ComPackBase< T > &  )
inline

Definition at line 79 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/ComPackBase.h.

79{::abort(); return *this;}

◆ operator=() [2/2]

template<class T >
ComPackBase & ComPackBase< T >::operator= ( const ComPackBase< T > &  )
inline

Definition at line 79 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/ComPackBase.h.

79{::abort(); return *this;}

◆ pack() [1/2]

template<class T >
virtual StatusCode ComPackBase< T >::pack ( const  T,
d_ULong  
) const
pure virtual

◆ pack() [2/2]

template<class T >
virtual StatusCode ComPackBase< T >::pack ( const  T,
d_ULong  
) const
pure virtual

◆ unpack() [1/2]

template<class T >
virtual StatusCode ComPackBase< T >::unpack ( const  d_ULong,
T &   
) const
pure virtual

◆ unpack() [2/2]

template<class T >
virtual StatusCode ComPackBase< T >::unpack ( const  d_ULong,
T &   
) const
pure virtual

Member Data Documentation

◆ _bitMask

template<class T >
d_ULong ComPackBase< T >::_bitMask
protected

◆ _bitRange

template<class T >
d_ULong ComPackBase< T >::_bitRange
protected

◆ _maxVal

template<class T >
T ComPackBase< T >::_maxVal
protected

◆ _minVal

template<class T >
T ComPackBase< T >::_minVal
protected

◆ _valRange

template<class T >
T ComPackBase< T >::_valRange
protected

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