Euphoria
Public Member Functions | Static Public Member Functions | List of all members
eu::kdl::Value Class 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 auto n)
 
 Value (std::string_view type_annotation, bool b)
 
 Value (std::string_view type_annotation, std::string_view s)
 
 Value (std::string_view type_annotation, std::string s)
 
 Value (std::string_view type_annotation, Number n)
 
 Value (std::string_view type_annotation, _into_number auto n)
 
 Value (kdl_value const &val)
 
 Value (Value const &)=default
 
 Value (Value &&)=default
 
Valueoperator= (Value const &)=default
 
Valueoperator= (Value &&)=default
 
Valueoperator= (bool b)
 
Valueoperator= (std::string_view s)
 
Valueoperator= (std::string s)
 
Valueoperator= (Number const &n)
 
Valueoperator= (Number &&n)
 
Valueoperator= (_into_number auto n)
 
bool operator== (const Value &) const =default
 
bool operator!= (const Value &) const =default
 
void set_to_null ()
 
Type type () const noexcept
 
const Numberas_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
const std::optional< std::string > & type_annotation () const
 
void set_type_annotation (std::string_view type_annotation)
 
void remove_type_annotation ()
 
bool operator== (const HasTypeAnnotation &) const =default
 
bool operator!= (const HasTypeAnnotation &) const =default
 

Static Public Member Functions

static Value from_string (std::string_view s)
 

Additional Inherited Members

- Protected Member Functions inherited from eu::kdl::HasTypeAnnotation
 HasTypeAnnotation ()=default
 
 HasTypeAnnotation (std::string_view t)
 

Detailed Description

Definition at line 147 of file kdl.h.

Constructor & Destructor Documentation

◆ Value() [1/15]

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

◆ Value() [2/15]

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

Definition at line 152 of file kdl.h.

◆ Value() [3/15]

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

Definition at line 153 of file kdl.h.

◆ Value() [4/15]

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

Definition at line 154 of file kdl.h.

◆ Value() [5/15]

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

Definition at line 155 of file kdl.h.

◆ Value() [6/15]

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

Definition at line 157 of file kdl.h.

◆ Value() [7/15]

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

Definition at line 158 of file kdl.h.

◆ Value() [8/15]

eu::kdl::Value::Value ( std::string_view  type_annotation,
bool  b 
)
inline

Definition at line 160 of file kdl.h.

◆ Value() [9/15]

eu::kdl::Value::Value ( std::string_view  type_annotation,
std::string_view  s 
)
inline

Definition at line 161 of file kdl.h.

◆ Value() [10/15]

eu::kdl::Value::Value ( std::string_view  type_annotation,
std::string  s 
)
inline

Definition at line 166 of file kdl.h.

◆ Value() [11/15]

eu::kdl::Value::Value ( std::string_view  type_annotation,
Number  n 
)
inline

Definition at line 171 of file kdl.h.

◆ Value() [12/15]

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

Definition at line 176 of file kdl.h.

◆ 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
inline

Definition at line 251 of file kdl.h.

◆ as_number()

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

Definition at line 233 of file kdl.h.

◆ as_string()

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

Definition at line 242 of file kdl.h.

◆ from_string()

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

◆ is_null()

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

Definition at line 260 of file kdl.h.

◆ 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= ( _into_number auto  n)
inline

Definition at line 220 of file kdl.h.

◆ operator=() [2/8]

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

Definition at line 190 of file kdl.h.

◆ operator=() [3/8]

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

Definition at line 214 of file kdl.h.

◆ operator=() [4/8]

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

Definition at line 208 of file kdl.h.

◆ operator=() [5/8]

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

Definition at line 202 of file kdl.h.

◆ operator=() [6/8]

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

Definition at line 196 of file kdl.h.

◆ 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 ( )
inline

Definition at line 229 of file kdl.h.

◆ type()

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

Definition at line 231 of file kdl.h.


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