|
std::shared_ptr< base > | clone () const override |
|
virtual bool | is_array () const override |
| Determines if the TOML element is an array of "leaf" elements.
|
|
iterator | begin () |
|
const_iterator | begin () const |
|
iterator | end () |
|
const_iterator | end () const |
|
std::vector< std::shared_ptr< base > > & | get () |
| Obtains the array (vector) of base values.
|
|
const std::vector< std::shared_ptr< base > > & | get () const |
| Obtains the array (vector) of base values. More...
|
|
std::shared_ptr< base > | at (size_t idx_source) const |
|
template<class T > |
std::vector< std::shared_ptr< value< T > > > | array_of () const |
| Obtains an array of value<T>s. More...
|
|
template<class T > |
array_of_trait< T >::return_type | get_array_of () const |
| Obtains a option<vector<T>>. More...
|
|
std::vector< std::shared_ptr< array > > | nested_array () const |
| Obtains an array of arrays. More...
|
|
template<class T > |
void | push_back (const std::shared_ptr< value< T >> &val) |
| Add a value to the end of the array.
|
|
void | push_back (const std::shared_ptr< array > &val) |
| Add an array to the end of the array.
|
|
template<class T > |
void | push_back (T &&val, typename value_traits< T >::type *=0) |
| Convenience function for adding a simple element to the end of the array.
|
|
template<class T > |
iterator | insert (iterator position, const std::shared_ptr< value< T >> &value) |
| Insert a value into the array.
|
|
iterator | insert (iterator position, const std::shared_ptr< array > &value) |
| Insert an array into the array.
|
|
template<class T > |
iterator | insert (iterator position, T &&val, typename value_traits< T >::type *=0) |
| Convenience function for inserting a simple element in the array.
|
|
iterator | erase (iterator position) |
| Erase an element from the array.
|
|
void | clear () |
| Clear the array.
|
|
void | reserve (size_type n) |
| Reserve space for n values.
|
|
template<> |
array_of_trait< array >::return_type | get_array_of () const |
| Obtains a option<vector<T>>. More...
|
|
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< table > | as_table () |
| Converts the TOML element into a table.
|
|
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 |
|