ecto
|
The spore is a typed handle for tendrils, making holding onto tendrils a bit easier. More...
#include <spore.hpp>
Public Types | |
typedef spore< T > | this_type |
typedef T | value_type |
typedef T & | reference_type |
typedef T * | pointer_type |
typedef const T * | const_pointer_type |
typedef tendril_ptr this_type::* | unspecified_bool_type |
Public Member Functions | |
spore () | |
spore (tendril_ptr t) | |
spore< T > & | set_callback (typename boost::function1< void, T > cb) |
spore< T > & | notify () |
spore< T > & | set_doc (const std::string &doc) |
spore< T > & | set_default_val (const T &val) |
bool | dirty () const |
void | dirty (bool d) |
bool | user_supplied () const |
bool | has_default () const |
spore< T > & | required (bool b) |
bool | required () const |
pointer_type | operator-> () |
const_pointer_type | operator-> () const |
reference_type | operator* () |
const_pointer_type | operator* () const |
operator unspecified_bool_type () const | |
Private Member Functions | |
tendril_ptr | get () |
tendril_cptr | get () const |
Private Attributes | |
tendril_ptr | tendril_ |
The spore is a typed handle for tendrils, making holding onto tendrils a bit easier.
typedef const T* ecto::spore< T >::const_pointer_type |
typedef T* ecto::spore< T >::pointer_type |
typedef T& ecto::spore< T >::reference_type |
typedef spore<T> ecto::spore< T >::this_type |
typedef tendril_ptr this_type::* ecto::spore< T >::unspecified_bool_type |
typedef T ecto::spore< T >::value_type |
|
inline |
Allocates a spore that doesn't point to anything.
|
inline |
implicit constructor from a tendril ptr. Needs to be a shared_ptr and uses this to ensure that the spore always points to valid tendril.
|
inline |
|
inline |
|
inlineprivate |
Grab a pointer to the tendril that this spore points to.
|
inlineprivate |
Grab a pointer to the tendril that this spore points to. const overload.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set a typed callback, that will be called when ever the tendril value is changed by the user.
cb | The callback |
|
inline |
|
inline |
|
inline |
|
private |