Stores information about a schema type. More...
#include <type.hpp>
Public Member Functions | |
| wml_type_composite (const std::string &name) | |
| void | add_type (std::shared_ptr< wml_type > type) |
| const std::vector< std::shared_ptr< wml_type > > & | subtypes () const |
Public Member Functions inherited from schema_validation::wml_type | |
| wml_type ()=delete | |
| wml_type (const std::string &name) | |
| virtual bool | matches (const config_attribute_value &value, const map &type_map) const =0 |
| virtual | ~wml_type () |
Protected Attributes | |
| std::vector< std::shared_ptr< wml_type > > | subtypes_ |
Protected Attributes inherited from schema_validation::wml_type | |
| std::string | name_ |
Additional Inherited Members | |
Public Types inherited from schema_validation::wml_type | |
| using | ptr = std::shared_ptr< wml_type > |
| using | map = std::map< std::string, ptr > |
Static Public Member Functions inherited from schema_validation::wml_type | |
| static std::shared_ptr< wml_type > | from_config (const config &cfg) |
Stores information about a schema type.
This is an abstract base class for composite types.
|
inlineexplicit |
|
inline |
|
inline |
|
protected |
Definition at line 81 of file type.hpp.
Referenced by add_type(), schema_validation::wml_type_union::matches(), schema_validation::wml_type_intersection::matches(), and subtypes().