OOFILE  1.9
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members

Provides searchable dictionary of common OOFILE classes like dbTable. More...

#include <oof1.h>

Inheritance diagram for OOF_Dictionary:
Inheritance graph
[legend]
Collaboration diagram for OOF_Dictionary:
Collaboration graph
[legend]

Public Types

enum  { kDefExpansionChunk =10 }
 

Public Member Functions

bool allObjectsMatch (OOF_Dictionary &)
 
void append (OOF_bitPointer)
 
OOF_Dictionary clone () const
 
unsigned int count () const
 
unsigned int countVisible (bool wantVisible=true)
 
void deleteAll ()
 
virtual void describe (std::ostream &) const
 
virtual void describeVisible (std::ostream &, bool wantVisible) const
 
OOF_bitPointeritem (unsigned int index)
 
unsigned int iter () const
 
OOF_bitPointerlookupByAttribute (const char *attributeValue, const char *attributeType=0)
 
bool more () const
 
bool moreVisible (bool wantVisible=true)
 
void next ()
 
void nextVisible (bool wantVisible=true)
 
 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_bitPointeroperator() ()
 
OOF_Dictionaryoperator= (const OOF_Dictionary &)
 
OOF_bitPointeroperator[] (unsigned int)
 
OOF_bitPointeroperator[] (const char *)
 
void ownsContents (bool ownsFlag=true)
 
OOF_bitPointer pop ()
 
void reset ()
 
void start ()
 
void startVisible (bool wantVisible=true)
 
OOF_bitPointer value (unsigned int index) const
 
virtual ~OOF_Dictionary ()
 

Static Public Member Functions

static OOF_bitPointermissingItem ()
 

Protected Member Functions

bool EntryMatchesVisibility (const OOF_PublicBase *, bool) const
 

Protected Attributes

unsigned int mInternalIter
 
bool mOwnsContents
 
OOF_DictRepmRep
 

Static Protected Attributes

static OOF_bitPointer sMissingItem
 

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

Definition at line 159 of file oof1.h.

Constructor & Destructor Documentation

OOF_Dictionary::OOF_Dictionary ( )

Definition at line 324 of file oof2.cpp.

References kDefExpansionChunk, and mRep.

OOF_Dictionary::OOF_Dictionary ( const OOF_DictRep rep)

Definition at line 331 of file oof2.cpp.

References mRep.

OOF_Dictionary::OOF_Dictionary ( unsigned int  numSlots)

Definition at line 338 of file oof2.cpp.

References kDefExpansionChunk, and mRep.

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

Definition at line 345 of file oof2.cpp.

References mRep.

OOF_Dictionary::OOF_Dictionary ( const OOF_Dictionary rhs)

Definition at line 354 of file oof2.cpp.

References OOF_mixRefCount::mReferences, and mRep.

OOF_Dictionary::~OOF_Dictionary ( )
virtual

Definition at line 363 of file oof2.cpp.

References deleteAll(), mOwnsContents, OOF_mixRefCount::mReferences, and mRep.

Member Function Documentation

bool OOF_Dictionary::allObjectsMatch ( OOF_Dictionary rhs)

Definition at line 470 of file oof2.cpp.

References count(), and mRep.

void OOF_Dictionary::append ( OOF_bitPointer  aBit)
inline
OOF_Dictionary OOF_Dictionary::clone ( ) const

Definition at line 389 of file oof2.cpp.

References mRep.

unsigned int OOF_Dictionary::count ( ) const
inline

Definition at line 1498 of file oof1.h.

Referenced by oofRepViewRedirectingRender::AddRowInteractionAreas(), dbView::AdjustFieldsToNewTable(), allObjectsMatch(), dbView::AppendOwnedField(), dbConnect::attachTable(), dbBrowseHelper::browseViewWithTable(), OOF_ramBackend::BuildBackendtables(), OOF_dbaseBackend::BuildBackendtables(), OOF_ctreeBackend::BuildBackendtables(), oofRepViewBand_WinRender::CalcColHeaderWrapping(), oofRepViewBand_MacRender::CalcColHeaderWrapping(), dbConnect::copyAllFrom(), dbAbstractEditHelper::copyFieldsToLinks(), dbAbstractEditHelper::copyLinksToFields(), countVisible(), OOF_dbaseBackend::createTableInConnection(), OOF_mixColumnarBand::customDrawer(), deleteAll(), dbConnect::deleteAll(), dbHierBrowseHelper::deleteAllLevels(), dbConnect::deleteStorage(), describe(), describeVisible(), oofRepGraphBand_CSVRender::draw(), oofRepGraphBand_TSVRender::draw(), oofRepViewBand_HTMLRender::draw(), oofRepViewBand_CSVRender::draw(), oofRepViewBand_TSVRender::draw(), oofRepViewBand_WinRender::draw(), oofRepViewBand_MacRender::draw(), oofRepViewBand_RTFRender::draw(), dbRepChar::drawColumnar(), oofRepViewBand_CSVRender::drawColumnHeaders(), oofRepViewBand_TSVRender::drawColumnHeaders(), oofRepViewBand_WinRender::drawColumnHeaders(), oofRepViewBand_MacRender::drawColumnHeaders(), oofRepViewBand_RTFRender::drawColumnHeaders(), oofRepViewBand_WinRender::DrawContinuingOverPage(), oofRepViewBand_MacRender::DrawContinuingOverPage(), dbRepChar::drawHeader(), dbRepChar::drawPageWise(), dbConnect::dumpData(), dbView::extract(), dbRep::extract(), oofSerializableFactory::factoryMatching(), oofRepViewBand_MacRender::finishConstruction(), dbRepChar::formatForCharStream(), dbConnect::generateTestData(), OOF_mixOutlineItem::GetDrawContentsFromView(), dbAbstractEditHelper::getLink(), dbViewAsTableStorage::GetStorageSize(), OOF_mixColumnarBand::hasCustomViewDrawers(), dbListBoxDisplay::loadData(), dbConnect::MakeAllTablesValid(), dbConnect_ram::MakeTableBackend(), oofRepViewBand::numCols(), oofRepColHeaderEditLink::oofRepColHeaderEditLink(), oofRepViewEditLink::oofRepViewEditLink(), dbAbstractEditHelper::readOnly(), dbAbstractEditHelper::ResetDirtyLinks(), dbConnect::resumeSorting(), OOF_simpleRecordBackend::saveRecord(), oofXMLDBWriter::startSchema(), dbConnect::stats(), dbConnect::suspendSorting(), OOF_repXMLschemaVisitor::UniquifyTables(), dbAbstractEditHelper::updateDerivedFieldDisplays(), dbAbstractEditHelper::ValidateLinks(), OOF_repEditSetupVisitor::VisitIterableBandBody(), OOF_repBufferSettingVisitor::VisitView(), OOF_repXMLlayoutVisitor::WriteColumns(), oofXMLDBWriter::writeRecord(), dbConnect::~dbConnect(), dbConnect_ram::~dbConnect_ram(), and OOF_dbaseBackend::~OOF_dbaseBackend().

unsigned int OOF_Dictionary::countVisible ( bool  wantVisible = true)

Definition at line 397 of file oof2.cpp.

References count(), EntryMatchesVisibility(), and mRep.

void OOF_Dictionary::deleteAll ( )
void OOF_Dictionary::describe ( std::ostream &  ) const
virtual

Definition at line 446 of file oof2.cpp.

References count(), and value().

Referenced by dbTable::describe(), and dbConnect::describe().

void OOF_Dictionary::describeVisible ( std::ostream &  ,
bool  wantVisible 
) const
virtual

Definition at line 457 of file oof2.cpp.

References count(), OOF_PublicBase::describe(), EntryMatchesVisibility(), and value().

bool OOF_Dictionary::EntryMatchesVisibility ( const OOF_PublicBase entry,
bool  wantVisible 
) const
inlineprotected

Definition at line 1526 of file oof1.h.

References OOF_PublicBase::hidden().

Referenced by countVisible(), describeVisible(), and moreVisible().

OOF_bitPointer & OOF_Dictionary::item ( unsigned int  index)
inline

Definition at line 1587 of file oof1.h.

Referenced by deleteAll(), and oofSerializableFactory::factoryMatching().

unsigned int OOF_Dictionary::iter ( ) const
inline

Definition at line 1491 of file oof1.h.

Referenced by dbConnect::dumpData(), dbTable::extract(), and dbTable::makeView().

OOF_bitPointer & OOF_Dictionary::lookupByAttribute ( const char *  attributeValue,
const char *  attributeType = 0 
)
inline

Definition at line 1615 of file oof1.h.

OOF_bitPointer & OOF_Dictionary::missingItem ( )
inlinestatic

Definition at line 1622 of file oof1.h.

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!.

Definition at line 415 of file oof2.cpp.

References EntryMatchesVisibility(), more(), next(), and operator()().

Referenced by dbConnect::dumpData(), dbTable::extract(), and dbTable::makeView().

void OOF_Dictionary::next ( )
inline
void OOF_Dictionary::nextVisible ( bool  wantVisible = true)
inline

Definition at line 1543 of file oof1.h.

Referenced by dbConnect::dumpData(), dbTable::extract(), and dbTable::makeView().

OOF_bitPointer & OOF_Dictionary::operator() ( )
inline

Definition at line 1572 of file oof1.h.

Referenced by moreVisible().

OOF_Dictionary & OOF_Dictionary::operator= ( const OOF_Dictionary rhs)

Definition at line 374 of file oof2.cpp.

References OOF_mixRefCount::mReferences, and mRep.

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

Definition at line 1608 of file oof1.h.

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

Definition at line 1601 of file oof1.h.

void OOF_Dictionary::ownsContents ( bool  ownsFlag = true)
inline
OOF_bitPointer OOF_Dictionary::pop ( )
inline

Definition at line 1558 of file oof1.h.

Referenced by oofXMLschemaParser::endElement().

void OOF_Dictionary::reset ( )
inline

Definition at line 1565 of file oof1.h.

void OOF_Dictionary::start ( )
inline
void OOF_Dictionary::startVisible ( bool  wantVisible = true)
inline

Definition at line 1535 of file oof1.h.

Referenced by dbConnect::dumpData(), dbTable::extract(), and dbTable::makeView().

OOF_bitPointer OOF_Dictionary::value ( unsigned int  index) const
inline

Member Data Documentation

unsigned int OOF_Dictionary::mInternalIter
protected

Definition at line 214 of file oof1.h.

Referenced by dbView::currentHeading().

bool OOF_Dictionary::mOwnsContents
protected

Definition at line 215 of file oof1.h.

Referenced by ~OOF_Dictionary().

OOF_DictRep* OOF_Dictionary::mRep
protected
OOF_bitPointer OOF_Dictionary::sMissingItem
staticprotected

Definition at line 216 of file oof1.h.


The documentation for this class was generated from the following files: