Simulant  21.06-50
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Types | Public Member Functions | Friends | List of all members
smlt::UniqueID< ResourceTypePtr > Class Template Reference

Public Types

typedef ResourceTypePtr resource_pointer_type
 
typedef ResourceTypePtr::element_type element_type
 

Public Member Functions

 operator bool () const
 
 UniqueID (uint32_t id)
 
 UniqueID (const UniqueID< ResourceTypePtr > &other)
 
void _bind (resource_pointer_type ptr)
 
ResourceTypePtr fetch () const
 
template<typename T >
T * fetch_as () const
 
bool is_bound () const
 
 UniqueID (uint32_t id, ResourceTypePtr ptr)
 
bool operator== (const UniqueID< ResourceTypePtr > &other) const
 
template<typename = std::enable_if<_unique_id_impl::is_shared_ptr<resource_pointer_type>::value>>
 UniqueID (const resource_pointer_type &pointer)
 
template<typename = std::enable_if<_unique_id_impl::is_shared_ptr<resource_pointer_type>::value>>
UniqueIDoperator= (const resource_pointer_type &pointer)
 
UniqueIDoperator= (const UniqueID< ResourceTypePtr > &other)
 
bool operator< (const UniqueID< ResourceTypePtr > &other) const
 
bool operator!= (const UniqueID< ResourceTypePtr > &other) const
 
uint32_t value () const
 

Friends

std::ostream & operator<< (std::ostream &o, UniqueID< ResourceTypePtr > const &instance)
 

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