gListGeneric Class Reference

#include <glist.h>

Inheritance diagram for gListGeneric:

gStorage gTop gList gArg gDirGeneric gdOptUnweb gdTxtCouple gHAttrs gHAType gHtmlContent gHtmlCouple gHTree gHttpRequestList gListInt gParam gParamElem gSmartList gStack gXHttpReplyHeader List of all members.

Public Types

enum  eListStrategy { e_LstDefault, e_LstPointer, e_LstHash }
enum  eListIndexes { e_LstIdx1toN, e_LstIdx1toNstrict, e_LstIdx0Unused }

Public Member Functions

virtual ~gListGeneric ()
virtual bool IsEmpty ()
virtual unsigned N ()
virtual bool IsValidIndex (unsigned idx)
virtual char * Str (unsigned idx)
virtual t_ucharUStr (unsigned idx)
virtual gElemGetElement (unsigned idx)
virtual gElemGetElementPtr (unsigned idx)
virtual gStorageGetObjectPtr (unsigned idx)
virtual gStorageGetFirstObjectPtr ()
virtual gStorageGetLastObjectPtr ()
virtual eStorage ElementsKind ()
virtual int MinimumStorageSize ()
virtual int MaximumStorageSize ()
virtual void Reset ()
virtual unsigned Delete (unsigned startPos=0, unsigned endPos=0)
virtual bool SetCaseSense (bool doCaseSense)
virtual bool AppendObject (gStorage *newObj)
virtual gElemStartPtr ()
virtual gElemEndPtr ()
virtual gStorageNewObject ()
virtual t_ucharToString (t_uchar *uBuf)
virtual bool SaveGuts (FILE *f)
virtual bool RestoreGuts (FILE *f)

Protected Member Functions

 gListGeneric (eStorage aKind, eListStrategy aStgy, eListIndexes aLstIdxs)
void thisPreAllocate (unsigned toSize)
unsigned thisDelete ()
bool thisIndex (unsigned &idx)
bool thisAppend (gStorage *newObj)

Protected Attributes

unsigned size
unsigned preMaxSize
unsigned maxSize
eListIndexes lstIdxs
eListStrategy stgy
gUCharBuffer genUCharBuf
gElempStart
gElempEnd
gElempCurrent
bool doIgnoreCase

Member Enumeration Documentation

enum gListGeneric::eListIndexes
 

Enumeration values:
e_LstIdx1toN 
e_LstIdx1toNstrict 
e_LstIdx0Unused 

Definition at line 58 of file glist.h.

enum gListGeneric::eListStrategy
 

Enumeration values:
e_LstDefault 
e_LstPointer 
e_LstHash 

Definition at line 53 of file glist.h.


Constructor & Destructor Documentation

gListGeneric::~gListGeneric  )  [virtual]
 

Definition at line 92 of file glist.cpp.

gListGeneric::gListGeneric eStorage  aKind,
eListStrategy  aStgy,
eListIndexes  aLstIdxs
[protected]
 

Definition at line 74 of file glist.cpp.


Member Function Documentation

virtual bool gListGeneric::AppendObject gStorage newObj  )  [inline, virtual]
 

Definition at line 104 of file glist.h.

Referenced by sCoordText::AddCoordToList(), gParamVal::AddToList(), gListInt::Append(), gHList::AppendCouple(), gHAttrs::BuildFromLRLists(), gList::CopyList(), gStack::Push(), gHtmlContent::thisAddCouple(), gHash::thisAddElem(), gArrayCollect::thisAddIntoList(), and gConfig::thisAddLineToList().

unsigned gListGeneric::Delete unsigned  startPos = 0,
unsigned  endPos = 0
[virtual]
 

Definition at line 174 of file glist.cpp.

Referenced by gControl::ClearLogMem(), sCoordText::Delete(), gList::DeleteString(), gList::DeleteStrings(), gXHttpGeneric::GetContent(), gStack::Pop(), gArrayCollect::ReleaseAll(), Reset(), gHAttrs::Reset(), gControl::ResetLog(), gConfig::thisConfigDelete(), gConfig::thisConfigInit(), gUnweb::thisPreProcess(), gFileFetch::thisReadFile(), gHAttrs::TypeEnumToSmartL(), and gXHttpGeneric::WriteHead().

gStorage::eStorage gListGeneric::ElementsKind  )  [virtual]
 

Definition at line 124 of file glist.cpp.

virtual gElem* gListGeneric::EndPtr  )  [inline, virtual]
 

Definition at line 114 of file glist.h.

Referenced by gStack::GetCurrent().

gElem & gListGeneric::GetElement unsigned  idx  )  [virtual]
 

Definition at line 141 of file glist.cpp.

gElem * gListGeneric::GetElementPtr unsigned  idx  )  [virtual]
 

Definition at line 148 of file glist.cpp.

Referenced by gList::CopyList(), Delete(), GetObjectPtr(), and gList::Show().

gStorage * gListGeneric::GetFirstObjectPtr  )  [virtual]
 

Definition at line 162 of file glist.cpp.

Referenced by gArrayCollect::GetFirstObjectPtr().

gStorage * gListGeneric::GetLastObjectPtr  )  [virtual]
 

Definition at line 168 of file glist.cpp.

Referenced by gdSnarfCont::Add(), and gArrayCollect::GetLastObjectPtr().

gStorage * gListGeneric::GetObjectPtr unsigned  idx  )  [virtual]
 

Definition at line 154 of file glist.cpp.

Referenced by gHashTriple::Find(), gArg::FindOptionOccurr(), gHAttrs::GetAttrPtr(), gHAttrs::GetAttrValuePtr(), sCoordText::GetCoord(), gHParsed::GetCouple(), gHtmlContent::GetCouple(), gDirGeneric::GetName(), gArrayCollect::GetObjectPtr(), gArg::GetOptionPtr(), gConfig::GetSectionLine(), gHAttrs::IsOk(), SaveGuts(), gDirGeneric::SaveGuts(), gHash::Show(), gHParsed::StrMust(), gConfig::thisAddLineToList(), gDirGeneric::thisAllNamesOk(), gUnweb::thisCutCommentsInTxt(), gHash::thisFindKey(), and gHtmlParser::thisParse().

virtual bool gListGeneric::IsEmpty  )  [inline, virtual]
 

Reimplemented in gHTree.

Definition at line 67 of file glist.h.

Referenced by gdHCouple::CopyNormalizeAttr().

bool gListGeneric::IsValidIndex unsigned  idx  )  [virtual]
 

Definition at line 97 of file glist.cpp.

Referenced by gHParsed::GetCouple(), and gHtmlContent::GetCouple().

virtual int gListGeneric::MaximumStorageSize  )  [inline, virtual]
 

Reimplemented from gStorage.

Definition at line 89 of file glist.h.

virtual int gListGeneric::MinimumStorageSize  )  [inline, virtual]
 

Reimplemented from gStorage.

Definition at line 86 of file glist.h.

virtual unsigned gListGeneric::N  )  [inline, virtual]
 

Definition at line 70 of file glist.h.

Referenced by gParamElem::Add(), gSmartList::AddFromList(), gdSnarfCont::AddFromList(), gSmartList::AddFromStr(), gXHttpReplyHeader::AddLine(), gArg::AddParams(), gHtmlCouple::AddText(), gHAttrs::BuildFromLRLists(), gList::CopyList(), gdHCouple::CopyNormalizeAttr(), Delete(), gHParsed::Depth(), gUnweb::Dump(), gHashTriple::Find(), gHParsed::FindCouple(), gListInt::FindInt(), gArg::FindOption(), gHAttrs::GetAttrPtr(), gStack::GetCurrent(), gdHttpSnarf::GetHeaderLines(), gParam::GetNewObjectFromFormat(), gArg::GetOptionPtr(), gConfig::GetSectionLine(), gHtmlCouple::GetStr(), gdHCouple::GetStr(), gHtmlCouple::GetStrForTree(), gConfig::HasSection(), sCoordText::IsOk(), gHAttrs::IsOk(), gList::Match(), gSmartList::MatchWhere(), sCoordText::N(), gHttpRequestList::NLines(), gArg::NoArg(), gArg::NumberParams(), gArrayCollect::NumObjs(), gdHttpURI::ParseProxyStr(), gStack::Pop(), sFileKind::Process(), gFileControl::RemoveTemp(), SaveGuts(), gDirGeneric::SaveGuts(), gHAttrList::Set(), gHInOpt::SetFromString(), gHtmlParser::SetOptions(), gVersion::SetVersion(), gList::Show(), gHtmlContent::Show(), gHAttrs::Show(), gHash::Show(), gdHCouple::Show(), gHSeq::ShowPart(), gHtmlParser::ShowTree(), gHAttrList::Str(), gConfig::thisAddLineToList(), gDirGeneric::thisAllNamesOk(), gHSeq::thisBuild(), gHSeq::thisCheck(), gHOutOpt::thisConfig(), gUnweb::thisCutCommentsInTxt(), gList::thisFind(), gHash::thisFindKey(), gArg::thisFindParamFromStr(), gArg::thisFlushAll(), gXHttpCont::thisGetHtmlContrl(), gStrControl::thisInit(), gdTxtCouple::thisInitTxtCouple(), gHtmlParser::thisParse(), gConfig::thisParseLine(), gUnweb::thisPostProcess(), gUnweb::thisPreJoin(), gUnweb::thisPreProcess(), gUnweb::thisPreStripComments(), gConfig::thisProcess(), gArg::thisProcessParamElem(), gConfig::thisRead(), gHParsed::TrashLast(), gHtmlContent::UpCaseAttributes(), and gXHttpGeneric::WriteHead().

gStorage * gListGeneric::NewObject  )  [virtual]
 

Implements gStorage.

Reimplemented in gParamElem.

Definition at line 241 of file glist.cpp.

virtual void gListGeneric::Reset  )  [inline, virtual]
 

Reimplemented from gStorage.

Reimplemented in gHAttrs, gHAType, and gHTree.

Definition at line 94 of file glist.h.

Referenced by gHtmlCouple::CopyTag(), gHTree::Reset(), gHAType::Reset(), and gHAttrs::Reset().

bool gListGeneric::RestoreGuts FILE *  f  )  [virtual]
 

Implements gStorage.

Reimplemented in gArg, gDirGeneric, and gList.

Definition at line 273 of file glist.cpp.

Referenced by gList::RestoreGuts().

bool gListGeneric::SaveGuts FILE *  f  )  [virtual]
 

Implements gStorage.

Reimplemented in gArg, gDirGeneric, and gList.

Definition at line 260 of file glist.cpp.

Referenced by gList::SaveGuts().

virtual bool gListGeneric::SetCaseSense bool  doCaseSense  )  [inline, virtual]
 

Definition at line 100 of file glist.h.

Referenced by gXHttpReplyHeader::IsText(), and gHAttrs::TypeEnumToSmartL().

virtual gElem* gListGeneric::StartPtr  )  [inline, virtual]
 

Definition at line 111 of file glist.h.

char * gListGeneric::Str unsigned  idx  )  [virtual]
 

Reimplemented in gdSnarfCont, gHtmlContent, and gHParsed.

Definition at line 102 of file glist.cpp.

Referenced by gParamElem::Add(), gSmartList::AddFromList(), gdSnarfCont::AddFromList(), gSmartList::AddFromStr(), gXHttpReplyHeader::AddLine(), gArg::AddParams(), gHAttrs::BuildFromLRLists(), gHttpRequestList::Consolidate(), gdHCouple::CopyNormalizeAttr(), gHtmlCouple::CopyTag(), gHAttrList::Find(), sCoordText::FindCoordX(), gHAttrList::GetAttrLValue(), gHAttrList::GetAttrRValue(), gdHttpSnarf::GetHeaderLines(), gXHttpReplyHeader::GetLine(), gParam::GetNewObjectFromFormat(), gConfig::GetSectionFromName(), gConfig::GetSectionLine(), gdHttpSnarf::HttpCodeStr(), gdHttpURI::ParseProxyStr(), sFileKind::Process(), gFileControl::RemoveTemp(), gHAttrList::Set(), gHInOpt::SetFromString(), gVersion::SetVersion(), gArg::Show(), gUnweb::Str(), sCoordText::Str(), gHAttrList::Str(), gFileFetch::Str(), gConfig::thisAddLineToList(), gHOutOpt::thisConfig(), gUnweb::thisConsolidateData(), gUnweb::thisCutCommentsInTxt(), gArg::thisFillParamFromChr(), gArg::thisFillParamFromStr(), gArg::thisFindParamFromStr(), gXHttpCont::thisGetHtmlContrl(), gdTxtCouple::thisInitTxtCouple(), gHtmlParser::thisParse(), gXHttpGeneric::thisParseServerReply(), gUnweb::thisPostProcess(), gUnweb::thisPreJoin(), gUnweb::thisPreProcess(), gUnweb::thisPreStripComments(), gConfig::thisProcess(), gArg::thisProcessParamElem(), gConfig::thisRead(), gUnweb::thisStrSetParse(), gHtmlContent::UpCaseAttributes(), and gXHttpGeneric::WriteHead().

bool gListGeneric::thisAppend gStorage newObj  )  [protected]
 

Definition at line 329 of file glist.cpp.

Referenced by gList::Add(), AppendObject(), and gDir::thisAddSystemName().

unsigned gListGeneric::thisDelete  )  [protected]
 

Definition at line 287 of file glist.cpp.

Referenced by gList::CopyList(), Delete(), gDir::gDir(), and ~gListGeneric().

bool gListGeneric::thisIndex unsigned &  idx  )  [protected]
 

Definition at line 305 of file glist.cpp.

Referenced by Delete(), ElementsKind(), GetElement(), GetElementPtr(), gList::GetInt(), gList::GetUInt(), IsValidIndex(), and Str().

void gListGeneric::thisPreAllocate unsigned  toSize  )  [protected]
 

Definition at line 278 of file glist.cpp.

Referenced by gListGeneric().

t_uchar * gListGeneric::ToString t_uchar uBuf  )  [virtual]
 

Implements gStorage.

Reimplemented in gArg, gDirGeneric, and gList.

Definition at line 247 of file glist.cpp.

Referenced by gList::ToString().

t_uchar * gListGeneric::UStr unsigned  idx  )  [virtual]
 

Definition at line 110 of file glist.cpp.


Member Data Documentation

bool gListGeneric::doIgnoreCase [protected]
 

Definition at line 136 of file glist.h.

Referenced by gList::Match(), gSmartList::MatchWhere(), SetCaseSense(), and gList::thisFind().

gUCharBuffer gListGeneric::genUCharBuf [protected]
 

Definition at line 132 of file glist.h.

Referenced by Str().

eListIndexes gListGeneric::lstIdxs [protected]
 

Definition at line 130 of file glist.h.

Referenced by gListGeneric(), and thisIndex().

unsigned gListGeneric::maxSize [protected]
 

Definition at line 129 of file glist.h.

gElem* gListGeneric::pCurrent [protected]
 

Definition at line 135 of file glist.h.

Referenced by Delete(), ElementsKind(), GetElement(), GetElementPtr(), gList::GetInt(), gList::GetUInt(), Str(), thisAppend(), thisDelete(), thisIndex(), and thisPreAllocate().

gElem* gListGeneric::pEnd [protected]
 

Reimplemented in gHTree.

Definition at line 134 of file glist.h.

Referenced by Delete(), EndPtr(), GetLastObjectPtr(), thisAppend(), and thisDelete().

unsigned gListGeneric::preMaxSize [protected]
 

Definition at line 129 of file glist.h.

Referenced by gListGeneric().

gElem* gListGeneric::pStart [protected]
 

Reimplemented in gHTree.

Definition at line 133 of file glist.h.

Referenced by Delete(), ElementsKind(), GetFirstObjectPtr(), StartPtr(), thisAppend(), thisDelete(), and thisIndex().

unsigned gListGeneric::size [protected]
 

Definition at line 129 of file glist.h.

Referenced by gList::Add(), Delete(), ElementsKind(), IsEmpty(), N(), thisAppend(), thisDelete(), and thisIndex().

eListStrategy gListGeneric::stgy [protected]
 

Definition at line 131 of file glist.h.

Referenced by thisPreAllocate().


The documentation for this class was generated from the following files:
Generated on Sat Aug 18 02:41:16 2007 for xpfweb_v2x lib by  doxygen 1.4.2