Gnash  0.8.11dev
Classes | Public Types | Public Member Functions | List of all members
gnash::MovieLibrary Class Reference

Library of SWF movies indexed by URL strings. More...

#include <MovieLibrary.h>

Classes

struct  LibraryItem
 

Public Types

typedef std::map< std::string, LibraryItemLibraryContainer
 

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 ()
 

Detailed Description

Library of SWF movies indexed by URL strings.

Elements are actually movie_definitions, the ones associated with URLS. They may be BitmapMovieDefinitions or SWFMovieDefinitions.

Member Typedef Documentation

§ LibraryContainer

typedef std::map<std::string, LibraryItem> gnash::MovieLibrary::LibraryContainer

Constructor & Destructor Documentation

§ MovieLibrary()

gnash::MovieLibrary::MovieLibrary ( )
inline

Member Function Documentation

§ add()

void gnash::MovieLibrary::add ( const std::string &  key,
movie_definition mov 
)
inline

§ clear()

void gnash::MovieLibrary::clear ( )
inline

References gnash::key::a, and gnash::key::b.

Referenced by gnash::MovieFactory::clear().

§ get()

bool gnash::MovieLibrary::get ( const std::string &  key,
boost::intrusive_ptr< movie_definition > *  ret 
)
inline

§ setLimit()

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().


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