abstract_value< T > Class Template Reference

#include <RobotAPI/applications/AronCodeGenerator/cxxopts.hpp>

+ Inheritance diagram for abstract_value< T >:

Public Member Functions

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

Protected Attributes

bool m_default = false
 
std::string m_default_value
 
bool m_implicit = false
 
std::string m_implicit_value
 
std::shared_ptr< Tm_result
 
Tm_store
 

Detailed Description

template<typename T>
class cxxopts::values::abstract_value< T >

Definition at line 751 of file cxxopts.hpp.

Constructor & Destructor Documentation

◆ abstract_value() [1/3]

abstract_value ( )
inline

Definition at line 756 of file cxxopts.hpp.

◆ abstract_value() [2/3]

abstract_value ( T t)
inline

Definition at line 762 of file cxxopts.hpp.

◆ ~abstract_value()

virtual ~abstract_value ( )
virtualdefault

◆ abstract_value() [3/3]

abstract_value ( const abstract_value< T > &  rhs)
inline

Definition at line 769 of file cxxopts.hpp.

Member Function Documentation

◆ default_value()

std::shared_ptr<Value> default_value ( const std::string &  value)
inlinevirtual

Implements Value.

Definition at line 818 of file cxxopts.hpp.

◆ get()

const T& get ( ) const
inline

Definition at line 852 of file cxxopts.hpp.

+ Here is the caller graph for this function:

◆ get_default_value()

std::string get_default_value ( ) const
inlinevirtual

Implements Value.

Definition at line 834 of file cxxopts.hpp.

◆ get_implicit_value()

std::string get_implicit_value ( ) const
inlinevirtual

Implements Value.

Definition at line 840 of file cxxopts.hpp.

◆ has_default()

bool has_default ( ) const
inlinevirtual

Implements Value.

Definition at line 806 of file cxxopts.hpp.

◆ has_implicit()

bool has_implicit ( ) const
inlinevirtual

Implements Value.

Definition at line 812 of file cxxopts.hpp.

◆ implicit_value()

std::shared_ptr<Value> implicit_value ( const std::string &  value)
inlinevirtual

Implements Value.

Definition at line 826 of file cxxopts.hpp.

◆ is_boolean()

bool is_boolean ( ) const
inlinevirtual

Implements Value.

Definition at line 846 of file cxxopts.hpp.

◆ is_container()

bool is_container ( ) const
inlinevirtual

Implements Value.

Definition at line 794 of file cxxopts.hpp.

◆ parse() [1/2]

void parse ( ) const
inlinevirtual

Implements Value.

Definition at line 800 of file cxxopts.hpp.

◆ parse() [2/2]

void parse ( const std::string &  text) const
inlinevirtual

Implements Value.

Definition at line 788 of file cxxopts.hpp.

Member Data Documentation

◆ m_default

bool m_default = false
protected

Definition at line 868 of file cxxopts.hpp.

◆ m_default_value

std::string m_default_value
protected

Definition at line 871 of file cxxopts.hpp.

◆ m_implicit

bool m_implicit = false
protected

Definition at line 869 of file cxxopts.hpp.

◆ m_implicit_value

std::string m_implicit_value
protected

Definition at line 872 of file cxxopts.hpp.

◆ m_result

std::shared_ptr<T> m_result
protected

Definition at line 865 of file cxxopts.hpp.

◆ m_store

T* m_store
protected

Definition at line 866 of file cxxopts.hpp.


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