Rerun C++ SDK
Loading...
Searching...
No Matches
cxxopts::values::abstract_value< T > Class Template Reference
Inheritance diagram for cxxopts::values::abstract_value< T >:
cxxopts::Value cxxopts::values::standard_value< T >

Public Member Functions

 abstract_value (T *t)
 
abstract_valueoperator= (const abstract_value &)=default
 
 abstract_value (const abstract_value &rhs)
 
void parse (const std::string &text) const override
 
bool is_container () const override
 
void parse () const override
 
bool has_default () const override
 
bool has_implicit () const override
 
std::shared_ptr< Valuedefault_value (const std::string &value) override
 
std::shared_ptr< Valueimplicit_value (const std::string &value) override
 
std::shared_ptr< Valueno_implicit_value () override
 
std::string get_default_value () const override
 
std::string get_implicit_value () const override
 
bool is_boolean () const override
 
const T & get () const
 
- Public Member Functions inherited from cxxopts::Value
virtual std::shared_ptr< Valueclone () const =0
 
virtual void parse (const std::string &text) const =0
 
virtual void parse () const =0
 
virtual bool has_default () const =0
 
virtual bool is_container () const =0
 
virtual bool has_implicit () const =0
 
virtual std::string get_default_value () const =0
 
virtual std::string get_implicit_value () const =0
 
virtual std::shared_ptr< Valuedefault_value (const std::string &value)=0
 
virtual std::shared_ptr< Valueimplicit_value (const std::string &value)=0
 
virtual std::shared_ptr< Valueno_implicit_value ()=0
 
virtual bool is_boolean () const =0
 

Protected Attributes

std::shared_ptr< T > m_result {}
 
T * m_store {}
 
bool m_default = false
 
bool m_implicit = false
 
std::string m_default_value {}
 
std::string m_implicit_value {}
 

Member Function Documentation

◆ parse() [1/2]

template<typename T >
void cxxopts::values::abstract_value< T >::parse ( const std::string &  text) const
inlineoverridevirtual

Implements cxxopts::Value.

◆ is_container()

template<typename T >
bool cxxopts::values::abstract_value< T >::is_container ( ) const
inlineoverridevirtual

Implements cxxopts::Value.

◆ parse() [2/2]

template<typename T >
void cxxopts::values::abstract_value< T >::parse ( ) const
inlineoverridevirtual

Implements cxxopts::Value.

◆ has_default()

template<typename T >
bool cxxopts::values::abstract_value< T >::has_default ( ) const
inlineoverridevirtual

Implements cxxopts::Value.

◆ has_implicit()

template<typename T >
bool cxxopts::values::abstract_value< T >::has_implicit ( ) const
inlineoverridevirtual

Implements cxxopts::Value.

◆ default_value()

template<typename T >
std::shared_ptr< Value > cxxopts::values::abstract_value< T >::default_value ( const std::string &  value)
inlineoverridevirtual

Implements cxxopts::Value.

◆ implicit_value()

template<typename T >
std::shared_ptr< Value > cxxopts::values::abstract_value< T >::implicit_value ( const std::string &  value)
inlineoverridevirtual

Implements cxxopts::Value.

◆ no_implicit_value()

template<typename T >
std::shared_ptr< Value > cxxopts::values::abstract_value< T >::no_implicit_value ( )
inlineoverridevirtual

Implements cxxopts::Value.

◆ get_default_value()

template<typename T >
std::string cxxopts::values::abstract_value< T >::get_default_value ( ) const
inlineoverridevirtual

Implements cxxopts::Value.

◆ get_implicit_value()

template<typename T >
std::string cxxopts::values::abstract_value< T >::get_implicit_value ( ) const
inlineoverridevirtual

Implements cxxopts::Value.

◆ is_boolean()

template<typename T >
bool cxxopts::values::abstract_value< T >::is_boolean ( ) const
inlineoverridevirtual

Implements cxxopts::Value.


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