zep
Public Member Functions | List of all members
cpptoml::base Class Referenceabstract

A generic base TOML value used for type erasure. More...

#include <cpptoml.h>

Inheritance diagram for cpptoml::base:
cpptoml::array cpptoml::table cpptoml::table_array cpptoml::value< T >

Public Member Functions

virtual std::shared_ptr< baseclone () const =0
 
virtual bool is_value () const
 Determines if the given TOML element is a value.
 
virtual bool is_table () const
 Determines if the given TOML element is a table.
 
std::shared_ptr< tableas_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< arrayas_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_arrayas_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
 

Detailed Description

A generic base TOML value used for type erasure.


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