![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/util/Ref.h>
Public Member Functions | |
Ref (T *_ptr) | |
Ref (const Ref< T > &ref) | |
operator T& (void) const | |
T * | operator& (void) const |
T & | operator* (void) const |
T * | operator-> (void) const |
Ref< T > & | operator= (T *_ptr) |
Ref< T > & | operator= (const Ref< T > &ref) |
Ref< T > & | operator= (const T &val) |
This class allows handling pointer as references but they provide assignment operators.
T | Pointe type. |
|
inline |
Build a new reference.
_ptr | Pointer to store in. |
|
inline |
Automatic conversion to reference.
|
inline |
Get the stored pointer.
|
inline |
|
inline |
Only way to perform unreference with structure and objects.
Assignment with a reference.
ref | Assigned reference. |
References elm::t::ref().
|
inline |
Assignment of the pointed value.
val | Assigned value. |
|
inline |
Assignment with a pointer.
_ptr | Assigned pointer. |