AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
aui::impl::JsonObject Struct Reference

Detailed Description

Public Member Functions

API_AUI_JSON std::pair< AString, AJson > * contains (const AString &key) noexcept
 If container contains key, returns pointer to the element. nullptr otherwise.
 
const std::pair< AString, AJson > * contains (const AString &key) const noexcept
 If container contains key, returns pointer to the element. nullptr otherwise.
 
API_AUI_JSON AJsonoperator[] (const AString &key)
 
const AJsonoperator[] (const AString &key) const
 
API_AUI_JSON AJsonat (const AString &key)
 If container contains key, returns reference to the element. More...
 
const AJsonat (const AString &key) const
 If container contains key, returns reference to the element. More...
 
- Public Member Functions inherited from AVector< std::pair< AString, AJson > >
 AVector (aui::range< Iterator > range)
 
 AVector (std::vector< std::pair< AString, AJson >, Allocator > &&rhs) noexcept
 
iterator insertAll (const OtherContainer &c) noexcept
 
iterator insertAll (OtherContainer &&c) noexcept
 
iterator insertAll (iterator at, const OtherContainer &c) noexcept
 
iterator insertAll (iterator at, OtherContainer &&c) noexcept
 
void removeAll (const std::pair< AString, AJson > &item) noexcept
 
void removeAll (const T &item, Projection projection) noexcept
 
AOptional< std::size_t > removeFirst (const std::pair< AString, AJson > &item) noexcept
 
bool isSubsetOf (const OtherContainer &c) const noexcept
 
bool contains (const std::pair< AString, AJson > &value) const noexcept
 
std::size_t sizeInBytes () const noexcept
 
std::pair< AString, AJson > & at (std::size_t index)
 
const std::pair< AString, AJson > & at (std::size_t index) const
 
selfoperator<< (const std::pair< AString, AJson > &rhs) noexcept
 
selfoperator<< (std::pair< AString, AJson > &&rhs) noexcept
 
selfoperator<< (const OtherContainer &c) noexcept
 
selfoperator<< (OtherContainer &&c) noexcept
 
std::pair< AString, AJson > & first () noexcept
 
const std::pair< AString, AJson > & first () const noexcept
 
std::pair< AString, AJson > & last () noexcept
 
const std::pair< AString, AJson > & last () const noexcept
 
size_t indexOf (const std::pair< AString, AJson > &value) const noexcept
 
AVector< std::pair< AString, AJson > > & sort () noexcept
 
AVector< std::pair< AString, AJson > > & sort (Comparator &&comparator) noexcept
 
std::pair< AString, AJson > * findIf (Predicate &&predicate) noexcept
 Finds element by predicate. More...
 
void removeAt (size_t index) noexcept
 
void removeIf (Predicate &&predicate) noexcept
 
void removeIfFirst (Predicate &&predicate) noexcept
 
ASet< std::pair< AString, AJson > > toSet () const noexcept
 
auto map (UnaryOperation &&transformer) -> AVector< decltype(transformer(std::declval< std::pair< AString, AJson > & >()))>
 
auto map (UnaryOperation &&transformer) const -> AVector< decltype(transformer(std::declval< std::pair< AString, AJson > >()))>
 
auto toMap (UnaryOperation &&transformer) const -> AMap< decltype(transformer(std::declval< std::pair< AString, AJson > >()).first), decltype(transformer(std::declval< std::pair< AString, AJson > >()).second)>
 
auto toMap (UnaryOperation &&transformer) -> AMap< decltype(transformer(std::declval< std::pair< AString, AJson > >()).first), decltype(transformer(std::declval< std::pair< AString, AJson > >()).second)>
 
self filter (Predicate &&predicate)
 

Additional Inherited Members

- Public Types inherited from AVector< std::pair< AString, AJson > >
using iterator = typename super::iterator
 
- Static Public Member Functions inherited from AVector< std::pair< AString, AJson > >
static AVector< std::pair< AString, AJson >, Allocator > generate (size_t size, Callable &&callable) noexcept
 
static auto fromRange (aui::range< Iterator > range, UnaryOperation &&transformer) -> AVector< decltype(transformer(range.first()))>
 Constructs a new vector of transformed items of the range. More...
 
- Protected Types inherited from AVector< std::pair< AString, AJson > >
using super = std::vector< std::pair< AString, AJson >, Allocator >
 
using self = AVector< std::pair< AString, AJson >, Allocator >
 

Member Function Documentation

◆ at() [1/2]

AJson & aui::impl::JsonObject::at ( const AString key)

If container contains key, returns reference to the element.

Exceptions
AExceptionif key is not found.

◆ at() [2/2]

const AJson & aui::impl::JsonObject::at ( const AString key) const
inline

If container contains key, returns reference to the element.

Exceptions
AExceptionif key is not found.

The documentation for this struct was generated from the following files:
Inheritance diagram for aui::impl::JsonObject:
Collaboration diagram for aui::impl::JsonObject: