zep
|
A concrete TOML value representing the "leaves" of the "tree". More...
#include <cpptoml.h>
Public Member Functions | |
std::shared_ptr< base > | clone () const override |
value (const make_shared_enabler &, const T &val) | |
bool | is_value () const override |
Determines if the given TOML element is a value. | |
T & | get () |
Gets the data associated with this value. | |
const T & | get () const |
Gets the data associated with this value. More... | |
![]() | |
virtual bool | is_table () const |
Determines if the given TOML element is a table. | |
std::shared_ptr< table > | as_table () |
Converts the TOML element into a table. | |
virtual bool | is_array () const |
Determines if the TOML element is an array of "leaf" elements. | |
std::shared_ptr< array > | as_array () |
Converts the TOML element to an array. | |
virtual bool | is_table_array () const |
Determines if the given TOML element is an array of tables. | |
std::shared_ptr< table_array > | as_table_array () |
Converts the TOML element into a table array. | |
template<class T > | |
std::shared_ptr< value< T > > | as () |
Attempts to coerce the TOML element into a concrete TOML value of type T. | |
template<class T > | |
std::shared_ptr< const value< T > > | as () const |
template<class Visitor , class... Args> | |
void | accept (Visitor &&visitor, Args &&... args) const |
base implementation of accept() that calls visitor.visit() on the concrete class. | |
template<> | |
std::shared_ptr< value< double > > | as () |
template<> | |
std::shared_ptr< const value< double > > | as () const |
Friends | |
template<class U > | |
std::shared_ptr< typename value_traits< U >::type > | cpptoml::make_value (U &&val) |
A concrete TOML value representing the "leaves" of the "tree".
|
inline |
Gets the data associated with this value.
Const version.