|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <toml.hpp>
Public Types | |
| using | value_type = node |
| using | size_type = size_t |
| using | difference_type = ptrdiff_t |
| using | reference = node& |
| using | const_reference = const node& |
| using | iterator = array_iterator |
| using | const_iterator = const_array_iterator |
Public Member Functions | |
| TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION | array () noexcept |
| TOML_EXPORTED_MEMBER_FUNCTION | ~array () noexcept |
| TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION | array (const array &) |
| TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION | array (array &&other) noexcept |
| TOML_CONSTRAINED_TEMPLATE ((sizeof...(ElemTypes) > 0||!std::is_same_v< impl::remove_cvref< ElemType >, array >), typename ElemType, typename... ElemTypes) TOML_NODISCARD_CTOR explicit array(ElemType &&val | |
| TOML_EXPORTED_MEMBER_FUNCTION array & | operator= (array &&rhs) noexcept |
| TOML_CONST_INLINE_GETTER node_type | type () const noexcept final |
| TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION bool | is_homogeneous (node_type ntype) const noexcept final |
| TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION bool | is_homogeneous (node_type ntype, node *&first_nonmatch) noexcept final |
| TOML_PURE_GETTER TOML_EXPORTED_MEMBER_FUNCTION bool | is_homogeneous (node_type ntype, const node *&first_nonmatch) const noexcept final |
| template<typename ElemType = void> | |
| TOML_PURE_GETTER bool | is_homogeneous () const noexcept |
| TOML_CONST_INLINE_GETTER bool | is_table () const noexcept final |
| TOML_CONST_INLINE_GETTER bool | is_array () const noexcept final |
| TOML_PURE_GETTER bool | is_array_of_tables () const noexcept final |
| TOML_CONST_INLINE_GETTER bool | is_value () const noexcept final |
| TOML_CONST_INLINE_GETTER bool | is_string () const noexcept final |
| TOML_CONST_INLINE_GETTER bool | is_integer () const noexcept final |
| TOML_CONST_INLINE_GETTER bool | is_floating_point () const noexcept final |
| TOML_CONST_INLINE_GETTER bool | is_number () const noexcept final |
| TOML_CONST_INLINE_GETTER bool | is_boolean () const noexcept final |
| TOML_CONST_INLINE_GETTER bool | is_date () const noexcept final |
| TOML_CONST_INLINE_GETTER bool | is_time () const noexcept final |
| TOML_CONST_INLINE_GETTER bool | is_date_time () const noexcept final |
| TOML_CONST_INLINE_GETTER table * | as_table () noexcept final |
| TOML_CONST_INLINE_GETTER array * | as_array () noexcept final |
| TOML_CONST_INLINE_GETTER toml::value< std::string > * | as_string () noexcept final |
| TOML_CONST_INLINE_GETTER toml::value< int64_t > * | as_integer () noexcept final |
| TOML_CONST_INLINE_GETTER toml::value< double > * | as_floating_point () noexcept final |
| TOML_CONST_INLINE_GETTER toml::value< bool > * | as_boolean () noexcept final |
| TOML_CONST_INLINE_GETTER toml::value< date > * | as_date () noexcept final |
| TOML_CONST_INLINE_GETTER toml::value< time > * | as_time () noexcept final |
| TOML_CONST_INLINE_GETTER toml::value< date_time > * | as_date_time () noexcept final |
| TOML_CONST_INLINE_GETTER const table * | as_table () const noexcept final |
| TOML_CONST_INLINE_GETTER const array * | as_array () const noexcept final |
| TOML_CONST_INLINE_GETTER const toml::value< std::string > * | as_string () const noexcept final |
| TOML_CONST_INLINE_GETTER const toml::value< int64_t > * | as_integer () const noexcept final |
| TOML_CONST_INLINE_GETTER const toml::value< double > * | as_floating_point () const noexcept final |
| TOML_CONST_INLINE_GETTER const toml::value< bool > * | as_boolean () const noexcept final |
| TOML_CONST_INLINE_GETTER const toml::value< date > * | as_date () const noexcept final |
| TOML_CONST_INLINE_GETTER const toml::value< time > * | as_time () const noexcept final |
| TOML_CONST_INLINE_GETTER const toml::value< date_time > * | as_date_time () const noexcept final |
| TOML_PURE_INLINE_GETTER node * | get (size_t index) noexcept |
| TOML_PURE_INLINE_GETTER const node * | get (size_t index) const noexcept |
| template<typename ElemType> | |
| TOML_NODISCARD impl::wrap_node< ElemType > * | get_as (size_t index) noexcept |
| template<typename ElemType> | |
| TOML_NODISCARD const impl::wrap_node< ElemType > * | get_as (size_t index) const noexcept |
| TOML_NODISCARD node & | operator[] (size_t index) noexcept |
| TOML_NODISCARD const node & | operator[] (size_t index) const noexcept |
| TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION node & | at (size_t index) |
| TOML_NODISCARD const node & | at (size_t index) const |
| TOML_NODISCARD node & | front () noexcept |
| TOML_NODISCARD const node & | front () const noexcept |
| TOML_NODISCARD node & | back () noexcept |
| TOML_NODISCARD const node & | back () const noexcept |
| TOML_NODISCARD iterator | begin () noexcept |
| TOML_NODISCARD const_iterator | begin () const noexcept |
| TOML_NODISCARD const_iterator | cbegin () const noexcept |
| TOML_NODISCARD iterator | end () noexcept |
| TOML_NODISCARD const_iterator | end () const noexcept |
| TOML_NODISCARD const_iterator | cend () const noexcept |
| template<typename Func> | |
| array & | for_each (Func &&visitor) &noexcept(for_each_is_nothrow< Func &&, array & >::value) |
| template<typename Func> | |
| array && | for_each (Func &&visitor) &&noexcept(for_each_is_nothrow< Func &&, array && >::value) |
| template<typename Func> | |
| const array & | for_each (Func &&visitor) const &noexcept(for_each_is_nothrow< Func &&, const array & >::value) |
| template<typename Func> | |
| const array && | for_each (Func &&visitor) const &&noexcept(for_each_is_nothrow< Func &&, const array && >::value) |
| TOML_NODISCARD bool | empty () const noexcept |
| TOML_NODISCARD size_t | size () const noexcept |
| TOML_NODISCARD size_t | max_size () const noexcept |
| TOML_NODISCARD size_t | capacity () const noexcept |
| TOML_EXPORTED_MEMBER_FUNCTION void | reserve (size_t new_capacity) |
| TOML_EXPORTED_MEMBER_FUNCTION void | shrink_to_fit () |
| TOML_EXPORTED_MEMBER_FUNCTION void | truncate (size_t new_size) |
| template<typename ElemType> | |
| void | resize (size_t new_size, ElemType &&default_init_val, value_flags default_init_flags=preserve_source_value_flags) |
| TOML_EXPORTED_MEMBER_FUNCTION iterator | erase (const_iterator pos) noexcept |
| TOML_EXPORTED_MEMBER_FUNCTION iterator | erase (const_iterator first, const_iterator last) noexcept |
| TOML_EXPORTED_MEMBER_FUNCTION array & | flatten () & |
| array && | flatten () && |
| TOML_EXPORTED_MEMBER_FUNCTION array & | prune (bool recursive=true) &noexcept |
| array && | prune (bool recursive=true) &&noexcept |
| TOML_EXPORTED_MEMBER_FUNCTION void | pop_back () noexcept |
| TOML_EXPORTED_MEMBER_FUNCTION void | clear () noexcept |
| template<typename ElemType> | |
| iterator | insert (const_iterator pos, ElemType &&val, value_flags flags=preserve_source_value_flags) |
| template<typename ElemType> | |
| iterator | insert (const_iterator pos, size_t count, ElemType &&val, value_flags flags=preserve_source_value_flags) |
| template<typename Iter> | |
| iterator | insert (const_iterator pos, Iter first, Iter last, value_flags flags=preserve_source_value_flags) |
| template<typename ElemType> | |
| iterator | insert (const_iterator pos, std::initializer_list< ElemType > ilist, value_flags flags=preserve_source_value_flags) |
| template<typename ElemType = void, typename... Args> | |
| iterator | emplace (const_iterator pos, Args &&... args) |
| template<typename ElemType> | |
| iterator | replace (const_iterator pos, ElemType &&val, value_flags flags=preserve_source_value_flags) |
| template<typename ElemType> | |
| void | push_back (ElemType &&val, value_flags flags=preserve_source_value_flags) |
| template<typename ElemType = void, typename... Args> | |
| decltype(auto) | emplace_back (Args &&... args) |
| TOML_ASYMMETRICAL_EQUALITY_OPS (const array &, const std::initializer_list< T > &, template< typename T >) | |
| TOML_ASYMMETRICAL_EQUALITY_OPS (const array &, const std::vector< T > &, template< typename T >) | |
Public Attributes | |
| ElemTypes && | vals: array{ std::false_type{} |
Private Types | |
| using | vector_type = std::vector<impl::node_ptr> |
| using | vector_iterator = typename vector_type::iterator |
| using | const_vector_iterator = typename vector_type::const_iterator |
| template<typename T, typename Array> | |
| using | for_each_elem_ref = impl::copy_cvref<impl::wrap_node<impl::remove_cvref<impl::unwrap_node<T>>>, Array> |
| template<typename Func, typename Array, typename T> | |
| using | can_for_each |
| template<typename Func, typename Array, typename T> | |
| using | can_for_each_nothrow |
| template<typename Func, typename Array> | |
| using | can_for_each_any |
| template<typename Func, typename Array, typename T> | |
| using | for_each_is_nothrow_one |
| template<typename Func, typename Array> | |
| using | for_each_is_nothrow |
Private Member Functions | |
| TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION | array (const impl::array_init_elem *, const impl::array_init_elem *) |
| TOML_NODISCARD_CTOR | array (std::false_type, std::initializer_list< impl::array_init_elem > elems) |
| TOML_EXPORTED_MEMBER_FUNCTION void | preinsertion_resize (size_t idx, size_t count) |
| TOML_EXPORTED_MEMBER_FUNCTION void | insert_at_back (impl::node_ptr &&) |
| TOML_EXPORTED_MEMBER_FUNCTION vector_iterator | insert_at (const_vector_iterator, impl::node_ptr &&) |
| template<typename T> | |
| void | emplace_back_if_not_empty_view (T &&val, value_flags flags) |
| TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION size_t | total_leaf_count () const noexcept |
| TOML_EXPORTED_MEMBER_FUNCTION void | flatten_child (array &&child, size_t &dest_index) noexcept |
Static Private Member Functions | |
| template<typename Func, typename Array> | |
| static void | do_for_each (Func &&visitor, Array &&arr) noexcept(for_each_is_nothrow< Func &&, Array && >::value) |
| TOML_NODISCARD static TOML_EXPORTED_STATIC_FUNCTION bool TOML_CALLCONV | equal (const array &, const array &) noexcept |
| template<typename T> | |
| static TOML_NODISCARD bool | equal_to_container (const array &lhs, const T &rhs) noexcept |
Private Attributes | |
| vector_type | elems_ |
Friends | |
| TOML_NODISCARD friend bool | operator== (const array &lhs, const array &rhs) noexcept |
| TOML_NODISCARD friend bool | operator!= (const array &lhs, const array &rhs) noexcept |
| template<typename T> | |
| TOML_NODISCARD friend bool | operator== (const array &lhs, const std::initializer_list< T > &rhs) noexcept |
| template<typename T> | |
| TOML_NODISCARD friend bool | operator== (const array &lhs, const std::vector< T > &rhs) noexcept |
| std::ostream & | operator<< (std::ostream &lhs, const array &rhs) |
|
private |
|
private |
|
private |
| using array::const_reference = const node& |
|
private |
| using array::difference_type = ptrdiff_t |
|
private |
|
private |
|
private |
| using array::iterator = array_iterator |
| using array::reference = node& |
| using array::size_type = size_t |
| using array::value_type = node |
|
private |
|
private |
|
private |
References TOML_NODISCARD_CTOR.
Referenced by array(), array(), array(), array(), as_array(), as_array(), at(), equal(), equal_to_container(), flatten(), flatten(), flatten_child(), for_each(), for_each(), for_each(), for_each(), get(), get_as(), operator!=, operator<<, operator=(), operator==, operator==, operator==, prune(), prune(), TOML_ASYMMETRICAL_EQUALITY_OPS(), TOML_ASYMMETRICAL_EQUALITY_OPS(), TOML_CONSTRAINED_TEMPLATE(), and ~array().
|
inlineprivate |
|
noexcept |
References array(), and TOML_EXPORTED_MEMBER_FUNCTION.
|
noexcept |
References array(), TOML_EXPORTED_MEMBER_FUNCTION, and TOML_NODISCARD_CTOR.
| TOML_NODISCARD_CTOR TOML_EXPORTED_MEMBER_FUNCTION array::array | ( | const array & | ) |
References array(), TOML_EXPORTED_MEMBER_FUNCTION, and TOML_NODISCARD_CTOR.
|
noexcept |
References array().
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
| TOML_NODISCARD TOML_EXPORTED_MEMBER_FUNCTION node & array::at | ( | size_t | index | ) |
References TOML_NODISCARD.
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 6877 of file toml.hpp.
References elems_.
Referenced by feedtwin.engine.card.InjectorCard::pressure_drop(), and feedtwin.engine.card.InjectorCard::to_dict().
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinestaticprivatenoexcept |
Definition at line 6703 of file toml.hpp.
References TOML_SA_NODE_TYPE_LIST, and value().
Referenced by for_each(), for_each(), for_each(), and for_each().
|
inline |
Definition at line 7022 of file toml.hpp.
References insert_at(), TOML_SA_UNWRAPPED_NODE_TYPE_LIST, and type().
|
inline |
Definition at line 7060 of file toml.hpp.
References elems_, insert_at_back(), ptr, and TOML_SA_UNWRAPPED_NODE_TYPE_LIST.
|
inlineprivate |
Definition at line 6272 of file toml.hpp.
References insert_at_back(), is_node_view, and value_flags::value_flags.
Referenced by push_back().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
staticprivatenoexcept |
References array(), TOML_CALLCONV, and TOML_NODISCARD.
Referenced by operator!=, and operator==.
|
inlinestaticprivatenoexcept |
Definition at line 7100 of file toml.hpp.
Referenced by operator==, and operator==.
|
noexcept |
References TOML_EXPORTED_MEMBER_FUNCTION.
|
noexcept |
References TOML_EXPORTED_MEMBER_FUNCTION.
| TOML_EXPORTED_MEMBER_FUNCTION array & array::flatten | ( | ) | & |
References array().
|
inline |
|
privatenoexcept |
References array(), and flatten_child().
Referenced by flatten_child().
|
inlinenoexcept |
Definition at line 6835 of file toml.hpp.
References array(), and do_for_each().
|
inlinenoexcept |
Definition at line 6827 of file toml.hpp.
References array(), and do_for_each().
|
inlinenoexcept |
Definition at line 6851 of file toml.hpp.
References array(), and do_for_each().
|
inlinenoexcept |
Definition at line 6843 of file toml.hpp.
References array(), and do_for_each().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Definition at line 6936 of file toml.hpp.
References end(), insert(), insert_at(), is_node_view, preserve_source_value_flags, and value_flags::value_flags.
Referenced by insert().
|
inline |
Definition at line 6977 of file toml.hpp.
References count(), elems_, is_node_view, preinsertion_resize(), preserve_source_value_flags, and value_flags::value_flags.
|
inline |
Definition at line 6948 of file toml.hpp.
References count(), elems_, end(), insert(), is_node_view, preinsertion_resize(), preserve_source_value_flags, and value_flags::value_flags.
|
inline |
Definition at line 7014 of file toml.hpp.
References insert(), preserve_source_value_flags, and value_flags::value_flags.
|
private |
|
private |
References TOML_EXPORTED_MEMBER_FUNCTION.
Referenced by emplace_back(), and emplace_back_if_not_empty_view().
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
Definition at line 6369 of file toml.hpp.
References is_homogeneous().
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinenoexcept |
Definition at line 6347 of file toml.hpp.
References is_homogeneous(), TOML_SA_UNWRAPPED_NODE_TYPE_LIST, and type().
|
finalnoexcept |
References TOML_EXPORTED_MEMBER_FUNCTION, and TOML_PURE_GETTER.
Referenced by is_array_of_tables(), and is_homogeneous().
|
finalnoexcept |
References TOML_PURE_GETTER.
|
finalnoexcept |
References TOML_EXPORTED_MEMBER_FUNCTION, and TOML_PURE_GETTER.
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinefinalnoexcept |
|
inlinenoexcept |
|
noexcept |
References array(), rhs, and TOML_CONST_INLINE_GETTER.
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
References TOML_EXPORTED_MEMBER_FUNCTION.
|
private |
References count(), and TOML_EXPORTED_MEMBER_FUNCTION.
|
inlinenoexcept |
|
noexcept |
|
inline |
Definition at line 7054 of file toml.hpp.
References emplace_back_if_not_empty_view(), preserve_source_value_flags, and value_flags::value_flags.
|
inline |
Definition at line 7038 of file toml.hpp.
References cbegin(), cend(), elems_, end(), is_node_view, preserve_source_value_flags, TOML_ASSERT, and value_flags::value_flags.
| TOML_EXPORTED_MEMBER_FUNCTION void array::reserve | ( | size_t | new_capacity | ) |
References TOML_EXPORTED_MEMBER_FUNCTION.
|
inline |
Definition at line 6892 of file toml.hpp.
References cend(), clear(), elems_, insert(), is_node_view, preserve_source_value_flags, truncate(), and value_flags::value_flags.
Referenced by actuator_testing_gui.ActuatorTestingWindow::__init__(), combined_gui.PWMControlWindow::__init__(), gui.App::__init__(), gui.ConsoleWindow::__init__(), lc_calibration_gui.LCPlotWindow::__init__(), sense_testing_gui.SenseTestingGUIWindow::__init__(), and solenoid_characterization_gui.FullPlotWindow::__init__().
| TOML_EXPORTED_MEMBER_FUNCTION void array::shrink_to_fit | ( | ) |
References TOML_EXPORTED_MEMBER_FUNCTION.
|
inlinenoexcept |
| array::TOML_ASYMMETRICAL_EQUALITY_OPS | ( | const array & | , |
| const std::initializer_list< T > & | , | ||
| template< typename T > | ) |
References array(), and TOML_NODISCARD.
| array::TOML_ASYMMETRICAL_EQUALITY_OPS | ( | const array & | , |
| const std::vector< T > & | , | ||
| template< typename T > | ) |
References array().
| array::TOML_CONSTRAINED_TEMPLATE | ( | (sizeof...(ElemTypes) > 0||!std::is_same_v< impl::remove_cvref< ElemType >, array >) | , |
| typename ElemType | , | ||
| typename... | ElemTypes ) && |
References array(), TOML_CONSTRAINED_TEMPLATE(), and TOML_NODISCARD_CTOR.
Referenced by TOML_CONSTRAINED_TEMPLATE().
|
privatenoexcept |
References TOML_EXPORTED_MEMBER_FUNCTION.
| TOML_EXPORTED_MEMBER_FUNCTION void array::truncate | ( | size_t | new_size | ) |
Referenced by resize().
|
inlinefinalnoexcept |
Definition at line 6328 of file toml.hpp.
Referenced by emplace(), feedtwin.pid.document.PidNode::is_annotation(), is_homogeneous(), feedtwin.pid.document.PidNode::is_inline(), feedtwin.pid.document.PidNode::is_instrument(), feedtwin.pid.document.PidNode::is_source(), and feedtwin.model.catalog.Part::to_dict().
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 7138 of file toml.hpp.
References array(), equal_to_container(), and rhs.
|
friend |
Definition at line 7146 of file toml.hpp.
References array(), equal_to_container(), and rhs.
|
private |
Definition at line 6251 of file toml.hpp.
Referenced by back(), back(), begin(), begin(), capacity(), cbegin(), cend(), emplace_back(), empty(), end(), end(), front(), front(), get(), insert(), insert(), max_size(), operator[](), operator[](), replace(), resize(), and size().