Itoyori  v0.0.1
ityr::common::option< Derived, T > Class Template Reference

#include <options.hpp>

Inheritance diagram for ityr::common::option< Derived, T >:
Collaboration diagram for ityr::common::option< Derived, T >:

Public Types

using value_type = T
 
- Public Types inherited from ityr::common::singleton< Derived >
using instance_type = Derived
 

Public Member Functions

 option (value_type val)
 
void print () const override
 
- Public Member Functions inherited from ityr::common::option_base
virtual ~option_base ()=default
 

Static Public Member Functions

static value_type value ()
 
static void set (value_type val)
 
static void unset ()
 
- Static Public Member Functions inherited from ityr::common::singleton< Derived >
static auto & get ()
 
static bool initialized ()
 
static void init (Args &&... args)
 
static void fini ()
 

Protected Attributes

value_type val_
 

Member Typedef Documentation

◆ value_type

template<typename Derived , typename T >
using ityr::common::option< Derived, T >::value_type = T

Constructor & Destructor Documentation

◆ option()

template<typename Derived , typename T >
ityr::common::option< Derived, T >::option ( value_type  val)
inline

Member Function Documentation

◆ print()

template<typename Derived , typename T >
void ityr::common::option< Derived, T >::print ( ) const
inlineoverridevirtual

◆ set()

template<typename Derived , typename T >
static void ityr::common::option< Derived, T >::set ( value_type  val)
inlinestatic

◆ unset()

template<typename Derived , typename T >
static void ityr::common::option< Derived, T >::unset ( )
inlinestatic

◆ value()

template<typename Derived , typename T >
static value_type ityr::common::option< Derived, T >::value ( )
inlinestatic

Member Data Documentation

◆ val_

template<typename Derived , typename T >
value_type ityr::common::option< Derived, T >::val_
protected

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