BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
IfdKey Class Referenceabstract

#include <IfdKey.h>

+ Inheritance diagram for IfdKey:

Public Member Functions

virtual ~IfdKey ()
 
virtual int operator== (const IfdKey &) const =0
 
int operator!= (const IfdKey &k) const
 
virtual void add (const IfdKey &)
 
int cardinality (void) const
 
virtual void print (std::ostream &o) const =0
 
virtual IfdKeyclone (void) const =0
 
virtual unsigned int hash (void) const
 
virtual ~IfdKey ()
 
virtual int operator== (const IfdKey &) const =0
 
int operator!= (const IfdKey &k) const
 
virtual void add (const IfdKey &)
 
int cardinality (void) const
 
virtual void print (std::ostream &o) const =0
 
virtual IfdKeyclone (void) const =0
 
virtual unsigned int hash (void) const
 

Static Public Member Functions

static unsigned int nHashBuckets (void)
 
static unsigned int nHashBuckets (void)
 

Public Attributes

unsigned int _hashVal
 

Protected Types

enum  { _nHashBuckets = 1031 }
 
enum  keyKind {
  intKey , strKey , compositeKey , typeKey ,
  odfTypeKey , intKey , strKey , compositeKey ,
  typeKey , odfTypeKey
}
 
enum  { _nHashBuckets = 1031 }
 
enum  keyKind {
  intKey , strKey , compositeKey , typeKey ,
  odfTypeKey , intKey , strKey , compositeKey ,
  typeKey , odfTypeKey
}
 

Protected Member Functions

 IfdKey (keyKind kind)
 
IfdKey::keyKind getKeyKind (void) const
 
 IfdKey (keyKind kind)
 
IfdKey::keyKind getKeyKind (void) const
 

Protected Attributes

keyKind _myKeyKind
 
int _myCardinality
 
union {
   int   intVal
 
   unsigned int   uintVal
 
   char *   strVal
 
}; 
 
union {
   int   intVal
 
   unsigned int   uintVal
 
   char *   strVal
 
}; 
 

Friends

class IfdIntKey
 
class IfdStrKey
 
class IfdTypeKeyIFace
 
class IfdCompositeKey
 
class BdbOdfIfdTypeKeyIFace
 
std::ostream & operator<< (std::ostream &o, const IfdKey &k)
 
unsigned ifdKeyHash (const IfdDictKey &k)
 
std::ostream & operator<< (std::ostream &o, const IfdKey &k)
 
unsigned ifdKeyHash (const IfdDictKey &k)
 

Detailed Description

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
_nHashBuckets 

Definition at line 86 of file InstallArea/include/ProxyDict/ProxyDict/IfdKey.h.

86{ _nHashBuckets = 1031 }; // .33 msec/ev, not opt

◆ anonymous enum

anonymous enum
protected
Enumerator
_nHashBuckets 

Definition at line 86 of file Reconstruction/MdcPatRec/ProxyDict/ProxyDict-00-00-01/ProxyDict/IfdKey.h.

86{ _nHashBuckets = 1031 }; // .33 msec/ev, not opt

◆ keyKind [1/2]

enum IfdKey::keyKind
protected
Enumerator
intKey 
strKey 
compositeKey 
typeKey 
odfTypeKey 
intKey 
strKey 
compositeKey 
typeKey 
odfTypeKey 

Definition at line 88 of file InstallArea/include/ProxyDict/ProxyDict/IfdKey.h.

◆ keyKind [2/2]

enum IfdKey::keyKind
protected
Enumerator
intKey 
strKey 
compositeKey 
typeKey 
odfTypeKey 
intKey 
strKey 
compositeKey 
typeKey 
odfTypeKey 

Definition at line 88 of file Reconstruction/MdcPatRec/ProxyDict/ProxyDict-00-00-01/ProxyDict/IfdKey.h.

Constructor & Destructor Documentation

◆ ~IfdKey() [1/2]

IfdKey::~IfdKey ( )
virtual

Definition at line 29 of file IfdKey.cxx.

30{}

◆ IfdKey() [1/2]

IfdKey::IfdKey ( keyKind  kind)
protected

◆ ~IfdKey() [2/2]

virtual IfdKey::~IfdKey ( )
virtual

◆ IfdKey() [2/2]

IfdKey::IfdKey ( keyKind  kind)
protected

Member Function Documentation

◆ add() [1/2]

void IfdKey::add ( const IfdKey )
virtual

Definition at line 34 of file IfdKey.cxx.

34 {
35 // only makes sense for the composite class.
36
37 assert( 0 );
38}

◆ add() [2/2]

virtual void IfdKey::add ( const IfdKey )
virtual

◆ cardinality() [1/2]

int IfdKey::cardinality ( void  ) const
inline

Definition at line 166 of file InstallArea/include/ProxyDict/ProxyDict/IfdKey.h.

166 {
167//*****************************************************************************
168 return _myCardinality;
169}

◆ cardinality() [2/2]

int IfdKey::cardinality ( void  ) const
inline

◆ clone() [1/2]

virtual IfdKey * IfdKey::clone ( void  ) const
pure virtual

Implemented in IfdIntKey, IfdStrKey, IfdIntKey, and IfdStrKey.

◆ clone() [2/2]

virtual IfdKey * IfdKey::clone ( void  ) const
pure virtual

Implemented in IfdIntKey, IfdStrKey, IfdIntKey, and IfdStrKey.

◆ getKeyKind() [1/2]

IfdKey::keyKind IfdKey::getKeyKind ( void  ) const
inlineprotected

◆ getKeyKind() [2/2]

IfdKey::keyKind IfdKey::getKeyKind ( void  ) const
inlineprotected

◆ hash() [1/2]

virtual unsigned int IfdKey::hash ( void  ) const
inlinevirtual

Definition at line 77 of file InstallArea/include/ProxyDict/ProxyDict/IfdKey.h.

78 { return _hashVal;}

◆ hash() [2/2]

virtual unsigned int IfdKey::hash ( void  ) const
inlinevirtual

◆ nHashBuckets() [1/2]

static unsigned int IfdKey::nHashBuckets ( void  )
inlinestatic

Definition at line 82 of file InstallArea/include/ProxyDict/ProxyDict/IfdKey.h.

83 { return _nHashBuckets; }

◆ nHashBuckets() [2/2]

static unsigned int IfdKey::nHashBuckets ( void  )
inlinestatic

◆ operator!=() [1/2]

int IfdKey::operator!= ( const IfdKey k) const
inline

Definition at line 182 of file InstallArea/include/ProxyDict/ProxyDict/IfdKey.h.

182 {
183//*****************************************************************************
184
185 return ! ( *this == k );
186}

◆ operator!=() [2/2]

int IfdKey::operator!= ( const IfdKey k) const
inline

◆ operator==() [1/2]

virtual int IfdKey::operator== ( const IfdKey ) const
pure virtual

Implemented in IfdIntKey, IfdStrKey, IfdIntKey, and IfdStrKey.

◆ operator==() [2/2]

virtual int IfdKey::operator== ( const IfdKey ) const
pure virtual

Implemented in IfdIntKey, IfdStrKey, IfdIntKey, and IfdStrKey.

◆ print() [1/2]

virtual void IfdKey::print ( std::ostream &  o) const
pure virtual

Implemented in IfdIntKey, IfdStrKey, IfdIntKey, and IfdStrKey.

Referenced by operator<<().

◆ print() [2/2]

virtual void IfdKey::print ( std::ostream &  o) const
pure virtual

Implemented in IfdIntKey, IfdStrKey, IfdIntKey, and IfdStrKey.

Friends And Related Function Documentation

◆ BdbOdfIfdTypeKeyIFace

BdbOdfIfdTypeKeyIFace
friend

◆ IfdCompositeKey

IfdCompositeKey
friend

◆ IfdIntKey

IfdIntKey
friend

Definition at line 132 of file InstallArea/include/ProxyDict/ProxyDict/IfdKey.h.

Referenced by IfdIntKey::clone().

◆ ifdKeyHash [1/2]

unsigned ifdKeyHash ( const IfdDictKey &  k)
friend

◆ ifdKeyHash [2/2]

unsigned ifdKeyHash ( const IfdDictKey &  k)
friend

◆ IfdStrKey

IfdStrKey
friend

Definition at line 133 of file InstallArea/include/ProxyDict/ProxyDict/IfdKey.h.

Referenced by IfdStrKey::clone().

◆ IfdTypeKeyIFace

IfdTypeKeyIFace
friend

◆ operator<< [1/2]

std::ostream & operator<< ( std::ostream &  o,
const IfdKey k 
)
friend

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream &  o,
const IfdKey k 
)
friend

Member Data Documentation

◆ 

union { ... } IfdKey::@54

◆ 

union { ... } IfdKey::@88

◆ _hashVal

◆ _myCardinality

int IfdKey::_myCardinality
protected

Definition at line 122 of file InstallArea/include/ProxyDict/ProxyDict/IfdKey.h.

Referenced by cardinality().

◆ _myKeyKind

keyKind IfdKey::_myKeyKind
protected

Definition at line 116 of file InstallArea/include/ProxyDict/ProxyDict/IfdKey.h.

Referenced by getKeyKind().

◆ intVal

◆ strVal

◆ uintVal

unsigned int IfdKey::uintVal

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