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

Public Member Functions

 TernaryOperation (const Ptr &cond, const Ptr &val, const Ptr &alt)
 
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

Ptr cond
 
Ptr val
 
Ptr alt
 

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

◆ TernaryOperation()

TernaryOperation::TernaryOperation ( const Ptr & cond,
const Ptr & val,
const Ptr & alt )
inline

Member Function Documentation

◆ operator()()

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

Implements GettextPluralForm.

References cond, and val.

Member Data Documentation

◆ alt

Ptr TernaryOperation::alt
private

◆ cond

Ptr TernaryOperation::cond
private

Referenced by operator()().

◆ val

Ptr TernaryOperation::val
private

Referenced by operator()().


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