Gnash  0.8.10
Classes | Public Types | Public Member Functions
gnash::MovieLibrary Class Reference

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

#include <MovieLibrary.h>

List of all members.

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

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

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

Constructor & Destructor Documentation

gnash::MovieLibrary::MovieLibrary ( ) [inline]

Member Function Documentation

void gnash::MovieLibrary::add ( const std::string &  key,
movie_definition mov 
) [inline]
void gnash::MovieLibrary::clear ( ) [inline]
bool gnash::MovieLibrary::get ( const std::string &  key,
boost::intrusive_ptr< movie_definition > *  ret 
) [inline]
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: