|
libdballe
7.7
|
Ordered collection of messages. More...
#include <message.h>
Data Structures | |
| class | base_iterator |
Public Types | |
| typedef base_iterator< Message, std::vector< Message * >::iterator > | iterator |
| typedef base_iterator< const Message, std::vector< Message * >::const_iterator > | const_iterator |
Public Member Functions | |
| Messages (const Messages &o) | |
| Messages (Messages &&o) | |
| Messages & | operator= (const Messages &o) |
| Messages & | operator= (Messages &&o) |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| Message & | operator[] (size_t pos) |
| const Message & | operator[] (size_t pos) const |
| bool | empty () const |
| Check if the collection is empty. | |
| size_t | size () const |
| Return the number of messages. | |
| void | append (const Message &msg) |
| Append a copy of the message. | |
| void | append (std::unique_ptr< Message > &&msg) |
| Append a message, taking over its memory management. | |
| void | clear () |
| Remove all messages. | |
| void | print (FILE *out) const |
| Print all the contents of all the messages to an output stream. | |
| unsigned | diff (const Messages &msgs) const |
| Compute the differences between two Messages. More... | |
Protected Attributes | |
| std::vector< Message * > | msgs |
Ordered collection of messages.
This supports many encode/decode operations, that work on group of similar Messages.
| unsigned dballe::Messages::diff | ( | const Messages & | msgs | ) | const |
1.8.9.1