Public Types | Public Member Functions | Friends

gnash::CharacterDictionary Class Reference

The Characters dictionary associated with each SWF file. More...

#include <SWFMovieDefinition.h>

List of all members.

Public Types

typedef std::map< int,
boost::intrusive_ptr
< SWF::DefinitionTag > > 
CharacterContainer
 The container used by this dictionary.
typedef
CharacterContainer::iterator 
CharacterIterator
typedef
CharacterContainer::const_iterator 
CharacterConstIterator

Public Member Functions

boost::intrusive_ptr
< SWF::DefinitionTag
getDisplayObject (int id) const
 Get the Character with the given id.
void addDisplayObject (int id, boost::intrusive_ptr< SWF::DefinitionTag > c)
 Add a Character assigning it the given id.
CharacterIterator begin ()
 Return an iterator to the first dictionary element.
CharacterConstIterator begin () const
 Return a const_iterator to the first dictionary element.
CharacterIterator end ()
 Return an iterator to one-past last dictionary element.
CharacterConstIterator end () const
 Return a const_iterator to one-past last dictionary element.

Friends

std::ostream & operator<< (std::ostream &o, const CharacterDictionary &cd)

Detailed Description

The Characters dictionary associated with each SWF file.

This is a set of Characters defined by define tags and getting assigned a unique ID.


Member Typedef Documentation

typedef CharacterContainer::const_iterator gnash::CharacterDictionary::CharacterConstIterator
typedef std::map<int, boost::intrusive_ptr<SWF::DefinitionTag> > gnash::CharacterDictionary::CharacterContainer

The container used by this dictionary.

It contains pairs of 'int' and 'boostintrusive_ptr<DefinitionTag>'

typedef CharacterContainer::iterator gnash::CharacterDictionary::CharacterIterator

Member Function Documentation

void gnash::CharacterDictionary::addDisplayObject ( int  id,
boost::intrusive_ptr< SWF::DefinitionTag c 
)

Add a Character assigning it the given id.

replaces any existing DisplayObject with the same id

Referenced by gnash::SWFMovieDefinition::addDisplayObject().

CharacterConstIterator gnash::CharacterDictionary::begin (  )  const [inline]

Return a const_iterator to the first dictionary element.

CharacterIterator gnash::CharacterDictionary::begin (  )  [inline]

Return an iterator to the first dictionary element.

Referenced by gnash::operator<<().

CharacterConstIterator gnash::CharacterDictionary::end (  )  const [inline]

Return a const_iterator to one-past last dictionary element.

CharacterIterator gnash::CharacterDictionary::end (  )  [inline]

Return an iterator to one-past last dictionary element.

Referenced by gnash::operator<<().

boost::intrusive_ptr< SWF::DefinitionTag > gnash::CharacterDictionary::getDisplayObject ( int  id  )  const

Get the Character with the given id.

returns a NULL if the id is unknown.

References _, and IF_VERBOSE_PARSE.

Referenced by gnash::SWFMovieDefinition::getDefinitionTag().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const CharacterDictionary cd 
) [friend]

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