KiCad PCB EDA Suite
|
Returns metadata for a specific type. More...
Public Member Functions | |
CLASS_DESC (TYPE_ID aId) | |
Unique type identifier (obtained using TYPE_HASH) More... | |
void | rebuild () |
Traverses the class inheritance hierarchy bottom-to-top, gathering all properties available to a type. More... | |
void | collectPropsRecur (PROPERTY_LIST &aResult, PROPERTY_SET &aReplaced) const |
Public Attributes | |
const TYPE_ID | m_id |
Types after which this type inherits. More... | |
std::vector< std::reference_wrapper< CLASS_DESC > > | m_bases |
Properties unique to this type (i.e. not inherited) More... | |
std::map< wxString, std::unique_ptr< PROPERTY_BASE > > | m_ownProperties |
Type converters available for this type. More... | |
std::map< TYPE_ID, std::unique_ptr< TYPE_CAST_BASE > > | m_typeCasts |
All properties (both unique to the type and inherited) More... | |
std::vector< PROPERTY_BASE * > | m_allProperties |
Replaced properties (TYPE_ID / name) More... | |
PROPERTY_SET | m_replaced |
Recreates the list of properties. More... | |
Returns metadata for a specific type.
Definition at line 199 of file property_mgr.h.
|
inline |
Unique type identifier (obtained using TYPE_HASH)
Definition at line 201 of file property_mgr.h.
void PROPERTY_MANAGER::CLASS_DESC::collectPropsRecur | ( | PROPERTY_LIST & | aResult, |
PROPERTY_SET & | aReplaced | ||
) | const |
Definition at line 194 of file property_mgr.cpp.
References PROPERTY_BASE::get().
Referenced by rebuild().
void PROPERTY_MANAGER::CLASS_DESC::rebuild | ( | ) |
Traverses the class inheritance hierarchy bottom-to-top, gathering all properties available to a type.
Definition at line 184 of file property_mgr.cpp.
References collectPropsRecur(), m_allProperties, and m_replaced.
std::vector<PROPERTY_BASE*> PROPERTY_MANAGER::CLASS_DESC::m_allProperties |
Replaced properties (TYPE_ID / name)
Definition at line 219 of file property_mgr.h.
Referenced by PROPERTY_MANAGER::GetProperty(), and rebuild().
std::vector<std::reference_wrapper<CLASS_DESC> > PROPERTY_MANAGER::CLASS_DESC::m_bases |
Properties unique to this type (i.e. not inherited)
Definition at line 210 of file property_mgr.h.
Referenced by PROPERTY_MANAGER::InheritsAfter().
const TYPE_ID PROPERTY_MANAGER::CLASS_DESC::m_id |
Types after which this type inherits.
Definition at line 207 of file property_mgr.h.
std::map<wxString, std::unique_ptr<PROPERTY_BASE> > PROPERTY_MANAGER::CLASS_DESC::m_ownProperties |
Type converters available for this type.
Definition at line 213 of file property_mgr.h.
Referenced by PROPERTY_MANAGER::AddProperty().
PROPERTY_SET PROPERTY_MANAGER::CLASS_DESC::m_replaced |
Recreates the list of properties.
Definition at line 222 of file property_mgr.h.
Referenced by rebuild(), and PROPERTY_MANAGER::ReplaceProperty().
std::map<TYPE_ID, std::unique_ptr<TYPE_CAST_BASE> > PROPERTY_MANAGER::CLASS_DESC::m_typeCasts |
All properties (both unique to the type and inherited)
Definition at line 216 of file property_mgr.h.
Referenced by PROPERTY_MANAGER::AddTypeCast(), and PROPERTY_MANAGER::InheritsAfter().