The Battle for Wesnoth  1.19.0-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:

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 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_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 78 of file type.hpp.

Constructor & Destructor Documentation

◆ wml_type_composite()

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

Definition at line 82 of file type.hpp.

Member Function Documentation

◆ add_type()

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

Definition at line 83 of file type.hpp.

References subtypes_.

Member Data Documentation

◆ subtypes_

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

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