UGDK  0.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::gdd::CachedLoader< T > Class Template Reference
Inheritance diagram for ugdk::gdd::CachedLoader< T >:
Collaboration diagram for ugdk::gdd::CachedLoader< T >:

Public Member Functions

 CachedLoader (DescriptionProtocol< T > *protocol)
 
 ~CachedLoader ()
 
T * Load (const std::string &gddfile_path)
 
void Insert (const std::string &tag, T *val)
 ResourceContainer methods.
 
void Replace (const std::string &tag, T *val)
 
bool Exists (const std::string &tag) const
 
T * Find (const std::string &tag)
 
T * Load (const std::string &filepath, const std::string &tag)
 
void ClearCache ()
 
- Public Member Functions inherited from ugdk::gdd::SimpleLoader< T >
 SimpleLoader (DescriptionProtocol< T > *protocol)
 
 ~SimpleLoader ()
 
T * Load (const std::string &gddfile_path)
 
void newData (T *new_data)
 
T *& data ()
 
void cleanData ()
 
- Public Member Functions inherited from ugdk::gdd::AbstractLoader< T >
virtual ~AbstractLoader ()
 
- Public Member Functions inherited from ugdk::base::ResourceContainer< T * >
virtual ~ResourceContainer ()
 
- Public Member Functions inherited from ugdk::base::ResourceContainerBase
virtual ~ResourceContainerBase ()
 

Protected Types

typedef std::map< std::string,
T * > 
DataMap
 
typedef DataMap::iterator DataIterator
 

Additional Inherited Members

- Protected Member Functions inherited from ugdk::gdd::AbstractLoader< T >
DescriptionProtocol< T > * protocol () const
 
 AbstractLoader (DescriptionProtocol< T > *protocol)
 
- Protected Member Functions inherited from ugdk::base::ResourceContainer< T * >
 ResourceContainer ()
 
- Protected Attributes inherited from ugdk::gdd::SimpleLoader< T >
T * loaded_data_
 

Member Typedef Documentation

template<class T >
typedef DataMap::iterator ugdk::gdd::CachedLoader< T >::DataIterator
protected
template<class T >
typedef std::map<std::string, T*> ugdk::gdd::CachedLoader< T >::DataMap
protected

Constructor & Destructor Documentation

template<class T >
ugdk::gdd::CachedLoader< T >::CachedLoader ( DescriptionProtocol< T > *  protocol)
inline
template<class T >
ugdk::gdd::CachedLoader< T >::~CachedLoader ( )

Member Function Documentation

template<class T >
void ugdk::gdd::CachedLoader< T >::ClearCache ( )
template<class T >
bool ugdk::gdd::CachedLoader< T >::Exists ( const std::string &  tag) const
virtual
template<class T >
T * ugdk::gdd::CachedLoader< T >::Find ( const std::string &  tag)
virtual
template<class T >
void ugdk::gdd::CachedLoader< T >::Insert ( const std::string &  tag,
T *  val 
)
virtual

ResourceContainer methods.

Implements ugdk::base::ResourceContainer< T * >.

template<class T >
T * ugdk::gdd::CachedLoader< T >::Load ( const std::string &  gddfile_path)
virtual
template<class T >
T * ugdk::gdd::CachedLoader< T >::Load ( const std::string &  filepath,
const std::string &  tag 
)
virtual
template<class T >
void ugdk::gdd::CachedLoader< T >::Replace ( const std::string &  tag,
T *  val 
)
virtual

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