API Documentation
Loading...
Searching...
No Matches
Resource< t_type > Class Template Reference

#include <Resource.h>

Inheritance diagram for Resource< t_type >:
[legend]
Collaboration diagram for Resource< t_type >:
[legend]

Public Member Functions

 Resource (const T &value)
 
 Resource (const Resource< T > &value)=delete
 
Resource< T > & operator= (const Resource< T > &)=delete
 
virtual ~Resource ()
 
void set (const T &info, bool check_equal=true)
 
void set (T &&info, bool check_equal=true)
 
const T & get () const
 
void getCopy (T &copy) const
 
T & getModifiable ()
 
bool isEqualTo (const T &value) const
 
- Public Member Functions inherited from ResourceBase
 ResourceBase ()
 
 ResourceBase (const ResourceBase &value)
 
virtual ~ResourceBase ()
 
void removeListener (ResourceListener *listener) const
 
ResourceListeneraddListener (ResourceListener *listener) const
 
void addListener (ResourceListener *listener, bool silent_add) const
 
void refreshListeners ()
 

Additional Inherited Members

- Protected Attributes inherited from ResourceBase
Buffer< ResourceListener * > m_listeners
 

Constructor & Destructor Documentation

◆ Resource() [1/2]

template<class t_type >
Resource ( const T & value)
inlineexplicit

◆ Resource() [2/2]

template<class t_type >
Resource ( const Resource< T > & value)
delete

◆ ~Resource()

template<class t_type >
virtual ~Resource ( )
inlinevirtual

Member Function Documentation

◆ get()

template<class t_type >
const T & get ( ) const
inline

◆ getCopy()

template<class t_type >
void getCopy ( T & copy) const
inline

◆ getModifiable()

template<class t_type >
T & getModifiable ( )
inline

◆ isEqualTo()

template<class t_type >
bool isEqualTo ( const T & value) const
inline

◆ operator=()

template<class t_type >
Resource< T > & operator= ( const Resource< T > & )
delete

◆ set() [1/2]

template<class t_type >
void set ( const T & info,
bool check_equal = true )
inline

◆ set() [2/2]

template<class t_type >
void set ( T && info,
bool check_equal = true )
inline

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