Gnash
0.8.10
|
The Characters dictionary associated with each SWF file. More...
#include <SWFMovieDefinition.h>
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) |
The Characters dictionary associated with each SWF file.
This is a set of Characters defined by define tags and getting assigned a unique ID.
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 'boost::intrusive_ptr<DefinitionTag>'
typedef CharacterContainer::iterator gnash::CharacterDictionary::CharacterIterator |
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
References gnash::key::c.
Referenced by gnash::SWFMovieDefinition::addDisplayObject().
CharacterIterator gnash::CharacterDictionary::begin | ( | ) | [inline] |
Return an iterator to the first dictionary element.
Referenced by gnash::operator<<().
CharacterConstIterator gnash::CharacterDictionary::begin | ( | ) | const [inline] |
Return a const_iterator to the first dictionary element.
CharacterIterator gnash::CharacterDictionary::end | ( | ) | [inline] |
Return an iterator to one-past last dictionary element.
Referenced by gnash::operator<<().
CharacterConstIterator gnash::CharacterDictionary::end | ( | ) | const [inline] |
Return a const_iterator to one-past last dictionary element.
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 IF_VERBOSE_PARSE, and _.
Referenced by gnash::SWFMovieDefinition::getDefinitionTag().
std::ostream& operator<< | ( | std::ostream & | o, |
const CharacterDictionary & | cd | ||
) | [friend] |