eris 1.4.0
A WorldForge client library.
Eris::EntityRef Class Reference
Inheritance diagram for Eris::EntityRef:
Collaboration diagram for Eris::EntityRef:

Public Member Functions

 EntityRef (View &v, const std::string &eid)
 
 EntityRef (Entity *)
 
 EntityRef (const EntityRef &ref)
 
 EntityRef (EntityRef &&ref) noexcept
 
EntityRefoperator= (const EntityRef &ref)
 
const Entityoperator* () const
 
Entityoperator* ()
 
const Entityoperator-> () const
 
Entityoperator-> ()
 
Entityget () const
 
 operator bool () const
 
bool operator! () const
 
bool operator== (const EntityRef &e) const
 
bool operator== (const Entity *e) const
 
bool operator< (const EntityRef &e) const
 

Public Attributes

sigc::signal< void, Entity *, Entity * > Changed
 

Detailed Description

Definition at line 14 of file EntityRef.h.

Constructor & Destructor Documentation

◆ EntityRef() [1/5]

Eris::EntityRef::EntityRef ( )
inline

Definition at line 17 of file EntityRef.h.

◆ EntityRef() [2/5]

Eris::EntityRef::EntityRef ( View v,
const std::string &  eid 
)

Definition at line 17 of file EntityRef.cpp.

◆ EntityRef() [3/5]

Eris::EntityRef::EntityRef ( Entity e)
explicit

Definition at line 32 of file EntityRef.cpp.

◆ EntityRef() [4/5]

Eris::EntityRef::EntityRef ( const EntityRef ref)

Definition at line 41 of file EntityRef.cpp.

◆ EntityRef() [5/5]

Eris::EntityRef::EntityRef ( EntityRef &&  ref)
noexcept

Definition at line 50 of file EntityRef.cpp.

Member Function Documentation

◆ get()

Entity * Eris::EntityRef::get ( ) const
inline

Definition at line 53 of file EntityRef.h.

◆ operator bool()

Eris::EntityRef::operator bool ( ) const
inline

Definition at line 58 of file EntityRef.h.

◆ operator!()

bool Eris::EntityRef::operator! ( ) const
inline

Definition at line 63 of file EntityRef.h.

◆ operator*() [1/2]

Entity & Eris::EntityRef::operator* ( )
inline

Definition at line 38 of file EntityRef.h.

◆ operator*() [2/2]

const Entity & Eris::EntityRef::operator* ( ) const
inline

Definition at line 33 of file EntityRef.h.

◆ operator->() [1/2]

Entity * Eris::EntityRef::operator-> ( )
inline

Definition at line 48 of file EntityRef.h.

◆ operator->() [2/2]

const Entity * Eris::EntityRef::operator-> ( ) const
inline

Definition at line 43 of file EntityRef.h.

◆ operator<()

bool Eris::EntityRef::operator< ( const EntityRef e) const
inline

Definition at line 78 of file EntityRef.h.

◆ operator=()

EntityRef & Eris::EntityRef::operator= ( const EntityRef ref)

Definition at line 56 of file EntityRef.cpp.

◆ operator==() [1/2]

bool Eris::EntityRef::operator== ( const Entity e) const
inline

Definition at line 73 of file EntityRef.h.

◆ operator==() [2/2]

bool Eris::EntityRef::operator== ( const EntityRef e) const
inline

Definition at line 68 of file EntityRef.h.

Member Data Documentation

◆ Changed

sigc::signal<void, Entity*, Entity*> Eris::EntityRef::Changed

Emitted when value changes. First parameter is new value, second is old value.

Definition at line 87 of file EntityRef.h.


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