ComPackBase< T > Class Template Reference

#include <ComPackBase.h>

Inheritance diagram for ComPackBase< T >:

ComPackBaseBase List of all members.

Public Types

 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
}

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 &)

Protected Types

 _maxlongbits = 32
enum  { _maxlongbits = 32 }

Protected Attributes

_minVal
_maxVal
_valRange
d_ULong _bitRange
d_ULong _bitMask

Detailed Description

template<class T>
class ComPackBase< T >

Definition at line 40 of file ComPackBase.h.


Member Enumeration Documentation

template<class T>
anonymous enum [protected]

Enumerator:
_maxlongbits 

Definition at line 83 of file ComPackBase.h.

00083 { _maxlongbits = 32 };

enum ComPackBaseBase::StatusCode [inherited]

Enumerator:
TAG_OK 
TAG_BAD 
TAG_RANGE_ERROR 
TAG_VAL_ROUND_DOWN 
TAG_VAL_ROUND_UP 

Definition at line 35 of file ComPackBaseBase.h.


Constructor & Destructor Documentation

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

Definition at line 46 of file ComPackBase.h.

00046 {}; 

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

Definition at line 48 of file ComPackBase.h.

00048                                                    :
00049     _minVal(minval),_maxVal(maxval),_valRange(maxval-minval),
00050     _bitRange(bitrange),_bitMask((1<<bitrange)-1){;}

template<class T>
virtual ComPackBase< T >::~ComPackBase (  )  [inline, virtual]

Definition at line 55 of file ComPackBase.h.

00055 {};

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

Definition at line 78 of file ComPackBase.h.

00078 { ::abort(); }


Member Function Documentation

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

Definition at line 75 of file ComPackBase.h.

00075 { return _bitMask; }

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

Definition at line 74 of file ComPackBase.h.

00074 { return _bitRange; }

template<class T>
virtual const T& ComPackBase< T >::getMaxVal (  )  const [inline, virtual]

Definition at line 71 of file ComPackBase.h.

00071 { return _maxVal;};

template<class T>
virtual const T& ComPackBase< T >::getMinVal (  )  const [inline, virtual]

Definition at line 70 of file ComPackBase.h.

00070 { return _minVal;};

template<class T>
virtual const T& ComPackBase< T >::getRange (  )  const [inline, virtual]

Definition at line 72 of file ComPackBase.h.

00072 { return _valRange;};

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

Definition at line 79 of file ComPackBase.h.

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

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

Referenced by TrkExchangeData::TrkExchangeData().

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

Implemented in ComPackExpFloat, ComPackFlatFloat, and ComPackSignedExpFloat.

Referenced by TrkExchangeData::exchange().


Member Data Documentation

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

Definition at line 88 of file ComPackBase.h.

Referenced by ComPackBase< double >::bitMask().

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

Definition at line 87 of file ComPackBase.h.

Referenced by ComPackBase< double >::bitRange().

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

Definition at line 85 of file ComPackBase.h.

Referenced by ComPackBase< double >::getMaxVal().

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

Definition at line 84 of file ComPackBase.h.

Referenced by ComPackBase< double >::getMinVal().

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

Definition at line 86 of file ComPackBase.h.

Referenced by ComPackBase< double >::getRange().


Generated on Tue Nov 29 23:18:08 2016 for BOSS_7.0.2 by  doxygen 1.4.7