The Battle for Wesnoth  1.15.2+dev
Public Member Functions | Protected Attributes | List of all members
schema_validation::wml_type_composite Class Reference

Stores information about a schema type. More...

#include <type.hpp>

Inheritance diagram for schema_validation::wml_type_composite:
Inheritance graph

Public Member Functions

 wml_type_composite (const std::string &name)
 
void add_type (std::shared_ptr< wml_type > type)
 
- Public Member Functions inherited from schema_validation::wml_type
 wml_type ()=delete
 
 wml_type (const std::string &name)
 
virtual bool matches (const std::string &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_typefrom_config (const config &cfg)
 

Detailed Description

Stores information about a schema type.

This is an abstract base class for composite types.

Definition at line 74 of file type.hpp.

Constructor & Destructor Documentation

◆ wml_type_composite()

schema_validation::wml_type_composite::wml_type_composite ( const std::string &  name)
inlineexplicit

Definition at line 78 of file type.hpp.

Member Function Documentation

◆ add_type()

void schema_validation::wml_type_composite::add_type ( std::shared_ptr< wml_type type)
inline

Definition at line 79 of file type.hpp.

Referenced by schema_validation::wml_type::from_config().

Member Data Documentation

◆ subtypes_

std::vector<std::shared_ptr<wml_type> > schema_validation::wml_type_composite::subtypes_
protected

Definition at line 76 of file type.hpp.


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