Template Struct TypeSelector
Defined in File type_selector.h
Struct Documentation
-
template<typename DerivedTypeSelectorT>
struct TypeSelector -
Public Functions
-
inline explicit TypeSelector(const TypeName &type_name)
-
inline TypeSelector(TypeId type_id)
-
inline explicit operator TypeName() const
-
inline explicit operator TypeId() const
-
inline TypeName toStr() const
-
inline TypeId toTypeId() const
Public Static Functions
-
static TypeId strToTypeId(const std::string &name)
-
static inline bool isValidTypeId(TypeId type_id)
-
static std::optional<DerivedTypeSelectorT> from(const param::Value ¶ms)
-
static std::optional<DerivedTypeSelectorT> from(const param::Value ¶ms, const std::string &subconfig_name)
Public Static Attributes
-
static constexpr TypeId kInvalidTypeId = -1
Friends
-
inline friend bool operator==(const DerivedTypeSelectorT &lhs, const DerivedTypeSelectorT &rhs)
-
inline friend bool operator!=(const DerivedTypeSelectorT &lhs, const DerivedTypeSelectorT &rhs)
-
inline explicit TypeSelector(const TypeName &type_name)