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

Dict Class Reference

#include </home/clem/local/src/opie/core/multimedia/opieplayer/libflash/character.h>

Inheritance diagram for Dict:

Inheritance graph
[legend]
Collaboration diagram for Dict:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Dict ()
 ~Dict ()
void addCharacter (Character *character)
void nameCharacter (long id, char *string)
CharactergetCharacter (long id)
void dictRewind ()
CharacterdictNextCharacter ()
 Dict (XRef *xrefA)
 ~Dict ()
int incRef ()
int decRef ()
int getLength ()
void add (char *key, Object *val)
GBool is (char *type)
Objectlookup (char *key, Object *obj)
ObjectlookupNF (char *key, Object *obj)
char * getKey (int i)
ObjectgetVal (int i, Object *obj)
ObjectgetValNF (int i, Object *obj)
void setXRef (XRef *xrefA)

Private Member Functions

DictEntryfind (char *key)

Private Attributes

sCharCellhead
sCharCellcurrentCell
XRefxref
DictEntryentries
int size
int length
int ref

Constructor & Destructor Documentation

Dict::Dict  ) 
 

Definition at line 142 of file character.cc.

References head.

Dict::~Dict  ) 
 

Definition at line 147 of file character.cc.

References sCharCell::elt, head, and sCharCell::next.

Dict::Dict XRef xrefA  ) 
 

Definition at line 25 of file Dict.cc.

References entries, length, NULL, ref, size, and xref.

Dict::~Dict  ) 
 


Member Function Documentation

void Dict::add char *  key,
Object val
 

Definition at line 42 of file Dict.cc.

References entries, grealloc(), DictEntry::key, length, size, and DictEntry::val.

Referenced by Object::dictAdd().

void Dict::addCharacter Character character  ) 
 

Definition at line 161 of file character.cc.

References sCharCell::elt, head, sCharCell::next, and NULL.

Referenced by CInputScript::ParseDefineBits(), CInputScript::ParseDefineBitsJPEG2(), CInputScript::ParseDefineBitsJPEG3(), CInputScript::ParseDefineBitsLossless(), CInputScript::ParseDefineButton(), CInputScript::ParseDefineButton2(), CInputScript::ParseDefineFont(), CInputScript::ParseDefineFont2(), CInputScript::ParseDefineShape(), CInputScript::ParseDefineSound(), CInputScript::ParseDefineSprite(), and CInputScript::ParseDefineText().

int Dict::decRef  )  [inline]
 

Definition at line 38 of file Dict.h.

References ref.

Referenced by Object::free().

Character * Dict::dictNextCharacter  ) 
 

Definition at line 195 of file character.cc.

References currentCell, sCharCell::elt, and sCharCell::next.

void Dict::dictRewind  ) 
 

Definition at line 189 of file character.cc.

References currentCell, and head.

DictEntry * Dict::find char *  key  )  [inline, private]
 

Definition at line 52 of file Dict.cc.

References entries, length, and NULL.

Referenced by is(), lookup(), and lookupNF().

Character * Dict::getCharacter long  id  ) 
 

Definition at line 177 of file character.cc.

References sCharCell::elt, Character::getTagId(), head, and sCharCell::next.

Referenced by CInputScript::ParseButtonRecord(), CInputScript::ParseDefineButtonCxform(), CInputScript::ParseDefineButtonSound(), CInputScript::ParseDefineFontInfo(), ParseFillStyle(), CInputScript::ParsePlaceObject(), CInputScript::ParsePlaceObject2(), CInputScript::ParseRemoveObject(), CInputScript::ParseStartSound(), and CInputScript::ParseTextRecord().

char * Dict::getKey int  i  ) 
 

Definition at line 80 of file Dict.cc.

References entries, and DictEntry::key.

Referenced by Object::dictGetKey(), and GfxFontDict::GfxFontDict().

int Dict::getLength  )  [inline]
 

Definition at line 41 of file Dict.h.

References length.

Referenced by Object::dictGetLength(), and GfxFontDict::GfxFontDict().

Object * Dict::getVal int  i,
Object obj
 

Definition at line 84 of file Dict.cc.

References entries, Object::fetch(), DictEntry::val, and xref.

Referenced by Object::dictGetVal().

Object * Dict::getValNF int  i,
Object obj
 

Definition at line 88 of file Dict.cc.

References Object::copy(), entries, and DictEntry::val.

Referenced by Object::dictGetValNF(), and GfxFontDict::GfxFontDict().

int Dict::incRef  )  [inline]
 

Definition at line 37 of file Dict.h.

References ref.

Referenced by Object::copy().

GBool Dict::is char *  type  ) 
 

Definition at line 62 of file Dict.cc.

References find(), Object::isName(), and DictEntry::val.

Referenced by Object::dictIs().

Object * Dict::lookup char *  key,
Object obj
 

Definition at line 68 of file Dict.cc.

References Object::fetch(), find(), Object::initNull(), DictEntry::val, and xref.

Referenced by Annot::Annot(), Object::dictLookup(), Gfx::doAnnot(), Gfx::doForm(), Gfx::doImage(), ExponentialFunction::ExponentialFunction(), Gfx8BitFont::Gfx8BitFont(), GfxCIDFont::GfxCIDFont(), GfxResources::GfxResources(), GfxTilingPattern::GfxTilingPattern(), Function::init(), Link::Link(), GfxFont::makeFont(), GfxPattern::parse(), GfxICCBasedColorSpace::parse(), Function::parse(), PageAttrs::readBox(), GfxFont::readFontDescriptor(), Catalog::readMetadata(), SampledFunction::SampledFunction(), and StitchingFunction::StitchingFunction().

Object * Dict::lookupNF char *  key,
Object obj
 

Definition at line 74 of file Dict.cc.

References Object::copy(), find(), and DictEntry::val.

Referenced by Object::dictLookupNF(), and Page::Page().

void Dict::nameCharacter long  id,
char *  string
 

Definition at line 209 of file character.cc.

References sCharCell::elt, Character::getTagId(), head, sCharCell::next, and Character::setName().

Referenced by CInputScript::ParseNameCharacter().

void Dict::setXRef XRef xrefA  )  [inline]
 

Definition at line 62 of file Dict.h.

References xref.


Member Data Documentation

struct sCharCell* Dict::currentCell [private]
 

Definition at line 73 of file character.h.

Referenced by dictNextCharacter(), and dictRewind().

DictEntry* Dict::entries [private]
 

Definition at line 67 of file Dict.h.

Referenced by add(), Dict(), find(), getKey(), getVal(), and getValNF().

struct sCharCell* Dict::head [private]
 

Definition at line 72 of file character.h.

Referenced by addCharacter(), Dict(), dictRewind(), getCharacter(), nameCharacter(), and ~Dict().

int Dict::length [private]
 

Definition at line 69 of file Dict.h.

Referenced by add(), Dict(), find(), getLength(), and CInputScript::ParseActionRecord().

int Dict::ref [private]
 

Definition at line 70 of file Dict.h.

Referenced by decRef(), Dict(), and incRef().

int Dict::size [private]
 

Definition at line 68 of file Dict.h.

Referenced by add(), and Dict().

XRef* Dict::xref [private]
 

Definition at line 66 of file Dict.h.

Referenced by Dict(), getVal(), lookup(), and setXRef().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:31:13 2005 for OPIE by  doxygen 1.4.2