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

OOF_Dictionary Class Reference
[OOFILE utility classes and functions.]

#include <oof1.h>

Inheritance diagram for OOF_Dictionary:

Inheritance graph
[legend]
Collaboration diagram for OOF_Dictionary:

Collaboration graph
[legend]
List of all members.

Detailed Description

Provides searchable dictionary of common OOFILE classes like dbTable.

a Handle or Envelope class for OOF_DictRep, independently acting as an iterator. contains list of OOF_PublicBase and allows lookup by name and

Todo:
lookup by other attributes
See also:
OOF_Dictionary::lookupByAttribute


Public Types

enum  { kDefExpansionChunk = 10 }

Public Member Functions

 OOF_Dictionary ()
 OOF_Dictionary (const OOF_DictRep *rep)
 OOF_Dictionary (unsigned int numSlots)
 OOF_Dictionary (unsigned int numSlots, unsigned int expansionChunk, bool inOwnsContents=false)
 OOF_Dictionary (const OOF_Dictionary &)
OOF_Dictionary clone () const
virtual ~OOF_Dictionary ()
OOF_Dictionaryoperator= (const OOF_Dictionary &)
OOF_bitPointeroperator[] (unsigned int)
OOF_bitPointeroperator[] (const char *)
OOF_bitPointerlookupByAttribute (const char *attributeValue, const char *attributeType=0)
OOF_bitPointeritem (unsigned int index)
OOF_bitPointer value (unsigned int index) const
OOF_bitPointeroperator() ()
void append (OOF_bitPointer)
OOF_bitPointer pop ()
void reset ()
unsigned int iter () const
void start ()
bool more () const
void next ()
unsigned int count () const
void startVisible (bool wantVisible=true)
bool moreVisible (bool wantVisible=true)
void nextVisible (bool wantVisible=true)
unsigned int countVisible (bool wantVisible=true)
bool allObjectsMatch (OOF_Dictionary &)
void deleteAll ()
virtual void describe (std::ostream &) const
virtual void describeVisible (std::ostream &, bool wantVisible) const
void ownsContents (bool ownsFlag=true)

Static Public Member Functions

OOF_bitPointermissingItem ()

Protected Member Functions

bool EntryMatchesVisibility (const OOF_PublicBase *, bool) const

Protected Attributes

OOF_DictRepmRep
unsigned int mInternalIter
bool mOwnsContents

Static Protected Attributes

OOF_bitPointer sMissingItem


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
kDefExpansionChunk 


Constructor & Destructor Documentation

OOF_Dictionary::OOF_Dictionary  ) 
 

OOF_Dictionary::OOF_Dictionary const OOF_DictRep rep  ) 
 

OOF_Dictionary::OOF_Dictionary unsigned int  numSlots  ) 
 

OOF_Dictionary::OOF_Dictionary unsigned int  numSlots,
unsigned int  expansionChunk,
bool  inOwnsContents = false
 

OOF_Dictionary::OOF_Dictionary const OOF_Dictionary  ) 
 

OOF_Dictionary::~OOF_Dictionary  )  [virtual]
 


Member Function Documentation

bool OOF_Dictionary::allObjectsMatch OOF_Dictionary  ) 
 

void OOF_Dictionary::append OOF_bitPointer   )  [inline]
 

OOF_Dictionary OOF_Dictionary::clone  )  const
 

unsigned int OOF_Dictionary::count  )  const [inline]
 

unsigned int OOF_Dictionary::countVisible bool  wantVisible = true  ) 
 

void OOF_Dictionary::deleteAll  ) 
 

void OOF_Dictionary::describe std::ostream &   )  const [virtual]
 

void OOF_Dictionary::describeVisible std::ostream &  ,
bool  wantVisible
const [virtual]
 

bool OOF_Dictionary::EntryMatchesVisibility const OOF_PublicBase ,
bool 
const [inline, protected]
 

OOF_bitPointer & OOF_Dictionary::item unsigned int  index  )  [inline]
 

unsigned int OOF_Dictionary::iter  )  const [inline]
 

OOF_bitPointer & OOF_Dictionary::lookupByAttribute const char *  attributeValue,
const char *  attributeType = 0
[inline]
 

OOF_bitPointer & OOF_Dictionary::missingItem  )  [inline, static]
 

bool OOF_Dictionary::more  )  const [inline]
 

bool OOF_Dictionary::moreVisible bool  wantVisible = true  ) 
 

Bug:
Think because entry is redeclared inside the loop that may fail if no visible entries - pass 0 in to EntryMatchesVisibility and deref null ptr!.

void OOF_Dictionary::next  )  [inline]
 

void OOF_Dictionary::nextVisible bool  wantVisible = true  )  [inline]
 

OOF_bitPointer & OOF_Dictionary::operator()  )  [inline]
 

OOF_Dictionary & OOF_Dictionary::operator= const OOF_Dictionary  ) 
 

OOF_bitPointer & OOF_Dictionary::operator[] const char *   )  [inline]
 

OOF_bitPointer & OOF_Dictionary::operator[] unsigned  int  )  [inline]
 

void OOF_Dictionary::ownsContents bool  ownsFlag = true  )  [inline]
 

OOF_bitPointer OOF_Dictionary::pop  )  [inline]
 

void OOF_Dictionary::reset  )  [inline]
 

void OOF_Dictionary::start  )  [inline]
 

void OOF_Dictionary::startVisible bool  wantVisible = true  )  [inline]
 

OOF_bitPointer OOF_Dictionary::value unsigned int  index  )  const [inline]
 


Member Data Documentation

unsigned int OOF_Dictionary::mInternalIter [protected]
 

bool OOF_Dictionary::mOwnsContents [protected]
 

OOF_DictRep* OOF_Dictionary::mRep [protected]
 

OOF_bitPointer OOF_Dictionary::sMissingItem [static, protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Jan 2 00:53:03 2004 for OOFILE by doxygen 1.3.5