![]() |
KiCad PCB EDA Suite
|
#include <property.h>
Public Types | |
typedef std::decay< T >::type | BASE_TYPE |
typedef void(Base::* | SETTER) (T) |
Public Member Functions | |
template<typename SetType , typename GetType > | |
PROPERTY_ENUM (const wxString &aName, void(Base::*aSetter)(SetType), GetType(Base::*aGetter)(), PROPERTY_DISPLAY aDisplay=PROPERTY_DISPLAY::DEFAULT) | |
template<typename SetType , typename GetType > | |
PROPERTY_ENUM (const wxString &aName, void(Base::*aSetter)(SetType), GetType(Base::*aGetter)() const, PROPERTY_DISPLAY aDisplay=PROPERTY_DISPLAY::DEFAULT) | |
virtual void | setter (void *obj, wxAny &v) override |
virtual wxAny | getter (void *obj) const override |
Set method. More... | |
const wxPGChoices & | Choices () const override |
Return a limited set of possible values (e.g. More... | |
void | SetChoices (const wxPGChoices &aChoices) override |
Set the possible values for for the property. More... | |
bool | HasChoices () const override |
Return true if this PROPERTY has a limited set of possible values. More... | |
size_t | OwnerHash () const override |
Return type-id of the Owner class. More... | |
size_t | BaseHash () const override |
Return type-id of the Base class. More... | |
size_t | TypeHash () const override |
Return type-id of the property type. More... | |
bool | IsReadOnly () const override |
const wxString & | Name () const |
bool | Available (INSPECTABLE *aObject) const |
Return true if aObject offers this PROPERTY. More... | |
void | SetAvailableFunc (std::function< bool(INSPECTABLE *)> aFunc) |
Set a callback function to determine whether an object provides this property. More... | |
PROPERTY_DISPLAY | GetDisplay () const |
Protected Member Functions | |
template<typename T > | |
void | set (void *aObject, T aValue) |
template<typename T > | |
T | get (void *aObject) |
Protected Attributes | |
wxPGChoices | m_choices |
std::unique_ptr< SETTER_BASE< Owner, T > > | m_setter |
Get method. More... | |
std::unique_ptr< GETTER_BASE< Owner, T > > | m_getter |
Owner class type-id. More... | |
const size_t | m_ownerHash |
Base class type-id. More... | |
const size_t | m_baseHash |
Property value type-id. More... | |
const size_t | m_typeHash |
Definition at line 384 of file property.h.
|
inherited |
Definition at line 295 of file property.h.
|
inherited |
Definition at line 296 of file property.h.
|
inline |
Definition at line 388 of file property.h.
References ENUM_MAP< T >::Instance(), and PROPERTY_ENUM< Owner, T, Base >::m_choices.
|
inline |
Definition at line 402 of file property.h.
References ENUM_MAP< T >::Instance(), and PROPERTY_ENUM< Owner, T, Base >::m_choices.
|
inlineinherited |
Return true if aObject offers this PROPERTY.
Definition at line 224 of file property.h.
References PROPERTY_BASE::m_availFunc.
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineoverridevirtualinherited |
Return type-id of the Base class.
Implements PROPERTY_BASE.
Definition at line 321 of file property.h.
References PROPERTY< Owner, T, Base >::m_baseHash.
|
inlineoverridevirtual |
Return a limited set of possible values (e.g.
enum). Check with HasChoices() if a particular PROPERTY provides such set.
Reimplemented from PROPERTY_BASE.
Definition at line 443 of file property.h.
References PROPERTY_ENUM< Owner, T, Base >::m_choices.
|
inlineprotectedinherited |
Definition at line 268 of file property.h.
References PROPERTY_BASE::getter().
Referenced by PROPERTY_MANAGER::CLASS_DESC::collectPropsRecur(), and INSPECTABLE::Get().
|
inlineinherited |
|
inlineoverridevirtual |
Set method.
Reimplemented from PROPERTY< Owner, T, Base >.
Definition at line 436 of file property.h.
|
inlineoverridevirtual |
Return true if this PROPERTY has a limited set of possible values.
Reimplemented from PROPERTY_BASE.
Definition at line 453 of file property.h.
References PROPERTY_ENUM< Owner, T, Base >::m_choices.
|
inlineoverridevirtualinherited |
Implements PROPERTY_BASE.
Definition at line 331 of file property.h.
References PROPERTY< Owner, T, Base >::m_setter.
Referenced by PROPERTY< Owner, T, Base >::setter().
|
inlineinherited |
Definition at line 189 of file property.h.
References PROPERTY_BASE::m_name.
Referenced by PROPERTY_MANAGER::AddProperty(), and PROPERTY_MANAGER::GetProperty().
|
inlineoverridevirtualinherited |
Return type-id of the Owner class.
Implements PROPERTY_BASE.
Definition at line 316 of file property.h.
References PROPERTY< Owner, T, Base >::m_ownerHash.
|
inlineprotectedinherited |
Definition at line 261 of file property.h.
References PROPERTY_BASE::setter().
Referenced by INSPECTABLE::Set().
|
inlineinherited |
Set a callback function to determine whether an object provides this property.
Definition at line 232 of file property.h.
References PROPERTY_BASE::m_availFunc.
|
inlineoverridevirtual |
Set the possible values for for the property.
Reimplemented from PROPERTY_BASE.
Definition at line 448 of file property.h.
References PROPERTY_ENUM< Owner, T, Base >::m_choices.
|
inlineoverridevirtual |
Reimplemented from PROPERTY< Owner, T, Base >.
Definition at line 415 of file property.h.
|
inlineoverridevirtualinherited |
Return type-id of the property type.
Implements PROPERTY_BASE.
Definition at line 326 of file property.h.
References PROPERTY< Owner, T, Base >::m_typeHash.
|
protectedinherited |
Property value type-id.
Definition at line 376 of file property.h.
Referenced by PROPERTY< Owner, T, Base >::BaseHash().
|
protected |
Definition at line 459 of file property.h.
Referenced by PROPERTY_ENUM< Owner, T, Base >::Choices(), PROPERTY_ENUM< Owner, T, Base >::HasChoices(), PROPERTY_ENUM< Owner, T, Base >::PROPERTY_ENUM(), and PROPERTY_ENUM< Owner, T, Base >::SetChoices().
|
protectedinherited |
Owner class type-id.
Definition at line 370 of file property.h.
|
protectedinherited |
Base class type-id.
Definition at line 373 of file property.h.
Referenced by PROPERTY< Owner, T, Base >::OwnerHash().
|
protectedinherited |
Get method.
Definition at line 367 of file property.h.
Referenced by PROPERTY< Owner, T, Base >::IsReadOnly().
|
protectedinherited |
Definition at line 379 of file property.h.
Referenced by PROPERTY< Owner, T, Base >::TypeHash().