DBus::MessageAppendIterator Class Reference

Insertion iterator allow values to be appended to a message. More...

#include <messageappenditerator.h>

Public Member Functions

 MessageAppendIterator (ContainerType container=ContainerType::None)
 
 MessageAppendIterator (Message &message, ContainerType container=ContainerType::None)
 
 MessageAppendIterator (std::shared_ptr< Message > message, ContainerType container=ContainerType::None)
 
 ~MessageAppendIterator ()
 
const Messagemessage () const
 Returns a pointer to the message associated with this iterator or NULL if no message is associated. More...
 
void invalidate ()
 Invalidates the iterator. More...
 
bool is_valid () const
 True if this is a valid iterator. More...
 
 operator bool () const
 True if the iterator is valid and initialized, false otherwise. More...
 
MessageAppendIteratoroperator<< (const bool &v)
 
MessageAppendIteratoroperator<< (const uint8_t &v)
 
MessageAppendIteratoroperator<< (const int16_t &v)
 
MessageAppendIteratoroperator<< (const uint16_t &v)
 
MessageAppendIteratoroperator<< (const int32_t &v)
 
MessageAppendIteratoroperator<< (const uint32_t &v)
 
MessageAppendIteratoroperator<< (const int64_t &v)
 
MessageAppendIteratoroperator<< (const uint64_t &v)
 
MessageAppendIteratoroperator<< (const double &v)
 
MessageAppendIteratoroperator<< (const char *v)
 
MessageAppendIteratoroperator<< (const std::string &v)
 
MessageAppendIteratoroperator<< (const Signature &v)
 
MessageAppendIteratoroperator<< (const Path &v)
 
MessageAppendIteratoroperator<< (const std::shared_ptr< FileDescriptor > v)
 
MessageAppendIteratoroperator<< (const Variant &v)
 
template<typename ... T>
MessageAppendIteratoroperator<< (const MultipleReturn< T... > &v)
 
template<typename T >
MessageAppendIteratoroperator<< (const std::vector< T > &v)
 
template<typename Key , typename Data >
MessageAppendIteratoroperator<< (const std::map< Key, Data > &dictionary)
 
template<typename... T>
MessageAppendIteratoroperator<< (const std::tuple< T... > &tup)
 

Private Member Functions

bool open_container (ContainerType t, const std::string &contained_signature)
 
bool close_container ()
 
MessageAppendIteratorsub_iterator ()
 

Private Attributes

std::shared_ptr< priv_data > m_priv
 

Detailed Description

Insertion iterator allow values to be appended to a message.

Author
Rick L Vinyard Jr rviny.nosp@m.ard@.nosp@m.cs.nm.nosp@m.su.e.nosp@m.du

Constructor & Destructor Documentation

◆ MessageAppendIterator() [1/3]

DBus::MessageAppendIterator::MessageAppendIterator ( ContainerType  container = ContainerType::None)

References m_priv.

Referenced by open_container().

◆ MessageAppendIterator() [2/3]

DBus::MessageAppendIterator::MessageAppendIterator ( Message message,
ContainerType  container = ContainerType::None 
)

◆ MessageAppendIterator() [3/3]

DBus::MessageAppendIterator::MessageAppendIterator ( std::shared_ptr< Message message,
ContainerType  container = ContainerType::None 
)

◆ ~MessageAppendIterator()

DBus::MessageAppendIterator::~MessageAppendIterator ( )

Member Function Documentation

◆ close_container()

bool DBus::MessageAppendIterator::close_container ( )
private

◆ invalidate()

void DBus::MessageAppendIterator::invalidate ( )

Invalidates the iterator.

References m_priv.

◆ is_valid()

bool DBus::MessageAppendIterator::is_valid ( ) const

True if this is a valid iterator.

References m_priv.

Referenced by operator<<().

◆ message()

const Message* DBus::MessageAppendIterator::message ( ) const

Returns a pointer to the message associated with this iterator or NULL if no message is associated.

Referenced by MessageAppendIterator().

◆ open_container()

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

◆ operator bool()

DBus::MessageAppendIterator::operator bool ( ) const

True if the iterator is valid and initialized, false otherwise.

◆ operator<<() [1/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const bool &  v)

◆ operator<<() [2/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const char *  v)

◆ operator<<() [3/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const double &  v)

◆ operator<<() [4/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const int16_t &  v)

◆ operator<<() [5/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const int32_t &  v)

◆ operator<<() [6/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const int64_t &  v)

◆ operator<<() [7/19]

template<typename ... T>
MessageAppendIterator& DBus::MessageAppendIterator::operator<< ( const MultipleReturn< T... > &  v)
inline

◆ operator<<() [8/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const Path v)

◆ operator<<() [9/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const Signature v)

◆ operator<<() [10/19]

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

◆ operator<<() [11/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const std::shared_ptr< FileDescriptor v)

◆ operator<<() [12/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const std::string &  v)

◆ operator<<() [13/19]

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

◆ operator<<() [14/19]

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

◆ operator<<() [15/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const uint16_t &  v)

◆ operator<<() [16/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const uint32_t &  v)

◆ operator<<() [17/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const uint64_t &  v)

◆ operator<<() [18/19]

MessageAppendIterator & DBus::MessageAppendIterator::operator<< ( const uint8_t &  v)

◆ operator<<() [19/19]

◆ sub_iterator()

MessageAppendIterator * DBus::MessageAppendIterator::sub_iterator ( )
private

References m_priv.

Referenced by operator<<().

Member Data Documentation

◆ m_priv

std::shared_ptr<priv_data> DBus::MessageAppendIterator::m_priv
private

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