BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
IfdIntKey Class Reference

#include <IfdIntKey.h>

+ Inheritance diagram for IfdIntKey:

Public Member Functions

 IfdIntKey (const int i)
 
virtual int operator== (const IfdKey &k) const
 
virtual ~IfdIntKey ()
 
virtual IfdKeyclone (void) const
 
virtual void print (std::ostream &o) const
 
- Public Member Functions inherited from IfdKey
virtual ~IfdKey ()
 
int operator!= (const IfdKey &k) const
 
virtual void add (const IfdKey &)
 
int cardinality (void) const
 
virtual unsigned int hash (void) const
 

Additional Inherited Members

- Static Public Member Functions inherited from IfdKey
static unsigned int nHashBuckets (void)
 
- Public Attributes inherited from IfdKey
unsigned int _hashVal
 
- Protected Types inherited from IfdKey
enum  { _nHashBuckets = 1031 }
 
enum  keyKind {
  intKey , strKey , compositeKey , typeKey ,
  odfTypeKey
}
 
- Protected Member Functions inherited from IfdKey
 IfdKey (keyKind kind)
 
IfdKey::keyKind getKeyKind (void) const
 
- Protected Attributes inherited from IfdKey
keyKind _myKeyKind
 
int _myCardinality
 
union { 
 
   int   intVal 
 
   unsigned int   uintVal 
 
   char *   strVal 
 
};  
 

Detailed Description

Definition at line 28 of file IfdIntKey.h.

Constructor & Destructor Documentation

◆ IfdIntKey()

IfdIntKey::IfdIntKey ( const int i)

Definition at line 26 of file IfdIntKey.cxx.

27 : IfdKey( intKey )
28{
29 intVal = i;
31}
IfdKey(keyKind kind)
Definition IfdKey.cxx:23
@ _nHashBuckets
Definition IfdKey.h:86
unsigned int _hashVal
Definition IfdKey.h:80
int intVal
Definition IfdKey.h:126
@ intKey
Definition IfdKey.h:88

◆ ~IfdIntKey()

virtual IfdIntKey::~IfdIntKey ( )
inlinevirtual

Definition at line 37 of file IfdIntKey.h.

37{}

Member Function Documentation

◆ clone()

virtual IfdKey * IfdIntKey::clone ( void ) const
inlinevirtual

Implements IfdKey.

Definition at line 39 of file IfdIntKey.h.

39{ return new IfdIntKey( intVal ); }
friend class IfdIntKey
Definition IfdKey.h:132

◆ operator==()

virtual int IfdIntKey::operator== ( const IfdKey & k) const
inlinevirtual

Implements IfdKey.

Definition at line 33 of file IfdIntKey.h.

33 {
34 return ( intKey == k.getKeyKind() ) && ( intVal == k.intVal );
35 }
IfdKey::keyKind getKeyKind(void) const
Definition IfdKey.h:98

◆ print()

virtual void IfdIntKey::print ( std::ostream & o) const
inlinevirtual

Implements IfdKey.

Definition at line 43 of file IfdIntKey.h.

47 { o << "IfdIntKey(" << intVal << ")"; }

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