#include <IfdIntKey.h>
Inheritance diagram for IfdIntKey:
Public Member Functions | |
virtual void | add (const IfdKey &) |
virtual void | add (const IfdKey &) |
int | cardinality (void) const |
int | cardinality (void) const |
virtual IfdKey * | clone (void) const |
virtual IfdKey * | clone (void) const |
virtual unsigned int | hash (void) const |
virtual unsigned int | hash (void) const |
IfdIntKey (const int i) | |
IfdIntKey (const int i) | |
int | operator!= (const IfdKey &k) const |
int | operator!= (const IfdKey &k) const |
virtual int | operator== (const IfdKey &k) const |
virtual int | operator== (const IfdKey &k) const |
virtual void | print (std::ostream &o) const |
virtual void | print (std::ostream &o) const |
virtual | ~IfdIntKey () |
virtual | ~IfdIntKey () |
Static Public Member Functions | |
unsigned int | nHashBuckets (void) |
unsigned int | nHashBuckets (void) |
Public Attributes | |
unsigned int | _hashVal |
Protected Types | |
enum | { _nHashBuckets = 1031 } |
enum | { _nHashBuckets = 1031 } |
enum | keyKind { intKey, strKey, compositeKey, typeKey, odfTypeKey } |
enum | keyKind { intKey, strKey, compositeKey, typeKey, odfTypeKey } |
Protected Member Functions | |
IfdKey::keyKind | getKeyKind (void) const |
IfdKey::keyKind | getKeyKind (void) const |
Protected Attributes | |
int | _myCardinality |
keyKind | _myKeyKind |
int | intVal |
char * | strVal |
char * | strVal |
unsigned int | uintVal |
Private Member Functions | |
IfdIntKey (const IfdIntKey &) | |
IfdIntKey (const IfdIntKey &) | |
IfdIntKey & | operator= (IfdIntKey &) |
IfdIntKey & | operator= (IfdIntKey &) |
Friends | |
class | BdbOdfIfdTypeKeyIFace |
class | IfdCompositeKey |
class | IfdIntKey |
unsigned | ifdKeyHash (const IfdDictKey &k) |
unsigned | ifdKeyHash (const IfdDictKey &k) |
class | IfdStrKey |
class | IfdTypeKeyIFace |
std::ostream & | operator<< (std::ostream &o, const IfdKey &k) |
std::ostream & | operator<< (std::ostream &o, const IfdKey &k) |
|
00086 { _nHashBuckets = 1031 }; // .33 msec/ev, not opt
|
|
00086 { _nHashBuckets = 1031 }; // .33 msec/ev, not opt
|
|
00088 { intKey, strKey, compositeKey, 00089 typeKey, odfTypeKey };
|
|
00088 { intKey, strKey, compositeKey, 00089 typeKey, odfTypeKey };
|
|
|
|
00037 {}
|
|
|
|
|
|
00037 {}
|
|
|
|
|
|
00034 {
00035 // only makes sense for the composite class.
00036
00037 assert( 0 );
00038 }
|
|
|
|
00166 { 00167 //***************************************************************************** 00168 return _myCardinality; 00169 }
|
|
Implements IfdKey. 00039 { return new IfdIntKey( intVal ); }
|
|
Implements IfdKey. 00039 { return new IfdIntKey( intVal ); }
|
|
00098 { return _myKeyKind; }
|
|
00098 { return _myKeyKind; }
|
|
00078 { return _hashVal;}
|
|
00078 { return _hashVal;}
|
|
00083 { return _nHashBuckets; }
|
|
00083 { return _nHashBuckets; }
|
|
|
|
00182 { 00183 //***************************************************************************** 00184 00185 return ! ( *this == k ); 00186 }
|
|
|
|
|
|
Implements IfdKey. 00033 { 00034 return ( intKey == k.getKeyKind() ) && ( intVal == k.intVal ); 00035 }
|
|
Implements IfdKey. 00033 { 00034 return ( intKey == k.getKeyKind() ) && ( intVal == k.intVal ); 00035 }
|
|
Implements IfdKey. 00047 { o << "IfdIntKey(" << intVal << ")"; }
|
|
Implements IfdKey. 00047 { o << "IfdIntKey(" << intVal << ")"; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|