Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
ConstValue Class Reference
+ Inheritance diagram for ConstValue:
+ Collaboration diagram for ConstValue:

Public Member Functions

 ConstValue (size_t nplurals, NumT val)
 
NumT operator() (const NumT n) const override
 
- Public Member Functions inherited from GettextPluralForm
size_t size () const
 
virtual operator bool () const
 
virtual ~GettextPluralForm ()
 

Private Attributes

NumT value
 

Additional Inherited Members

- Public Types inherited from GettextPluralForm
using NumT = unsigned long
 
using Ptr = std::shared_ptr<GettextPluralForm>
 
- Static Public Member Functions inherited from GettextPluralForm
static GettextPluralForm::Ptr parse (const size_t nplurals, const std::wstring_view &str)
 
static GettextPluralForm::Ptr parseHeaderLine (const std::wstring_view &str)
 
- Protected Member Functions inherited from GettextPluralForm
 GettextPluralForm (size_t nplurals)
 

Constructor & Destructor Documentation

◆ ConstValue()

ConstValue::ConstValue ( size_t nplurals,
NumT val )
inline

Member Function Documentation

◆ operator()()

NumT ConstValue::operator() ( const NumT n) const
inlineoverridevirtual

Implements GettextPluralForm.

References value.

Member Data Documentation

◆ value

NumT ConstValue::value
private

Referenced by operator()().


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