DBus::priv::VariantAppendIterator Class Reference

Used to append a single, complete value to a Variant. More...

#include <variantappenditerator.h>

Public Member Functions

 VariantAppendIterator (Variant *variant)
 
 ~VariantAppendIterator ()
 
VariantAppendIteratoroperator<< (const bool &v)
 
VariantAppendIteratoroperator<< (const uint8_t &v)
 
VariantAppendIteratoroperator<< (const int16_t &v)
 
VariantAppendIteratoroperator<< (const uint16_t &v)
 
VariantAppendIteratoroperator<< (const int32_t &v)
 
VariantAppendIteratoroperator<< (const uint32_t &v)
 
VariantAppendIteratoroperator<< (const int64_t &v)
 
VariantAppendIteratoroperator<< (const uint64_t &v)
 
VariantAppendIteratoroperator<< (const double &v)
 
VariantAppendIteratoroperator<< (const char *v)
 
VariantAppendIteratoroperator<< (const std::string &v)
 
VariantAppendIteratoroperator<< (const Signature &v)
 
VariantAppendIteratoroperator<< (const Path &v)
 
VariantAppendIteratoroperator<< (const Variant &v)
 
template<typename T >
VariantAppendIteratoroperator<< (const std::vector< T > &v)
 
template<typename Key , typename Data >
VariantAppendIteratoroperator<< (const std::map< Key, Data > &dictionary)
 
template<typename... T>
VariantAppendIteratoroperator<< (const std::tuple< T... > &tup)
 

Private Member Functions

 VariantAppendIterator (Variant *variant, ContainerType t)
 
bool open_container (ContainerType t, const std::string &contained_signature)
 
bool close_container ()
 
VariantAppendIteratorsub_iterator ()
 

Private Attributes

std::shared_ptr< priv_data > m_priv
 

Detailed Description

Used to append a single, complete value to a Variant.

This is essentially a variant-specific version of MessageAppendIterator

Constructor & Destructor Documentation

◆ VariantAppendIterator() [1/2]

VariantAppendIterator::VariantAppendIterator ( Variant variant,
ContainerType  t 
)
private

References DBus::default_endianess(), and m_priv.

Referenced by open_container().

◆ VariantAppendIterator() [2/2]

VariantAppendIterator::VariantAppendIterator ( Variant variant)

◆ ~VariantAppendIterator()

VariantAppendIterator::~VariantAppendIterator ( )

References m_priv.

Member Function Documentation

◆ close_container()

bool VariantAppendIterator::close_container ( )
private

◆ open_container()

bool VariantAppendIterator::open_container ( ContainerType  t,
const std::string &  contained_signature 
)
private

◆ operator<<() [1/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const bool &  v)

References m_priv.

◆ operator<<() [2/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const char *  v)

References m_priv.

◆ operator<<() [3/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const double &  v)

References m_priv.

◆ operator<<() [4/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const int16_t &  v)

References m_priv.

◆ operator<<() [5/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const int32_t &  v)

References m_priv.

◆ operator<<() [6/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const int64_t &  v)

References m_priv.

◆ operator<<() [7/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const Path v)

References m_priv.

◆ operator<<() [8/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const Signature v)

References m_priv.

◆ operator<<() [9/17]

template<typename Key , typename Data >
VariantAppendIterator& DBus::priv::VariantAppendIterator::operator<< ( const std::map< Key, Data > &  dictionary)
inline

◆ operator<<() [10/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const std::string &  v)

References m_priv.

◆ operator<<() [11/17]

template<typename... T>
VariantAppendIterator& DBus::priv::VariantAppendIterator::operator<< ( const std::tuple< T... > &  tup)
inline

◆ operator<<() [12/17]

template<typename T >
VariantAppendIterator& DBus::priv::VariantAppendIterator::operator<< ( const std::vector< T > &  v)
inline

◆ operator<<() [13/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const uint16_t &  v)

References m_priv.

◆ operator<<() [14/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const uint32_t &  v)

References m_priv.

◆ operator<<() [15/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const uint64_t &  v)

References m_priv.

◆ operator<<() [16/17]

VariantAppendIterator & VariantAppendIterator::operator<< ( const uint8_t &  v)

References m_priv.

◆ operator<<() [17/17]

◆ sub_iterator()

VariantAppendIterator * VariantAppendIterator::sub_iterator ( )
private

References m_priv.

Referenced by operator<<().

Member Data Documentation

◆ m_priv

std::shared_ptr<priv_data> DBus::priv::VariantAppendIterator::m_priv
private

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