Euphoria
eu::kdl::Value Struct Reference
Inheritance diagram for eu::kdl::Value:
eu::kdl::HasTypeAnnotation

Public Member Functions

 Value ()=default
 Value (bool b)
 Value (std::string_view s)
 Value (std::string s)
 Value (char const *s)
 Value (Number n)
 Value (into_number_concept auto n)
 Value (std::string_view ta, bool b)
 Value (std::string_view ta, std::string_view s)
 Value (std::string_view ta, std::string s)
 Value (std::string_view ta, Number n)
 Value (std::string_view type_annotation, into_number_concept auto n)
 Value (kdl_value const &val)
 Value (Value const &)=default
 Value (Value &&)=default
Value & operator= (Value const &)=default
Value & operator= (Value &&)=default
Value & operator= (bool b)
Value & operator= (std::string_view s)
Value & operator= (std::string s)
Value & operator= (Number const &n)
Value & operator= (Number &&n)
Value & operator= (into_number_concept auto n)
bool operator== (const Value &) const =default
bool operator!= (const Value &) const =default
void set_to_null ()
Type type () const noexcept
const Number & as_number () const
const std::string & as_string () const
bool as_bool () const
bool is_null () const
 operator kdl_value () const
Public Member Functions inherited from eu::kdl::HasTypeAnnotation
 HasTypeAnnotation ()=default
 HasTypeAnnotation (std::string_view t)
void remove_type_annotation ()
bool operator== (const HasTypeAnnotation &) const =default
bool operator!= (const HasTypeAnnotation &) const =default

Public Attributes

std::variant< std::monostate, bool, Number, std::string > m_value
Public Attributes inherited from eu::kdl::HasTypeAnnotation
std::optional< std::string > type_annotation

Detailed Description

Definition at line 114 of file kdl.h.

Constructor & Destructor Documentation

◆ Value() [1/15]

eu::kdl::Value::Value ( )
default

◆ Value() [2/15]

eu::kdl::Value::Value ( bool b)

◆ Value() [3/15]

eu::kdl::Value::Value ( std::string_view s)

◆ Value() [4/15]

eu::kdl::Value::Value ( std::string s)

◆ Value() [5/15]

eu::kdl::Value::Value ( char const * s)

◆ Value() [6/15]

eu::kdl::Value::Value ( Number n)

◆ Value() [7/15]

eu::kdl::Value::Value ( into_number_concept auto n)
inline

Definition at line 125 of file kdl.h.

◆ Value() [8/15]

eu::kdl::Value::Value ( std::string_view ta,
bool b )

◆ Value() [9/15]

eu::kdl::Value::Value ( std::string_view ta,
std::string_view s )

◆ Value() [10/15]

eu::kdl::Value::Value ( std::string_view ta,
std::string s )

◆ Value() [11/15]

eu::kdl::Value::Value ( std::string_view ta,
Number n )

◆ Value() [12/15]

eu::kdl::Value::Value ( std::string_view type_annotation,
into_number_concept auto n )

◆ Value() [13/15]

eu::kdl::Value::Value ( kdl_value const & val)

◆ Value() [14/15]

eu::kdl::Value::Value ( Value const & )
default

◆ Value() [15/15]

eu::kdl::Value::Value ( Value && )
default

Member Function Documentation

◆ as_bool()

bool eu::kdl::Value::as_bool ( ) const

◆ as_number()

const Number & eu::kdl::Value::as_number ( ) const

◆ as_string()

const std::string & eu::kdl::Value::as_string ( ) const

◆ is_null()

bool eu::kdl::Value::is_null ( ) const

◆ operator kdl_value()

eu::kdl::Value::operator kdl_value ( ) const
explicit

◆ operator!=()

bool eu::kdl::Value::operator!= ( const Value & ) const
default

◆ operator=() [1/8]

Value & eu::kdl::Value::operator= ( bool b)

◆ operator=() [2/8]

Value & eu::kdl::Value::operator= ( into_number_concept auto n)
inline

Definition at line 145 of file kdl.h.

◆ operator=() [3/8]

Value & eu::kdl::Value::operator= ( Number && n)

◆ operator=() [4/8]

Value & eu::kdl::Value::operator= ( Number const & n)

◆ operator=() [5/8]

Value & eu::kdl::Value::operator= ( std::string s)

◆ operator=() [6/8]

Value & eu::kdl::Value::operator= ( std::string_view s)

◆ operator=() [7/8]

Value & eu::kdl::Value::operator= ( Value && )
default

◆ operator=() [8/8]

Value & eu::kdl::Value::operator= ( Value const & )
default

◆ operator==()

bool eu::kdl::Value::operator== ( const Value & ) const
default

◆ set_to_null()

void eu::kdl::Value::set_to_null ( )

◆ type()

Type eu::kdl::Value::type ( ) const
noexcept

Member Data Documentation

◆ m_value

std::variant<std::monostate, bool, Number, std::string> eu::kdl::Value::m_value

Definition at line 116 of file kdl.h.


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