The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Public Attributes | List of all members
configr_of Struct Reference

#include <configr_assign.hpp>

Public Member Functions

template<typename AT >
 configr_of (const std::string &attrname, AT value)
 
 configr_of (const config &cfg)
 
configr_ofoperator() (const config &cfg)
 
configr_ofoperator() (const std::string &tagname, const configr_of &child)
 

Public Attributes

std::vector< std::pair< const std::string *, const configr_of * > > subtags_
 
const configdata_
 

Detailed Description

Definition at line 22 of file configr_assign.hpp.

Constructor & Destructor Documentation

◆ configr_of() [1/2]

template<typename AT >
configr_of::configr_of ( const std::string &  attrname,
AT  value 
)
inline

Definition at line 25 of file configr_assign.hpp.

References operator()().

◆ configr_of() [2/2]

configr_of::configr_of ( const config cfg)
inline

Definition at line 30 of file configr_assign.hpp.

References operator()().

Member Function Documentation

◆ operator()() [1/2]

configr_of& configr_of::operator() ( const config cfg)
inline

Definition at line 35 of file configr_assign.hpp.

References data_.

Referenced by configr_of().

◆ operator()() [2/2]

configr_of& configr_of::operator() ( const std::string &  tagname,
const configr_of child 
)
inline

Definition at line 41 of file configr_assign.hpp.

References subtags_.

Member Data Documentation

◆ data_

const config* configr_of::data_

Definition at line 47 of file configr_assign.hpp.

Referenced by operator()(), and write_internal().

◆ subtags_

std::vector<std::pair<const std::string*, const configr_of*> > configr_of::subtags_

Definition at line 46 of file configr_assign.hpp.

Referenced by operator()(), and write_internal().


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