Scopira
20080306
|
#include <model.h>
Public Types | |
typedef T | data_type |
the type of the data this model_ptr points too | |
Public Member Functions | |
model_ptr (view_i *ins) | |
~model_ptr () | |
void | set (T *o) |
model_ptr & | operator= (T *o) |
model_ptr & | operator= (const model_ptr< T > &o) |
bool | operator== (const model_ptr< T > &rhs) const |
bool | operator!= (const model_ptr< T > &rhs) const |
bool | operator< (const model_ptr< T > &rhs) const |
T * | get (void) const |
T & | ref (void) const |
T * | operator-> (void) const |
T & | operator* (void) const |
bool | is_null (void) const |
Public Member Functions inherited from scopira::core::model_ptr_base | |
model_ptr_base (void) | |
ctor | |
model_i *const & | get_model_ptr (void) const |
gets the raw base pointer (really specialized use here) | |
Protected Attributes | |
view_i * | dm_ins |
the view | |
T * | dm_ptr |
the actual pointer | |
Protected Attributes inherited from scopira::core::model_ptr_base | |
model_i * | dm_model |
internal: the actual pointer | |
Like count_ptr, but does additional view-subscription to model_i stuff
|
inline |
Constructor, null initializing
|
inline |
Destructor
|
inline |
Pretty ascii printer, redirects to internal class.
|
inline |
Is the pointer null?
|
inline |
Comparison (not equals) - compares internal pointer values.
References scopira::core::model_ptr< T >::dm_ptr.
|
inline |
Convinient * deferencer.
|
inline |
Convinient -> accesor to the object
|
inline |
Comparison (less than) - compares internal pointer values.
|
inline |
Assignment.
|
inline |
Assignment.
References scopira::core::model_ptr< T >::dm_ptr.
|
inline |
Comparison (equals) - compares internal pointer values.
References scopira::core::model_ptr< T >::dm_ptr.
|
inline |
Gets the current object, as a reference
|
inline |
Sets the current pointer. Any old pointer will ofcourse be unreferenced.
References scopira::core::model_ptr_base::dm_model.