#include <entityptr.h>
Public Member Functions | |
EntityPtr ()=default | |
EntityPtr (Entity *entity) | |
const std::string & | getInstancePath () const |
std::string | toString () const |
void | assign (const std::string &targetID, rtti::Object &targetObject) |
const Entity & | operator* () const |
Entity & | operator* () |
const Entity * | operator-> () const |
Entity * | operator-> () |
bool | operator== (const EntityPtr &other) const |
bool | operator== (std::nullptr_t) const |
bool | operator!= (const EntityPtr &other) const |
bool | operator!= (std::nullptr_t) const |
bool | operator< (const EntityPtr &other) const |
bool | operator> (const EntityPtr &other) const |
bool | operator<= (const EntityPtr &other) const |
bool | operator>= (const EntityPtr &other) const |
Entity * | get () const |
Entity * | get () |
Static Public Member Functions | |
static std::string | translateTargetID (const std::string &targetID) |
|
default |
void assign | ( | const std::string & | targetID, |
rtti::Object & | targetObject | ||
) |
Assign the target ID & object to this pointer. Used for pointer resolving by the ResourceManager, should not be called manually (is only public so that we can register it in RTTI)
targetID | The ID of the target |
targetObject | The pointer to be assigned |
Entity* get | ( | ) |
Entity* get | ( | ) | const |
const std::string& getInstancePath | ( | ) | const |
bool operator!= | ( | const EntityPtr & | other | ) | const |
bool operator!= | ( | std::nullptr_t | ) | const |
Entity& operator* | ( | ) |
const Entity& operator* | ( | ) | const |
Entity* operator-> | ( | ) |
const Entity* operator-> | ( | ) | const |
bool operator< | ( | const EntityPtr & | other | ) | const |
bool operator<= | ( | const EntityPtr & | other | ) | const |
bool operator== | ( | const EntityPtr & | other | ) | const |
bool operator== | ( | std::nullptr_t | ) | const |
bool operator> | ( | const EntityPtr & | other | ) | const |
bool operator>= | ( | const EntityPtr & | other | ) | const |
std::string toString | ( | ) | const |
Convert the pointer to a string for serialization
|
static |
Convert the full target ID as specified to an ID that can be resolved to an object
targetID | The target ID to translate |