KiCad PCB EDA Suite
Loading...
Searching...
No Matches
property_mgr.h File Reference
#include <core/wx_stl_compat.h>
#include <wx/string.h>
#include <functional>
#include <list>
#include <map>
#include <unordered_map>
#include <set>
#include <vector>
#include <memory>
#include <eda_units.h>

Go to the source code of this file.

Classes

class  PROPERTY_COMMIT_HANDLER
 
class  PROPERTY_MANAGER
 Provide class metadata.Helper macro to map type hashes to names. More...
 
struct  PROPERTY_MANAGER::CLASS_INFO
 
struct  PROPERTY_MANAGER::CLASS_DESC
 Returns metadata for a specific type. More...
 

Macros

#define REGISTER_TYPE(x)   PROPERTY_MANAGER::Instance().RegisterType(TYPE_HASH(x), TYPE_NAME(x))
 

Typedefs

using TYPE_ID = size_t
 Unique type identifier.
 
using PROPERTY_LIST = std::vector< PROPERTY_BASE * >
 
using PROPERTY_SET = std::set< std::pair< size_t, wxString > >
 
template<typename ValueType >
using PROPERTY_MAP = std::map< std::pair< size_t, wxString >, ValueType >
 
using PROPERTY_FUNCTOR_MAP = PROPERTY_MAP< std::function< bool(INSPECTABLE *)> >
 
using PROPERTY_DISPLAY_ORDER = std::map< PROPERTY_BASE *, int >
 
using PROPERTY_LISTENER = std::function< void(INSPECTABLE *, PROPERTY_BASE *, COMMIT *)>
 

Macro Definition Documentation

◆ REGISTER_TYPE

#define REGISTER_TYPE (   x)    PROPERTY_MANAGER::Instance().RegisterType(TYPE_HASH(x), TYPE_NAME(x))

Definition at line 371 of file property_mgr.h.

Typedef Documentation

◆ PROPERTY_DISPLAY_ORDER

using PROPERTY_DISPLAY_ORDER = std::map<PROPERTY_BASE*, int>

Definition at line 58 of file property_mgr.h.

◆ PROPERTY_FUNCTOR_MAP

using PROPERTY_FUNCTOR_MAP = PROPERTY_MAP<std::function<bool( INSPECTABLE* )> >

Definition at line 56 of file property_mgr.h.

◆ PROPERTY_LIST

using PROPERTY_LIST = std::vector<PROPERTY_BASE*>

Definition at line 49 of file property_mgr.h.

◆ PROPERTY_LISTENER

using PROPERTY_LISTENER = std::function<void( INSPECTABLE*, PROPERTY_BASE*, COMMIT* )>

Definition at line 60 of file property_mgr.h.

◆ PROPERTY_MAP

template<typename ValueType >
using PROPERTY_MAP = std::map<std::pair<size_t, wxString>, ValueType>

Definition at line 54 of file property_mgr.h.

◆ PROPERTY_SET

using PROPERTY_SET = std::set<std::pair<size_t, wxString> >

Definition at line 51 of file property_mgr.h.

◆ TYPE_ID

using TYPE_ID = size_t

Unique type identifier.

Definition at line 47 of file property_mgr.h.