#include <IfdIntKey.h>
Inheritance diagram for IfdIntKey:
Public Member Functions | |
IfdIntKey (const int i) | |
virtual int | operator== (const IfdKey &k) const |
virtual | ~IfdIntKey () |
virtual IfdKey * | clone (void) const |
virtual void | print (std::ostream &o) const |
int | operator!= (const IfdKey &k) const |
virtual void | add (const IfdKey &) |
int | cardinality (void) const |
virtual unsigned int | hash (void) const |
Static Public Member Functions | |
static unsigned int | nHashBuckets (void) |
Public Attributes | |
unsigned int | _hashVal |
Protected Types | |
_nHashBuckets = 1031 | |
intKey | |
strKey | |
compositeKey | |
typeKey | |
odfTypeKey | |
enum | { _nHashBuckets = 1031 } |
enum | keyKind { intKey, strKey, compositeKey, typeKey, odfTypeKey } |
Protected Member Functions | |
IfdKey::keyKind | getKeyKind (void) const |
Protected Attributes | |
keyKind | _myKeyKind |
int | _myCardinality |
union { | |
int intVal | |
unsigned int uintVal | |
char * strVal | |
}; | |
Private Member Functions | |
IfdIntKey (const IfdIntKey &) | |
IfdIntKey & | operator= (IfdIntKey &) |
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) |
Definition at line 28 of file IfdIntKey.h.
anonymous enum [protected, inherited] |
enum IfdKey::keyKind [protected, inherited] |
Definition at line 88 of file IfdKey.h.
00088 { intKey, strKey, compositeKey, 00089 typeKey, odfTypeKey };
IfdIntKey::IfdIntKey | ( | const int | i | ) |
Definition at line 26 of file IfdIntKey.cxx.
References IfdKey::_hashVal, IfdKey::_nHashBuckets, and IfdKey::intVal.
Referenced by clone().
virtual IfdIntKey::~IfdIntKey | ( | ) | [inline, virtual] |
IfdIntKey::IfdIntKey | ( | const IfdIntKey & | ) | [private] |
void IfdKey::add | ( | const IfdKey & | ) | [virtual, inherited] |
int IfdKey::cardinality | ( | void | ) | const [inline, inherited] |
Definition at line 166 of file IfdKey.h.
References IfdKey::_myCardinality.
00166 { 00167 //***************************************************************************** 00168 return _myCardinality; 00169 }
virtual IfdKey* IfdIntKey::clone | ( | void | ) | const [inline, virtual] |
Implements IfdKey.
Definition at line 39 of file IfdIntKey.h.
References IfdIntKey(), and IfdKey::intVal.
IfdKey::keyKind IfdKey::getKeyKind | ( | void | ) | const [inline, protected, inherited] |
Definition at line 98 of file IfdKey.h.
References IfdKey::_myKeyKind.
Referenced by IfdStrKey::operator<(), IfdStrKey::operator==(), and operator==().
00098 { return _myKeyKind; }
virtual unsigned int IfdKey::hash | ( | void | ) | const [inline, virtual, inherited] |
static unsigned int IfdKey::nHashBuckets | ( | void | ) | [inline, static, inherited] |
Definition at line 82 of file IfdKey.h.
References IfdKey::_nHashBuckets.
00083 { return _nHashBuckets; }
int IfdKey::operator!= | ( | const IfdKey & | k | ) | const [inline, inherited] |
virtual int IfdIntKey::operator== | ( | const IfdKey & | k | ) | const [inline, virtual] |
Implements IfdKey.
Definition at line 33 of file IfdIntKey.h.
References IfdKey::getKeyKind(), IfdKey::intKey, and IfdKey::intVal.
00033 { 00034 return ( intKey == k.getKeyKind() ) && ( intVal == k.intVal ); 00035 }
virtual void IfdIntKey::print | ( | std::ostream & | o | ) | const [inline, virtual] |
Implements IfdKey.
Definition at line 43 of file IfdIntKey.h.
References IfdKey::intVal.
00047 { o << "IfdIntKey(" << intVal << ")"; }
unsigned ifdKeyHash | ( | const IfdDictKey & | k | ) | [friend, inherited] |
std::ostream& operator<< | ( | std::ostream & | o, | |
const IfdKey & | k | |||
) | [friend, inherited] |
union { ... } [protected, inherited] |
unsigned int IfdKey::_hashVal [inherited] |
Definition at line 80 of file IfdKey.h.
Referenced by IfdStrKey::clone(), IfdKey::hash(), IfdIntKey(), IfdStrKey::IfdStrKey(), and IfdStrKey::operator==().
int IfdKey::_myCardinality [protected, inherited] |
keyKind IfdKey::_myKeyKind [protected, inherited] |
int IfdKey::intVal [protected, inherited] |
Definition at line 126 of file IfdKey.h.
Referenced by clone(), IfdIntKey(), operator==(), and print().
char* IfdKey::strVal [protected, inherited] |
Definition at line 128 of file IfdKey.h.
Referenced by IfdStrKey::asString(), IfdStrKey::clone(), IfdStrKey::IfdStrKey(), IfdStrKey::operator<(), IfdStrKey::operator==(), and IfdStrKey::~IfdStrKey().
unsigned int IfdKey::uintVal [protected, inherited] |