#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 IfdKey * | clone (void) const =0 |
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 kind) | |
IfdKey::keyKind | getKeyKind (void) const |
Protected Attributes | |
keyKind | _myKeyKind |
int | _myCardinality |
union { | |
int intVal | |
unsigned int uintVal | |
char * strVal | |
}; | |
Private Member Functions | |
virtual void | make_vtab (void) const |
IfdKey (const IfdKey &) | |
IfdKey & | operator= (IfdKey &) |
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 48 of file IfdKey.h.
anonymous enum [protected] |
enum IfdKey::keyKind [protected] |
Definition at line 88 of file IfdKey.h.
00088 { intKey, strKey, compositeKey, 00089 typeKey, odfTypeKey };
IfdKey::~IfdKey | ( | ) | [virtual] |
IfdKey::IfdKey | ( | keyKind | kind | ) | [protected] |
Definition at line 23 of file IfdKey.cxx.
00024 : _hashVal( 0 ) 00025 , _myKeyKind( kind ) 00026 , _myCardinality( 0 ) 00027 {}
IfdKey::IfdKey | ( | const IfdKey & | ) | [inline, private] |
void IfdKey::add | ( | const IfdKey & | ) | [virtual] |
int IfdKey::cardinality | ( | void | ) | const [inline] |
Definition at line 166 of file IfdKey.h.
References _myCardinality.
00166 { 00167 //***************************************************************************** 00168 return _myCardinality; 00169 }
virtual IfdKey* IfdKey::clone | ( | void | ) | const [pure virtual] |
IfdKey::keyKind IfdKey::getKeyKind | ( | void | ) | const [inline, protected] |
Definition at line 98 of file IfdKey.h.
References _myKeyKind.
Referenced by IfdStrKey::operator<(), IfdStrKey::operator==(), and IfdIntKey::operator==().
00098 { return _myKeyKind; }
virtual unsigned int IfdKey::hash | ( | void | ) | const [inline, virtual] |
void IfdKey::make_vtab | ( | void | ) | const [private, virtual] |
static unsigned int IfdKey::nHashBuckets | ( | void | ) | [inline, static] |
int IfdKey::operator!= | ( | const IfdKey & | k | ) | const [inline] |
virtual int IfdKey::operator== | ( | const IfdKey & | ) | const [pure virtual] |
virtual void IfdKey::print | ( | std::ostream & | o | ) | const [pure virtual] |
unsigned ifdKeyHash | ( | const IfdDictKey & | k | ) | [friend] |
std::ostream& operator<< | ( | std::ostream & | o, | |
const IfdKey & | k | |||
) | [friend] |
union { ... } [protected] |
unsigned int IfdKey::_hashVal |
Definition at line 80 of file IfdKey.h.
Referenced by IfdStrKey::clone(), hash(), IfdIntKey::IfdIntKey(), IfdStrKey::IfdStrKey(), and IfdStrKey::operator==().
int IfdKey::_myCardinality [protected] |
keyKind IfdKey::_myKeyKind [protected] |
int IfdKey::intVal [protected] |
Definition at line 126 of file IfdKey.h.
Referenced by IfdIntKey::clone(), IfdIntKey::IfdIntKey(), IfdIntKey::operator==(), and IfdIntKey::print().
char* IfdKey::strVal [protected] |
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] |