The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Private Attributes | List of all members
spirit_po::default_plural_forms::function_object Class Reference

#include <default_plural_forms_compiler.hpp>

Public Member Functions

 function_object (const expr &_e)
 
 function_object (const std::string &s)
 
 function_object ()
 
uint operator() (uint n) const
 
 operator bool () const
 
std::string error () const
 

Private Attributes

stack_machine machine_
 
boost::optional< std::string > parse_error_
 

Detailed Description

Definition at line 81 of file default_plural_forms_compiler.hpp.

Constructor & Destructor Documentation

◆ function_object() [1/3]

spirit_po::default_plural_forms::function_object::function_object ( const expr _e)
inlineexplicit

Definition at line 86 of file default_plural_forms_compiler.hpp.

◆ function_object() [2/3]

spirit_po::default_plural_forms::function_object::function_object ( const std::string &  s)
inlineexplicit

Definition at line 87 of file default_plural_forms_compiler.hpp.

◆ function_object() [3/3]

spirit_po::default_plural_forms::function_object::function_object ( )
inline

Definition at line 88 of file default_plural_forms_compiler.hpp.

Member Function Documentation

◆ error()

std::string spirit_po::default_plural_forms::function_object::error ( ) const
inline

Definition at line 95 of file default_plural_forms_compiler.hpp.

References parse_error_.

◆ operator bool()

spirit_po::default_plural_forms::function_object::operator bool ( ) const
inlineexplicit

Definition at line 94 of file default_plural_forms_compiler.hpp.

References parse_error_.

◆ operator()()

uint spirit_po::default_plural_forms::function_object::operator() ( uint  n) const
inline

Definition at line 90 of file default_plural_forms_compiler.hpp.

References machine_, and n.

Member Data Documentation

◆ machine_

stack_machine spirit_po::default_plural_forms::function_object::machine_
mutableprivate

Definition at line 82 of file default_plural_forms_compiler.hpp.

Referenced by operator()().

◆ parse_error_

boost::optional<std::string> spirit_po::default_plural_forms::function_object::parse_error_
private

Definition at line 83 of file default_plural_forms_compiler.hpp.

Referenced by error(), and operator bool().


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