Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::Value::List Class Reference

List Value Container Type. More...

#include <Value.h>

Public Types

using Raw = std::vector<std::shared_ptr<Value>>
 
using Iterator = Raw::iterator
 
using ConstIterator = Raw::const_iterator
 
using ReverseIterator = Raw::reverse_iterator
 
using ConstReverseIterator = Raw::const_reverse_iterator
 

Public Member Functions

size_t empty () const
 
size_t size () const
 
void reserve (size_t size)
 
void resize (size_t size)
 
void clear ()
 
const std::shared_ptr< Valueoperator[] (size_t index) const
 
std::shared_ptr< Valueoperator[] (size_t index)
 
size_t erase (const std::shared_ptr< Value > &value)
 
Iterator erase (Iterator it)
 
ConstIterator erase (ConstIterator it)
 
Iterator erase (const Iterator &first, const Iterator &last)
 
ConstIterator erase (const ConstIterator &first, const ConstIterator &last)
 
Iterator begin ()
 
ConstIterator begin () const
 
Iterator end ()
 
ConstIterator end () const
 
ConstIterator cbegin () const
 
ConstIterator cend () const
 
ReverseIterator rbegin ()
 
ConstReverseIterator rbegin () const
 
ReverseIterator rend ()
 
ConstReverseIterator rend () const
 
const std::shared_ptr< Valuefront () const
 
std::shared_ptr< Valuefront ()
 
const std::shared_ptr< Valueback () const
 
std::shared_ptr< Valueback ()
 
std::shared_ptr< ValueappendRef (Value &&value)
 Append a Value to the List, and return a reference to the appended Value.
 
void append (Value &&value) &
 
void append (bool value) &
 
void append (Integer value) &
 
void append (double value) &
 
void append (const char *value) &
 
void append (String &&value) &
 
void append (Blob &&value) &
 
void append (const char *bytes, size_t length) &
 
void append (List &&value) &
 
void append (Dict &&value) &
 
List && append (Value &&value) &&
 
List && append (bool value) &&
 
List && append (Integer value) &&
 
List && append (double value) &&
 
List && append (const char *value) &&
 
List && append (String &&value) &&
 
List && append (const char *bytes, size_t length) &&
 
List && append (Blob &&value) &&
 
List && append (List &&value) &&
 
List && append (Dict &&value) &&
 
Iterator insert (Iterator it, Value &&value)
 

Private Attributes

Raw vector
 

Detailed Description

List Value Container Type.

Member Typedef Documentation

◆ ConstIterator

using sese::Value::List::ConstIterator = Raw::const_iterator

◆ ConstReverseIterator

using sese::Value::List::ConstReverseIterator = Raw::const_reverse_iterator

◆ Iterator

using sese::Value::List::Iterator = Raw::iterator

◆ Raw

using sese::Value::List::Raw = std::vector<std::shared_ptr<Value>>

◆ ReverseIterator

using sese::Value::List::ReverseIterator = Raw::reverse_iterator

Member Function Documentation

◆ append() [1/20]

void List::append ( Blob && value) &

◆ append() [2/20]

List && List::append ( Blob && value) &&

◆ append() [3/20]

void List::append ( bool value) &

◆ append() [4/20]

List && List::append ( bool value) &&

◆ append() [5/20]

void List::append ( const char * bytes,
size_t length ) &

◆ append() [6/20]

List && List::append ( const char * bytes,
size_t length ) &&

◆ append() [7/20]

void List::append ( const char * value) &

◆ append() [8/20]

List && List::append ( const char * value) &&

◆ append() [9/20]

void List::append ( Dict && value) &

◆ append() [10/20]

List && List::append ( Dict && value) &&

◆ append() [11/20]

void List::append ( double value) &

◆ append() [12/20]

List && List::append ( double value) &&

◆ append() [13/20]

void List::append ( Integer value) &

◆ append() [14/20]

List && List::append ( Integer value) &&

◆ append() [15/20]

void List::append ( List && value) &

◆ append() [16/20]

List && List::append ( List && value) &&

◆ append() [17/20]

void List::append ( String && value) &

◆ append() [18/20]

List && List::append ( String && value) &&

◆ append() [19/20]

void List::append ( Value && value) &

◆ append() [20/20]

List && List::append ( Value && value) &&

◆ appendRef()

std::shared_ptr< Value > List::appendRef ( Value && value)

Append a Value to the List, and return a reference to the appended Value.

Parameters
valueValue to append
Returns
Reference to the appended Value

◆ back() [1/2]

std::shared_ptr< Value > List::back ( )

◆ back() [2/2]

const std::shared_ptr< Value > List::back ( ) const
nodiscard

◆ begin() [1/2]

List::Iterator List::begin ( )

◆ begin() [2/2]

List::ConstIterator List::begin ( ) const
nodiscard

◆ cbegin()

List::ConstIterator List::cbegin ( ) const
nodiscard

◆ cend()

List::ConstIterator List::cend ( ) const
nodiscard

◆ clear()

void List::clear ( )

◆ empty()

size_t List::empty ( ) const
nodiscard

◆ end() [1/2]

List::Iterator List::end ( )

◆ end() [2/2]

List::ConstIterator List::end ( ) const
nodiscard

◆ erase() [1/5]

List::ConstIterator List::erase ( const ConstIterator & first,
const ConstIterator & last )

◆ erase() [2/5]

List::Iterator List::erase ( const Iterator & first,
const Iterator & last )

◆ erase() [3/5]

size_t List::erase ( const std::shared_ptr< Value > & value)

References count().

◆ erase() [4/5]

◆ erase() [5/5]

List::Iterator List::erase ( Iterator it)

◆ front() [1/2]

std::shared_ptr< Value > List::front ( )

◆ front() [2/2]

const std::shared_ptr< Value > List::front ( ) const
nodiscard

◆ insert()

List::Iterator List::insert ( Iterator it,
Value && value )

◆ operator[]() [1/2]

std::shared_ptr< Value > List::operator[] ( size_t index)

◆ operator[]() [2/2]

const std::shared_ptr< Value > List::operator[] ( size_t index) const

◆ rbegin() [1/2]

List::ReverseIterator List::rbegin ( )

◆ rbegin() [2/2]

List::ConstReverseIterator List::rbegin ( ) const
nodiscard

◆ rend() [1/2]

List::ReverseIterator List::rend ( )

◆ rend() [2/2]

List::ConstReverseIterator List::rend ( ) const
nodiscard

◆ reserve()

void List::reserve ( size_t size)

◆ resize()

void List::resize ( size_t size)

◆ size()

size_t List::size ( ) const
nodiscard

Member Data Documentation

◆ vector

Raw sese::Value::List::vector
private

The documentation for this class was generated from the following files: