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 Message * | message () 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... | |
MessageAppendIterator & | operator<< (const bool &v) |
MessageAppendIterator & | operator<< (const uint8_t &v) |
MessageAppendIterator & | operator<< (const int16_t &v) |
MessageAppendIterator & | operator<< (const uint16_t &v) |
MessageAppendIterator & | operator<< (const int32_t &v) |
MessageAppendIterator & | operator<< (const uint32_t &v) |
MessageAppendIterator & | operator<< (const int64_t &v) |
MessageAppendIterator & | operator<< (const uint64_t &v) |
MessageAppendIterator & | operator<< (const double &v) |
MessageAppendIterator & | operator<< (const char *v) |
MessageAppendIterator & | operator<< (const std::string &v) |
MessageAppendIterator & | operator<< (const Signature &v) |
MessageAppendIterator & | operator<< (const Path &v) |
MessageAppendIterator & | operator<< (const std::shared_ptr< FileDescriptor > v) |
MessageAppendIterator & | operator<< (const Variant &v) |
template<typename ... T> | |
MessageAppendIterator & | operator<< (const MultipleReturn< T... > &v) |
template<typename T > | |
MessageAppendIterator & | operator<< (const std::vector< T > &v) |
template<typename Key , typename Data > | |
MessageAppendIterator & | operator<< (const std::map< Key, Data > &dictionary) |
template<typename... T> | |
MessageAppendIterator & | operator<< (const std::tuple< T... > &tup) |
Private Member Functions | |
bool | open_container (ContainerType t, const std::string &contained_signature) |
bool | close_container () |
MessageAppendIterator * | sub_iterator () |
Private Attributes | |
std::shared_ptr< priv_data > | m_priv |
Insertion iterator allow values to be appended to a message.
DBus::MessageAppendIterator::MessageAppendIterator | ( | ContainerType | container = ContainerType::None | ) |
References m_priv.
Referenced by open_container().
DBus::MessageAppendIterator::MessageAppendIterator | ( | Message & | message, |
ContainerType | container = ContainerType::None |
||
) |
References DBus::Message::body(), DBus::default_endianess(), m_priv, message(), and DBus::None.
DBus::MessageAppendIterator::MessageAppendIterator | ( | std::shared_ptr< Message > | message, |
ContainerType | container = ContainerType::None |
||
) |
References DBus::Message::body(), DBus::default_endianess(), m_priv, message(), and DBus::None.
DBus::MessageAppendIterator::~MessageAppendIterator | ( | ) |
|
private |
References DBus::ARRAY, DBus::DICT_ENTRY, m_priv, DBus::Validator::maximum_array_size(), DBus::None, DBus::STRUCT, and DBus::VARIANT.
Referenced by open_container(), and operator<<().
void DBus::MessageAppendIterator::invalidate | ( | ) |
Invalidates the iterator.
References m_priv.
bool DBus::MessageAppendIterator::is_valid | ( | ) | const |
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().
|
private |
DBus::MessageAppendIterator::operator bool | ( | ) | const |
True if the iterator is valid and initialized, false otherwise.
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const bool & | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const char * | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const double & | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const int16_t & | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const int32_t & | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const int64_t & | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
|
inline |
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const Path & | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const Signature & | v | ) |
References is_valid(), m_priv, DBus::None, DBus::signature(), and DBus::Signature::str().
|
inline |
References DBus::ARRAY, close_container(), DBus::DICT_ENTRY, open_container(), DBus::signature_dict_data(), and sub_iterator().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const std::shared_ptr< FileDescriptor > | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const std::string & | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
|
inline |
References close_container(), open_container(), DBus::signature(), DBus::STRUCT, and sub_iterator().
|
inline |
References DBus::ARRAY, close_container(), open_container(), DBus::signature(), sub_iterator(), and DBus::type().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const uint16_t & | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const uint32_t & | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const uint64_t & | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const uint8_t & | v | ) |
References is_valid(), m_priv, DBus::None, and DBus::signature().
MessageAppendIterator & DBus::MessageAppendIterator::operator<< | ( | const Variant & | v | ) |
References DBus::ARRAY, DBus::Signature::begin(), close_container(), DBus::Variant::data_alignment(), DBus::DICT_ENTRY, DBus::Signature::end(), DBus::INVALID, is_valid(), m_priv, DBus::Variant::marshaled(), open_container(), DBus::SignatureIterator::recurse(), DBus::Variant::signature(), DBus::Variant::type(), and DBus::VARIANT.
|
private |
References m_priv.
Referenced by operator<<().
|
private |
Referenced by close_container(), invalidate(), is_valid(), MessageAppendIterator(), open_container(), operator<<(), and sub_iterator().