Gnash
0.8.11dev
|
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 |
|
inline |
|
inline |
References gnash::MovieLibrary::LibraryItem::def, and gnash::MovieLibrary::LibraryItem::hitCount.
Referenced by gnash::MovieFactory::makeMovie().
|
inline |
References gnash::key::a, and gnash::key::b.
Referenced by gnash::MovieFactory::clear().
|
inline |
Referenced by gnash::MovieFactory::makeMovie().
|
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().