Definition at line 29 of file test_property.cpp.
◆ Get() [1/3]
template<typename T >
std::optional< T > INSPECTABLE::Get |
( |
const wxString & |
aProperty | ) |
const |
|
inlineinherited |
Definition at line 104 of file inspectable.h.
105 {
109 std::optional<T> ret;
110
111 if( prop )
112 {
114
115 if( object )
116 ret = prop->
get<T>( object );
117 }
118
119 return ret;
120 }
virtual size_t OwnerHash() const =0
Return type-id of the Owner class.
T get(const void *aObject) const
Provide class metadata.Helper macro to map type hashes to names.
static PROPERTY_MANAGER & Instance()
PROPERTY_BASE * GetProperty(TYPE_ID aType, const wxString &aProperty) const
Return a property for a specific type.
const void * TypeCast(const void *aSource, TYPE_ID aBase, TYPE_ID aTarget) const
Cast a type to another type.
size_t TYPE_ID
Unique type identifier.
References PROPERTY_BASE::get(), PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::Instance(), PROPERTY_BASE::OwnerHash(), TYPE_HASH, and PROPERTY_MANAGER::TypeCast().
◆ Get() [2/3]
◆ Get() [3/3]
◆ getA()
virtual int A::getA |
( |
| ) |
const |
|
pure virtual |
◆ getA2()
virtual const int & A::getA2 |
( |
| ) |
const |
|
inlinevirtual |
◆ getPoint()
const wxPoint & A::getPoint |
( |
| ) |
const |
|
inline |
◆ getPoint2()
wxPoint A::getPoint2 |
( |
| ) |
const |
|
inline |
◆ getPoint3()
◆ getPoint4()
const wxPoint & A::getPoint4 |
( |
| ) |
const |
|
inline |
◆ Set() [1/3]
template<typename T >
bool INSPECTABLE::Set |
( |
const wxString & |
aProperty, |
|
|
T |
aValue |
|
) |
| |
|
inlineinherited |
◆ Set() [2/3]
◆ Set() [3/3]
bool INSPECTABLE::Set |
( |
PROPERTY_BASE * |
aProperty, |
|
|
wxAny & |
aValue |
|
) |
| |
|
inlineinherited |
◆ setA()
virtual void A::setA |
( |
int |
a | ) |
|
|
pure virtual |
◆ setPoint()
virtual void A::setPoint |
( |
const wxPoint & |
p | ) |
|
|
inlinevirtual |
◆ setPoint2()
void A::setPoint2 |
( |
wxPoint & |
p | ) |
|
|
inline |
◆ setPoint3()
void A::setPoint3 |
( |
wxPoint |
p | ) |
|
|
inline |
◆ setPoint4()
void A::setPoint4 |
( |
wxPoint |
p | ) |
|
|
inline |
◆ m_a
◆ m_p
The documentation for this class was generated from the following file: