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)
 
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_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 79 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 83 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 84 of file type.hpp.

References subtypes_.

◆ subtypes()

const std::vector<std::shared_ptr<wml_type> >& schema_validation::wml_type_composite::subtypes ( ) const
inline

Definition at line 88 of file type.hpp.

References subtypes_.

Member Data Documentation

◆ subtypes_

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

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