PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pism::options::Option< T > Class Template Reference

Template base class used by PISM's option-processing classes. More...

#include <options.hh>

+ Inheritance diagram for pism::options::Option< T >:

Public Member Functions

 Option ()
 
bool is_set () const
 
value () const
 
 operator T () const
 
const T * operator-> () const
 
T * operator-> ()
 
bool operator== (const T &other) const
 

Protected Member Functions

void set (T new_value, bool new_flag)
 

Protected Attributes

m_value
 
bool m_is_set
 

Detailed Description

template<typename T>
class pism::options::Option< T >

Template base class used by PISM's option-processing classes.

(Ensures API consistency and helps code reuse.)

Definition at line 30 of file options.hh.


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