KiCad PCB EDA Suite
PROPERTY< Owner, T, Base > Class Template Reference

#include <property.h>

Inheritance diagram for PROPERTY< Owner, T, Base >:
PROPERTY_BASE

Public Types

using BASE_TYPE = typename std::decay< T >::type
 

Public Member Functions

template<typename SetType , typename GetType >
 PROPERTY (const wxString &aName, void(Base::*aSetter)(SetType), GetType(Base::*aGetter)(), PROPERTY_DISPLAY aDisplay=PT_DEFAULT, ORIGIN_TRANSFORMS::COORD_TYPES_T aCoordType=ORIGIN_TRANSFORMS::NOT_A_COORD)
 
template<typename SetType , typename GetType >
 PROPERTY (const wxString &aName, void(Base::*aSetter)(SetType), GetType(Base::*aGetter)() const, PROPERTY_DISPLAY aDisplay=PT_DEFAULT, ORIGIN_TRANSFORMS::COORD_TYPES_T aCoordType=ORIGIN_TRANSFORMS::NOT_A_COORD)
 
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 Writeable (INSPECTABLE *aObject) const override
 
const wxString & Name () const
 
virtual const wxPGChoices & Choices () const
 Return a limited set of possible values (e.g. More...
 
virtual void SetChoices (const wxPGChoices &aChoices)
 Set the possible values for for the property. More...
 
virtual bool HasChoices () const
 Return true if this PROPERTY has a limited set of possible values. More...
 
bool Available (INSPECTABLE *aObject) const
 Return true if aObject offers this PROPERTY. More...
 
PROPERTY_BASESetAvailableFunc (std::function< bool(INSPECTABLE *)> aFunc)
 Set a callback function to determine whether an object provides this property. More...
 
PROPERTY_BASESetWriteableFunc (std::function< bool(INSPECTABLE *)> aFunc)
 
PROPERTY_DISPLAY Display () const
 
PROPERTY_BASESetDisplay (PROPERTY_DISPLAY aDisplay)
 
ORIGIN_TRANSFORMS::COORD_TYPES_T CoordType () const
 
PROPERTY_BASESetCoordType (ORIGIN_TRANSFORMS::COORD_TYPES_T aType)
 
bool IsInternal () const
 
PROPERTY_BASESetIsInternal (bool aIsInternal=true)
 
bool IsDeprecated () const
 
PROPERTY_BASESetIsDeprecated (bool aIsDeprecated=true)
 
bool IsHiddenFromLibraryEditors () const
 
PROPERTY_BASESetIsHiddenFromLibraryEditors (bool aIsHidden=true)
 
wxString Group () const
 
PROPERTY_BASESetGroup (const wxString &aGroup)
 
PROPERTY_BASESetValidator (PROPERTY_VALIDATOR_FN &&aValidator)
 
VALIDATOR_RESULT Validate (const wxAny &&aValue, EDA_ITEM *aItem)
 

Static Public Member Functions

static VALIDATOR_RESULT NullValidator (const wxAny &&aValue, EDA_ITEM *aItem)
 

Protected Member Functions

 PROPERTY (const wxString &aName, SETTER_BASE< Owner, T > *s, GETTER_BASE< Owner, T > *g, PROPERTY_DISPLAY aDisplay, ORIGIN_TRANSFORMS::COORD_TYPES_T aCoordType)
 
virtual ~PROPERTY ()
 
virtual void setter (void *obj, wxAny &v) override
 
virtual wxAny getter (const void *obj) const override
 Set method. More...
 
template<typename T >
void set (void *aObject, T aValue)
 
template<typename T >
get (const void *aObject) const
 

Protected Attributes

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
 

Private Attributes

const wxString m_name
 Permanent identifier for this property. More...
 
PROPERTY_DISPLAY m_display
 The display style controls how properties are edited in the properties manager GUI. More...
 
ORIGIN_TRANSFORMS::COORD_TYPES_T m_coordType
 The coordinate type controls how distances are mapped to the user coordinate system. More...
 
bool m_isInternal
 Internal properties are hidden from the GUI but not from the rules editor autocomplete. More...
 
bool m_isDeprecated
 Deprecated properties are hidden from the GUI and rules editor autocomplete. More...
 
bool m_hideFromLibraryEditors
 This property should only be shown in the design editor, not the library editor. More...
 
wxString m_group
 Optional group identifier. More...
 
std::function< bool(INSPECTABLE *)> m_availFunc
 Eval to determine if prop is available. More...
 
std::function< bool(INSPECTABLE *)> m_writeableFunc
 Eval to determine if prop is read-only. More...
 
PROPERTY_VALIDATOR_FN m_validator
 

Detailed Description

template<typename Owner, typename T, typename Base = Owner>
class PROPERTY< Owner, T, Base >

Definition at line 403 of file property.h.

Member Typedef Documentation

◆ BASE_TYPE

template<typename Owner , typename T , typename Base = Owner>
using PROPERTY< Owner, T, Base >::BASE_TYPE = typename std::decay<T>::type

Definition at line 406 of file property.h.

Constructor & Destructor Documentation

◆ PROPERTY() [1/3]

template<typename Owner , typename T , typename Base = Owner>
template<typename SetType , typename GetType >
PROPERTY< Owner, T, Base >::PROPERTY ( const wxString &  aName,
void(Base::*)(SetType)  aSetter,
GetType(Base::*)()  aGetter,
PROPERTY_DISPLAY  aDisplay = PT_DEFAULT,
ORIGIN_TRANSFORMS::COORD_TYPES_T  aCoordType = ORIGIN_TRANSFORMS::NOT_A_COORD 
)
inline

Definition at line 409 of file property.h.

413 : PROPERTY( aName, METHOD<Owner, T, Base>::Wrap( aSetter ),
414 METHOD<Owner, T, Base>::Wrap( aGetter ), aDisplay, aCoordType )
415 {
416 }
PROPERTY(const wxString &aName, void(Base::*aSetter)(SetType), GetType(Base::*aGetter)(), PROPERTY_DISPLAY aDisplay=PT_DEFAULT, ORIGIN_TRANSFORMS::COORD_TYPES_T aCoordType=ORIGIN_TRANSFORMS::NOT_A_COORD)
Definition: property.h:409

◆ PROPERTY() [2/3]

template<typename Owner , typename T , typename Base = Owner>
template<typename SetType , typename GetType >
PROPERTY< Owner, T, Base >::PROPERTY ( const wxString &  aName,
void(Base::*)(SetType)  aSetter,
GetType(Base::*)() const  aGetter,
PROPERTY_DISPLAY  aDisplay = PT_DEFAULT,
ORIGIN_TRANSFORMS::COORD_TYPES_T  aCoordType = ORIGIN_TRANSFORMS::NOT_A_COORD 
)
inline

Definition at line 419 of file property.h.

423 : PROPERTY( aName, METHOD<Owner, T, Base>::Wrap( aSetter ),
424 METHOD<Owner, T, Base>::Wrap( aGetter ), aDisplay, aCoordType )
425 {
426 }

◆ PROPERTY() [3/3]

template<typename Owner , typename T , typename Base = Owner>
PROPERTY< Owner, T, Base >::PROPERTY ( const wxString &  aName,
SETTER_BASE< Owner, T > *  s,
GETTER_BASE< Owner, T > *  g,
PROPERTY_DISPLAY  aDisplay,
ORIGIN_TRANSFORMS::COORD_TYPES_T  aCoordType 
)
inlineprotected

Definition at line 449 of file property.h.

451 : PROPERTY_BASE( aName, aDisplay, aCoordType ), m_setter( s ), m_getter( g ),
452 m_ownerHash( TYPE_HASH( Owner ) ), m_baseHash( TYPE_HASH( Base ) ),
454 {
455 }
PROPERTY_BASE(const wxString &aName, PROPERTY_DISPLAY aDisplay=PT_DEFAULT, ORIGIN_TRANSFORMS::COORD_TYPES_T aCoordType=ORIGIN_TRANSFORMS::NOT_A_COORD)
< Used to generate unique IDs. Must come up front so it's initialized before ctor.
Definition: property.h:183
std::unique_ptr< SETTER_BASE< Owner, T > > m_setter
Get method.
Definition: property.h:479
const size_t m_baseHash
Property value type-id.
Definition: property.h:488
typename std::decay< T >::type BASE_TYPE
Definition: property.h:406
const size_t m_typeHash
Definition: property.h:491
std::unique_ptr< GETTER_BASE< Owner, T > > m_getter
Owner class type-id.
Definition: property.h:482
const size_t m_ownerHash
Base class type-id.
Definition: property.h:485
#define TYPE_HASH(x)
Definition: property.h:63

◆ ~PROPERTY()

template<typename Owner , typename T , typename Base = Owner>
virtual PROPERTY< Owner, T, Base >::~PROPERTY ( )
inlineprotectedvirtual

Definition at line 457 of file property.h.

457{}

Member Function Documentation

◆ Available()

bool PROPERTY_BASE::Available ( INSPECTABLE aObject) const
inlineinherited

Return true if aObject offers this PROPERTY.

Definition at line 233 of file property.h.

234 {
235 return m_availFunc( aObject );
236 }
std::function< bool(INSPECTABLE *)> m_availFunc
Eval to determine if prop is available.
Definition: property.h:392

Referenced by BOOST_AUTO_TEST_CASE(), and PROPERTY_MANAGER::IsAvailableFor().

◆ BaseHash()

template<typename Owner , typename T , typename Base = Owner>
size_t PROPERTY< Owner, T, Base >::BaseHash ( ) const
inlineoverridevirtual

Return type-id of the Base class.

Implements PROPERTY_BASE.

Definition at line 433 of file property.h.

434 {
435 return m_baseHash;
436 }

References PROPERTY< Owner, T, Base >::m_baseHash.

◆ Choices()

virtual const wxPGChoices & PROPERTY_BASE::Choices ( ) const
inlinevirtualinherited

Return a limited set of possible values (e.g.

enum). Check with HasChoices() if a particular PROPERTY provides such set.

Reimplemented in PROPERTY_ENUM< Owner, T, Base >.

Definition at line 207 of file property.h.

208 {
209 static wxPGChoices empty;
210 return empty;
211 }
static bool empty(const wxTextEntryBase *aCtrl)

References empty().

Referenced by BOOST_AUTO_TEST_CASE(), PCB_PROPERTIES_PANEL::createPGProperty(), and PGPropertyFactory().

◆ CoordType()

ORIGIN_TRANSFORMS::COORD_TYPES_T PROPERTY_BASE::CoordType ( ) const
inlineinherited

Definition at line 276 of file property.h.

276{ return m_coordType; }
ORIGIN_TRANSFORMS::COORD_TYPES_T m_coordType
The coordinate type controls how distances are mapped to the user coordinate system.
Definition: property.h:378

Referenced by PGPropertyFactory().

◆ Display()

PROPERTY_DISPLAY PROPERTY_BASE::Display ( ) const
inlineinherited

Definition at line 273 of file property.h.

273{ return m_display; }
PROPERTY_DISPLAY m_display
The display style controls how properties are edited in the properties manager GUI.
Definition: property.h:375

Referenced by PGPropertyFactory().

◆ get()

template<typename T >
T PROPERTY_BASE::get ( const void *  aObject) const
inlineprotectedinherited

Definition at line 352 of file property.h.

353 {
354 wxAny a = getter( aObject );
355
356 if ( !( std::is_enum<T>::value && a.CheckType<int>() ) && !a.CheckType<T>() )
357 throw std::invalid_argument( "Invalid requested type" );
358
359 return wxANY_AS( a, T );
360 }
virtual wxAny getter(const void *aObject) const =0

Referenced by INSPECTABLE::Get().

◆ getter()

template<typename Owner , typename T , typename Base = Owner>
virtual wxAny PROPERTY< Owner, T, Base >::getter ( const void *  obj) const
inlineoverrideprotectedvirtual

Set method.

Implements PROPERTY_BASE.

Reimplemented in PROPERTY_ENUM< Owner, T, Base >.

Definition at line 471 of file property.h.

References res.

◆ Group()

wxString PROPERTY_BASE::Group ( ) const
inlineinherited

Definition at line 304 of file property.h.

304{ return m_group; }
wxString m_group
Optional group identifier.
Definition: property.h:390

◆ HasChoices()

virtual bool PROPERTY_BASE::HasChoices ( ) const
inlinevirtualinherited

Return true if this PROPERTY has a limited set of possible values.

See also
PROPERTY_BASE::Choices()

Reimplemented in PROPERTY_ENUM< Owner, T, Base >.

Definition at line 225 of file property.h.

226 {
227 return false;
228 }

Referenced by BOOST_AUTO_TEST_CASE(), PCB_PROPERTIES_PANEL::createPGProperty(), PCB_EXPR_UCODE::CreateVarRef(), PROPERTIES_PANEL::getItemValue(), and PGPropertyFactory().

◆ IsDeprecated()

bool PROPERTY_BASE::IsDeprecated ( ) const
inlineinherited

Definition at line 290 of file property.h.

290{ return m_isDeprecated; }
bool m_isDeprecated
Deprecated properties are hidden from the GUI and rules editor autocomplete.
Definition: property.h:384

◆ IsHiddenFromLibraryEditors()

bool PROPERTY_BASE::IsHiddenFromLibraryEditors ( ) const
inlineinherited

Definition at line 297 of file property.h.

297{ return m_hideFromLibraryEditors; }
bool m_hideFromLibraryEditors
This property should only be shown in the design editor, not the library editor.
Definition: property.h:387

◆ IsInternal()

bool PROPERTY_BASE::IsInternal ( ) const
inlineinherited

Definition at line 283 of file property.h.

283{ return m_isInternal; }
bool m_isInternal
Internal properties are hidden from the GUI but not from the rules editor autocomplete.
Definition: property.h:381

◆ Name()

const wxString & PROPERTY_BASE::Name ( ) const
inlineinherited

Definition at line 201 of file property.h.

201{ return m_name; }
const wxString m_name
Permanent identifier for this property.
Definition: property.h:372

Referenced by PROPERTY_MANAGER::AddProperty(), PCB_PROPERTIES_PANEL::createPGProperty(), PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::IsAvailableFor(), and PGPropertyFactory().

◆ NullValidator()

static VALIDATOR_RESULT PROPERTY_BASE::NullValidator ( const wxAny &&  aValue,
EDA_ITEM aItem 
)
inlinestaticinherited

Definition at line 318 of file property.h.

319 {
320 return std::nullopt;
321 }

◆ OwnerHash()

template<typename Owner , typename T , typename Base = Owner>
size_t PROPERTY< Owner, T, Base >::OwnerHash ( ) const
inlineoverridevirtual

Return type-id of the Owner class.

Implements PROPERTY_BASE.

Definition at line 428 of file property.h.

429 {
430 return m_ownerHash;
431 }

References PROPERTY< Owner, T, Base >::m_ownerHash.

◆ set()

template<typename T >
void PROPERTY_BASE::set ( void *  aObject,
aValue 
)
inlineprotectedinherited

Definition at line 325 of file property.h.

326 {
327 wxAny a = aValue;
328
329 // wxVariant will be type "long" even if the property is supposed to be
330 // unsigned. Let's trust that we're coming from the property grid where
331 // we used a UInt editor.
332 if( std::is_same<T, wxVariant>::value )
333 {
334 wxVariant var = static_cast<wxVariant>( aValue );
335 wxAny pv = getter( aObject );
336
337 if( pv.CheckType<unsigned>() )
338 {
339 a = static_cast<unsigned>( var.GetLong() );
340 }
341 else if( pv.CheckType<EDA_ANGLE>() )
342 {
343 EDA_ANGLE_VARIANT_DATA* ad = static_cast<EDA_ANGLE_VARIANT_DATA*>( var.GetData() );
344 a = ad->Angle();
345 }
346 }
347
348 setter( aObject, a );
349 }
const EDA_ANGLE & Angle()
virtual void setter(void *aObject, wxAny &aValue)=0

References EDA_ANGLE_VARIANT_DATA::Angle().

Referenced by INSPECTABLE::Set().

◆ SetAvailableFunc()

PROPERTY_BASE & PROPERTY_BASE::SetAvailableFunc ( std::function< bool(INSPECTABLE *)>  aFunc)
inlineinherited

Set a callback function to determine whether an object provides this property.

Definition at line 241 of file property.h.

242 {
243 m_availFunc = aFunc;
244 return *this;
245 }

Referenced by EDA_SHAPE_DESC::EDA_SHAPE_DESC().

◆ SetChoices()

virtual void PROPERTY_BASE::SetChoices ( const wxPGChoices &  aChoices)
inlinevirtualinherited

Set the possible values for for the property.

Reimplemented in PROPERTY_ENUM< Owner, T, Base >.

Definition at line 216 of file property.h.

217 {
218 wxFAIL; // only possible for PROPERTY_ENUM
219 }

Referenced by PCB_PROPERTIES_PANEL::updateLists().

◆ SetCoordType()

PROPERTY_BASE & PROPERTY_BASE::SetCoordType ( ORIGIN_TRANSFORMS::COORD_TYPES_T  aType)
inlineinherited

Definition at line 277 of file property.h.

278 {
279 m_coordType = aType;
280 return *this;
281 }

◆ SetDisplay()

PROPERTY_BASE & PROPERTY_BASE::SetDisplay ( PROPERTY_DISPLAY  aDisplay)
inlineinherited

Definition at line 274 of file property.h.

274{ m_display = aDisplay; return *this; }

◆ SetGroup()

PROPERTY_BASE & PROPERTY_BASE::SetGroup ( const wxString &  aGroup)
inlineinherited

Definition at line 305 of file property.h.

305{ m_group = aGroup; return *this; }

Referenced by PROPERTY_MANAGER::AddProperty().

◆ SetIsDeprecated()

PROPERTY_BASE & PROPERTY_BASE::SetIsDeprecated ( bool  aIsDeprecated = true)
inlineinherited

Definition at line 291 of file property.h.

292 {
293 m_isDeprecated = aIsDeprecated;
294 return *this;
295 }

Referenced by BOARD_CONNECTED_ITEM_DESC::BOARD_CONNECTED_ITEM_DESC().

◆ SetIsHiddenFromLibraryEditors()

PROPERTY_BASE & PROPERTY_BASE::SetIsHiddenFromLibraryEditors ( bool  aIsHidden = true)
inlineinherited

◆ SetIsInternal()

PROPERTY_BASE & PROPERTY_BASE::SetIsInternal ( bool  aIsInternal = true)
inlineinherited

Definition at line 284 of file property.h.

285 {
286 m_isInternal = aIsInternal;
287 return *this;
288 }

Referenced by BOARD_CONNECTED_ITEM_DESC::BOARD_CONNECTED_ITEM_DESC(), and EDA_ITEM_DESC::EDA_ITEM_DESC().

◆ setter()

template<typename Owner , typename T , typename Base = Owner>
virtual void PROPERTY< Owner, T, Base >::setter ( void *  obj,
wxAny &  v 
)
inlineoverrideprotectedvirtual

Implements PROPERTY_BASE.

Reimplemented in PROPERTY_ENUM< Owner, T, Base >.

Definition at line 459 of file property.h.

460 {
461 wxCHECK( m_setter, /*void*/ );
462
463 if( !v.CheckType<T>() )
464 throw std::invalid_argument( "Invalid type requested" );
465
466 Owner* o = reinterpret_cast<Owner*>( obj );
467 BASE_TYPE value = wxANY_AS(v, BASE_TYPE);
468 (*m_setter)( o, value );
469 }

References PROPERTY< Owner, T, Base >::m_setter.

◆ SetValidator()

PROPERTY_BASE & PROPERTY_BASE::SetValidator ( PROPERTY_VALIDATOR_FN &&  aValidator)
inlineinherited

Definition at line 307 of file property.h.

308 {
309 m_validator = aValidator;
310 return *this;
311 }
PROPERTY_VALIDATOR_FN m_validator
Definition: property.h:396

Referenced by EDA_TEXT_DESC::EDA_TEXT_DESC(), PAD_DESC::PAD_DESC(), and ZONE_DESC::ZONE_DESC().

◆ SetWriteableFunc()

PROPERTY_BASE & PROPERTY_BASE::SetWriteableFunc ( std::function< bool(INSPECTABLE *)>  aFunc)
inlineinherited

Definition at line 252 of file property.h.

253 {
254 m_writeableFunc = aFunc;
255 return *this;
256 }
std::function< bool(INSPECTABLE *)> m_writeableFunc
Eval to determine if prop is read-only.
Definition: property.h:394

Referenced by PAD_DESC::PAD_DESC(), and ZONE_DESC::ZONE_DESC().

◆ TypeHash()

template<typename Owner , typename T , typename Base = Owner>
size_t PROPERTY< Owner, T, Base >::TypeHash ( ) const
inlineoverridevirtual

Return type-id of the property type.

Implements PROPERTY_BASE.

Definition at line 438 of file property.h.

439 {
440 return m_typeHash;
441 }

References PROPERTY< Owner, T, Base >::m_typeHash.

◆ Validate()

VALIDATOR_RESULT PROPERTY_BASE::Validate ( const wxAny &&  aValue,
EDA_ITEM aItem 
)
inlineinherited

Definition at line 313 of file property.h.

314 {
315 return m_validator( std::move( aValue ), aItem );
316 }

◆ Writeable()

template<typename Owner , typename T , typename Base = Owner>
bool PROPERTY< Owner, T, Base >::Writeable ( INSPECTABLE aObject) const
inlineoverridevirtual

Reimplemented from PROPERTY_BASE.

Definition at line 443 of file property.h.

444 {
445 return m_setter && PROPERTY_BASE::Writeable( aObject );
446 }
virtual bool Writeable(INSPECTABLE *aObject) const
Definition: property.h:247

References PROPERTY< Owner, T, Base >::m_setter, and PROPERTY_BASE::Writeable().

Member Data Documentation

◆ m_availFunc

std::function<bool(INSPECTABLE*)> PROPERTY_BASE::m_availFunc
privateinherited

Eval to determine if prop is available.

Definition at line 392 of file property.h.

◆ m_baseHash

template<typename Owner , typename T , typename Base = Owner>
const size_t PROPERTY< Owner, T, Base >::m_baseHash
protected

Property value type-id.

Definition at line 488 of file property.h.

Referenced by PROPERTY< Owner, T, Base >::BaseHash().

◆ m_coordType

ORIGIN_TRANSFORMS::COORD_TYPES_T PROPERTY_BASE::m_coordType
privateinherited

The coordinate type controls how distances are mapped to the user coordinate system.

Definition at line 378 of file property.h.

◆ m_display

PROPERTY_DISPLAY PROPERTY_BASE::m_display
privateinherited

The display style controls how properties are edited in the properties manager GUI.

Definition at line 375 of file property.h.

◆ m_getter

template<typename Owner , typename T , typename Base = Owner>
std::unique_ptr<GETTER_BASE<Owner, T> > PROPERTY< Owner, T, Base >::m_getter
protected

Owner class type-id.

Definition at line 482 of file property.h.

◆ m_group

wxString PROPERTY_BASE::m_group
privateinherited

Optional group identifier.

Definition at line 390 of file property.h.

◆ m_hideFromLibraryEditors

bool PROPERTY_BASE::m_hideFromLibraryEditors
privateinherited

This property should only be shown in the design editor, not the library editor.

Definition at line 387 of file property.h.

◆ m_isDeprecated

bool PROPERTY_BASE::m_isDeprecated
privateinherited

Deprecated properties are hidden from the GUI and rules editor autocomplete.

Definition at line 384 of file property.h.

◆ m_isInternal

bool PROPERTY_BASE::m_isInternal
privateinherited

Internal properties are hidden from the GUI but not from the rules editor autocomplete.

Definition at line 381 of file property.h.

◆ m_name

const wxString PROPERTY_BASE::m_name
privateinherited

Permanent identifier for this property.

Property names are an API contract; changing them after release will impact the Custom DRC Rules system as well as the automatic API binding system. Never rename properties; instead deprecate them and hide them from the GUI.

Definition at line 372 of file property.h.

◆ m_ownerHash

template<typename Owner , typename T , typename Base = Owner>
const size_t PROPERTY< Owner, T, Base >::m_ownerHash
protected

Base class type-id.

Definition at line 485 of file property.h.

Referenced by PROPERTY< Owner, T, Base >::OwnerHash().

◆ m_setter

template<typename Owner , typename T , typename Base = Owner>
std::unique_ptr<SETTER_BASE<Owner, T> > PROPERTY< Owner, T, Base >::m_setter
protected

Get method.

Definition at line 479 of file property.h.

Referenced by PROPERTY< Owner, T, Base >::setter(), and PROPERTY< Owner, T, Base >::Writeable().

◆ m_typeHash

template<typename Owner , typename T , typename Base = Owner>
const size_t PROPERTY< Owner, T, Base >::m_typeHash
protected

Definition at line 491 of file property.h.

Referenced by PROPERTY< Owner, T, Base >::TypeHash().

◆ m_validator

PROPERTY_VALIDATOR_FN PROPERTY_BASE::m_validator
privateinherited

Definition at line 396 of file property.h.

◆ m_writeableFunc

std::function<bool(INSPECTABLE*)> PROPERTY_BASE::m_writeableFunc
privateinherited

Eval to determine if prop is read-only.

Definition at line 394 of file property.h.


The documentation for this class was generated from the following file: