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 |
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. | |
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) |
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 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 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 |
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
Referenced by gnash::SWFMovieDefinition::addDisplayObject().
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
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.
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.
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.
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().
std::ostream& operator<< | ( | std::ostream & | o, | |
const CharacterDictionary & | cd | |||
) | [friend] |
std::ostream& operator<< | ( | std::ostream & | o, | |
const CharacterDictionary & | cd | |||
) | [friend] |