Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

IfdIntKey Class Reference

#include <IfdIntKey.h>

Inheritance diagram for IfdIntKey:

IfdKey IfdKey List of all members.

Public Member Functions

virtual void add (const IfdKey &)
virtual void add (const IfdKey &)
int cardinality (void) const
int cardinality (void) const
virtual IfdKeyclone (void) const
virtual IfdKeyclone (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 &)
IfdIntKeyoperator= (IfdIntKey &)
IfdIntKeyoperator= (IfdIntKey &)

Friends

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

Member Enumeration Documentation

anonymous enum [protected, inherited]
 

Enumeration values:
_nHashBuckets 
00086 { _nHashBuckets = 1031 }; // .33 msec/ev, not opt

anonymous enum [protected, inherited]
 

Enumeration values:
_nHashBuckets 
00086 { _nHashBuckets = 1031 }; // .33 msec/ev, not opt

enum IfdKey::keyKind [protected, inherited]
 

Enumeration values:
intKey 
strKey 
compositeKey 
typeKey 
odfTypeKey 
00088                 { intKey, strKey, compositeKey,
00089                    typeKey, odfTypeKey };

enum IfdKey::keyKind [protected, inherited]
 

Enumeration values:
intKey 
strKey 
compositeKey 
typeKey 
odfTypeKey 
00088                 { intKey, strKey, compositeKey,
00089                    typeKey, odfTypeKey };


Constructor & Destructor Documentation

IfdIntKey::IfdIntKey const int  i  ) 
 

00027   : IfdKey( intKey )
00028 {
00029    intVal   =  i; 
00030    _hashVal = i % _nHashBuckets;
00031 }

virtual IfdIntKey::~IfdIntKey  )  [inline, virtual]
 

00037 {}

IfdIntKey::IfdIntKey const IfdIntKey  )  [private]
 

IfdIntKey::IfdIntKey const int  i  ) 
 

virtual IfdIntKey::~IfdIntKey  )  [inline, virtual]
 

00037 {}

IfdIntKey::IfdIntKey const IfdIntKey  )  [private]
 


Member Function Documentation

virtual void IfdKey::add const IfdKey  )  [virtual, inherited]
 

void IfdKey::add const IfdKey  )  [virtual, inherited]
 

00034                            {
00035   // only makes sense for the composite class.
00036 
00037   assert( 0 );
00038 }

int IfdKey::cardinality void   )  const [inline, inherited]
 

int IfdKey::cardinality void   )  const [inline, inherited]
 

00166                               { 
00167 //*****************************************************************************
00168     return _myCardinality;
00169 }

virtual IfdKey* IfdIntKey::clone void   )  const [inline, virtual]
 

Implements IfdKey.

00039 { return new IfdIntKey( intVal ); }

virtual IfdKey* IfdIntKey::clone void   )  const [inline, virtual]
 

Implements IfdKey.

00039 { return new IfdIntKey( intVal ); }

IfdKey::keyKind IfdKey::getKeyKind void   )  const [inline, protected, inherited]
 

00098 { return _myKeyKind; }

IfdKey::keyKind IfdKey::getKeyKind void   )  const [inline, protected, inherited]
 

00098 { return _myKeyKind; }

virtual unsigned int IfdKey::hash void   )  const [inline, virtual, inherited]
 

00078         { return _hashVal;}

virtual unsigned int IfdKey::hash void   )  const [inline, virtual, inherited]
 

00078         { return _hashVal;}

unsigned int IfdKey::nHashBuckets void   )  [inline, static, inherited]
 

00083        { return _nHashBuckets; }

unsigned int IfdKey::nHashBuckets void   )  [inline, static, inherited]
 

00083        { return _nHashBuckets; }

int IfdKey::operator!= const IfdKey k  )  const [inline, inherited]
 

int IfdKey::operator!= const IfdKey k  )  const [inline, inherited]
 

00182                                             {
00183 //*****************************************************************************
00184 
00185     return ! ( *this == k );
00186 }

IfdIntKey& IfdIntKey::operator= IfdIntKey  )  [private]
 

IfdIntKey& IfdIntKey::operator= IfdIntKey  )  [private]
 

virtual int IfdIntKey::operator== const IfdKey k  )  const [inline, virtual]
 

Implements IfdKey.

00033                                                    {
00034       return ( intKey == k.getKeyKind() ) && ( intVal == k.intVal );
00035    }

virtual int IfdIntKey::operator== const IfdKey k  )  const [inline, virtual]
 

Implements IfdKey.

00033                                                    {
00034       return ( intKey == k.getKeyKind() ) && ( intVal == k.intVal );
00035    }

virtual void IfdIntKey::print std::ostream o  )  const [inline, virtual]
 

Implements IfdKey.

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

virtual void IfdIntKey::print std::ostream o  )  const [inline, virtual]
 

Implements IfdKey.

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


Friends And Related Function Documentation

BdbOdfIfdTypeKeyIFace [friend, inherited]
 

IfdCompositeKey [friend, inherited]
 

IfdIntKey [friend, inherited]
 

unsigned ifdKeyHash const IfdDictKey &  k  )  [friend, inherited]
 

unsigned ifdKeyHash const IfdDictKey &  k  )  [friend, inherited]
 

IfdStrKey [friend, inherited]
 

IfdTypeKeyIFace [friend, inherited]
 

std::ostream& operator<< std::ostream o,
const IfdKey k
[friend, inherited]
 

std::ostream& operator<< std::ostream o,
const IfdKey k
[friend, inherited]
 


Member Data Documentation

unsigned int IfdKey::_hashVal [inherited]
 

int IfdKey::_myCardinality [protected, inherited]
 

keyKind IfdKey::_myKeyKind [protected, inherited]
 

int IfdKey::intVal [protected, inherited]
 

char* IfdKey::strVal [protected, inherited]
 

char* IfdKey::strVal [protected, inherited]
 

unsigned int IfdKey::uintVal [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:18:04 2011 for BOSS6.5.5 by  doxygen 1.3.9.1