CoreComponents 3.0.0
A Modern C++ Toolkit
|
Internal state. More...
#include <MetaPrototype>
Public Member Functions | |
State (const String &className) | |
State (const String &className, const MetaProtocol &protocol) | |
Public Member Functions inherited from MetaObject::State | |
State (const String &className=String{}) | |
virtual MetaObject | produce () const |
virtual void | realize () |
Variant | value (const String &name) const |
Convenience method to get the value of member name | |
Variant & | value (const String &name) |
Convenience method to get/set the value of member name | |
Public Member Functions inherited from Object::State | |
State ()=default | |
Default constructor. | |
State (const State &) | |
Copy constructor. | |
virtual | ~State () |
Virtual destructor. | |
long | useCount () const |
Reference count. | |
const State & | operator= (const State &) const |
template<class T > | |
bool | is () const |
Check if this state is of type T. | |
template<class T > | |
T & | as () |
Statically cast this state to a different type T. | |
template<class T > | |
const T & | as () const |
Statically cast this state to a different type T. | |
Public Attributes | |
MetaProtocol | protocol_ |
Public Attributes inherited from MetaObject::State | |
String | className_ |
Map< String, Variant > | members_ |
List< MetaObject > | children_ |
Internal state.