|
Gnash
0.8.10
|
Library of SWF movies indexed by URL strings. More...
#include <MovieLibrary.h>
Classes | |
| struct | LibraryItem |
Public Types | |
| typedef std::map< std::string, LibraryItem > | LibraryContainer |
Public Member Functions | |
| MovieLibrary () | |
| void | setLimit (LibraryContainer::size_type limit) |
| bool | get (const std::string &key, boost::intrusive_ptr< movie_definition > *ret) |
| void | add (const std::string &key, movie_definition *mov) |
| void | clear () |
Library of SWF movies indexed by URL strings.
Elements are actually movie_definitions, the ones associated with URLS. They may be BitmapMovieDefinitions or SWFMovieDefinitions.
| typedef std::map<std::string, LibraryItem> gnash::MovieLibrary::LibraryContainer |
| gnash::MovieLibrary::MovieLibrary | ( | ) | [inline] |
| void gnash::MovieLibrary::add | ( | const std::string & | key, |
| movie_definition * | mov | ||
| ) | [inline] |
References gnash::MovieLibrary::LibraryItem::def, and gnash::MovieLibrary::LibraryItem::hitCount.
Referenced by gnash::MovieFactory::makeMovie().
| void gnash::MovieLibrary::clear | ( | ) | [inline] |
Referenced by gnash::MovieFactory::clear().
| bool gnash::MovieLibrary::get | ( | const std::string & | key, |
| boost::intrusive_ptr< movie_definition > * | ret | ||
| ) | [inline] |
Referenced by gnash::MovieFactory::makeMovie().
| void gnash::MovieLibrary::setLimit | ( | LibraryContainer::size_type | limit | ) | [inline] |
Sets the maximum number of items to hold in the library. When adding new items, the one with the least hit count is being removed in that case. Zero is a valid limit (disables library).
Referenced by MovieLibrary().
1.7.6.1