#include <cpptoml.h>
◆ const_iterator
arrays can be iterated over. Const version.
◆ iterator
arrays can be iterated over
◆ size_type
◆ array() [1/3]
cpptoml::array::array |
( |
| ) |
|
|
privatedefault |
◆ array() [2/3]
template<class InputIterator >
cpptoml::array::array |
( |
InputIterator |
begin, |
|
|
InputIterator |
end |
|
) |
| |
|
inlineprivate |
◆ array() [3/3]
cpptoml::array::array |
( |
const array & |
obj | ) |
|
|
privatedelete |
◆ array_of()
template<class T >
std::vector<std::shared_ptr<value<T> > > cpptoml::array::array_of |
( |
| ) |
const |
|
inline |
Obtains an array of value<T>s. Note that elements may be nullptr if they cannot be converted to a value<T>.
◆ at()
std::shared_ptr<base> cpptoml::array::at |
( |
size_t |
idx | ) |
const |
|
inline |
◆ begin() [1/2]
◆ begin() [2/2]
◆ clear()
void cpptoml::array::clear |
( |
| ) |
|
|
inline |
◆ clone()
std::shared_ptr< base > cpptoml::array::clone |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ end() [1/2]
◆ end() [2/2]
◆ erase()
Erase an element from the array
◆ get() [1/2]
std::vector<std::shared_ptr<base> >& cpptoml::array::get |
( |
| ) |
|
|
inline |
Obtains the array (vector) of base values.
◆ get() [2/2]
const std::vector<std::shared_ptr<base> >& cpptoml::array::get |
( |
| ) |
const |
|
inline |
Obtains the array (vector) of base values. Const version.
◆ get_array_of() [1/2]
Obtains a option<vector<T>>. The option will be empty if the array contains values that are not of type T.
◆ get_array_of() [2/2]
Obtains a option<vector<T>>. The option will be empty if the array contains values that are not of type T.
◆ insert() [1/3]
Insert a value into the array
◆ insert() [2/3]
Insert an array into the array
◆ insert() [3/3]
Convenience function for inserting a simple element in the array
◆ is_array()
virtual bool cpptoml::array::is_array |
( |
| ) |
const |
|
inlineoverridevirtual |
Determines if the TOML element is an array of "leaf" elements.
Reimplemented from cpptoml::base.
◆ nested_array()
std::vector<std::shared_ptr<array> > cpptoml::array::nested_array |
( |
| ) |
const |
|
inline |
Obtains an array of arrays. Note that elements may be nullptr if they cannot be converted to a array.
◆ operator=()
array& cpptoml::array::operator= |
( |
const array & |
obj | ) |
|
|
privatedelete |
◆ push_back() [1/3]
template<class T >
void cpptoml::array::push_back |
( |
const std::shared_ptr< value< T >> & |
val | ) |
|
|
inline |
Add a value to the end of the array
◆ push_back() [2/3]
void cpptoml::array::push_back |
( |
const std::shared_ptr< array > & |
val | ) |
|
|
inline |
Add an array to the end of the array
◆ push_back() [3/3]
template<class T >
void cpptoml::array::push_back |
( |
T && |
val, |
|
|
typename value_traits< T >::type * |
= 0 |
|
) |
| |
|
inline |
Convenience function for adding a simple element to the end of the array.
◆ reserve()
Reserve space for n values.
◆ make_array
std::shared_ptr<array> make_array |
( |
| ) |
|
|
friend |
◆ values_
std::vector<std::shared_ptr<base> > cpptoml::array::values_ |
|
private |
The documentation for this class was generated from the following file: