#include <cpptoml.h>
Definition at line 911 of file cpptoml.h.
◆ const_iterator
arrays can be iterated over. Const version.
Definition at line 928 of file cpptoml.h.
◆ iterator
arrays can be iterated over
Definition at line 923 of file cpptoml.h.
◆ size_type
◆ table_array() [1/3]
cpptoml::table_array::table_array |
( |
| ) |
|
|
inlineprivate |
◆ table_array() [2/3]
cpptoml::table_array::table_array |
( |
| ) |
|
|
inlineprivate |
◆ table_array() [3/3]
cpptoml::table_array::table_array |
( |
const table_array & |
obj | ) |
|
|
delete |
◆ begin() [1/2]
iterator cpptoml::table_array::begin |
( |
| ) |
|
|
inline |
Definition at line 930 of file cpptoml.h.
std::vector< std::shared_ptr< table > > array_
◆ begin() [2/2]
◆ clear()
void cpptoml::table_array::clear |
( |
| ) |
|
|
inline |
◆ clone()
std::shared_ptr< base > cpptoml::table_array::clone |
( |
| ) |
const |
|
inlineoverridevirtual |
Implements cpptoml::base.
Definition at line 1445 of file cpptoml.h.
1445 {
1447 result->reserve(
array_.size());
1448 for(
const auto& ptr :
array_)
1449 result->array_.push_back(ptr->clone()->as_table());
1450 return result;
1451}
friend std::shared_ptr< table_array > make_table_array()
◆ end() [1/2]
◆ end() [2/2]
◆ erase()
Erase an element from the array
Definition at line 957 of file cpptoml.h.
957{
return array_.erase(position); }
◆ get() [1/2]
std::vector< std::shared_ptr< table > > & cpptoml::table_array::get |
( |
| ) |
|
|
inline |
◆ get() [2/2]
const std::vector< std::shared_ptr< table > > & cpptoml::table_array::get |
( |
| ) |
const |
|
inline |
◆ insert()
Insert a table into the array
Definition at line 952 of file cpptoml.h.
952{
return array_.insert(position, value); }
◆ is_table_array()
MBool cpptoml::table_array::is_table_array |
( |
| ) |
const |
|
inlineoverridevirtual |
Determines if the given TOML element is an array of tables.
Reimplemented from cpptoml::base.
Definition at line 938 of file cpptoml.h.
◆ operator=()
◆ push_back()
void cpptoml::table_array::push_back |
( |
const std::shared_ptr< table > & |
val | ) |
|
|
inline |
Add a table to the end of the array
Definition at line 947 of file cpptoml.h.
◆ reserve()
void cpptoml::table_array::reserve |
( |
size_type |
n | ) |
|
|
inline |
Reserve space for n tables.
Definition at line 967 of file cpptoml.h.
◆ make_table_array
Definition at line 999 of file cpptoml.h.
999 {
1000#if not defined(MAIA_INTEL_COMPILER)
1002 make_shared_enabler() = default;
1003 };
1004
1005 return std::make_shared<make_shared_enabler>();
1006#else
1007 return std::make_shared<TABLE_ARRAY_::make_shared_enabler>();
1008#endif
1009}
◆ table
◆ array_
std::vector<std::shared_ptr<table> > cpptoml::table_array::array_ |
|
private |
The documentation for this class was generated from the following file:
- /home/gitlab-runner/scratch/builds/oxpnswJ6/1/aia/m-AIA/m-AIA/src/IO/cpptoml.h