|
VMime
|
#include <messageIdSequence.hpp>


Protected Member Functions | |
| void | parseImpl (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
| void | generateImpl (const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
Protected Member Functions inherited from component | |
| void | setParsedBounds (const size_t start, const size_t end) |
| virtual void | parseImpl (const parsingContext &ctx, shared_ptr< utility::parserInputStreamAdapter > parser, const size_t position, const size_t end, size_t *newPosition=NULL) |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
A list of message identifiers (basic type).
| messageIdSequence | ( | const messageIdSequence & | midSeq | ) |
References messageIdSequence::copyFrom(), and vmime::dynamicCast().
| ~messageIdSequence | ( | ) |
References messageIdSequence::removeAllMessageIds().
| void appendMessageId | ( | shared_ptr< messageId > | mid | ) |
Add a message-id at the end of the list.
| mid | message-id to append |
References vmime::dynamicCast().
|
virtual |
Clone this component.
Implements component.
References vmime::dynamicCast().
Replace data in this component by data in other component.
Both components must be of the same type.
| std::bad_cast_exception | if the components are not of the same (dynamic) type |
| other | other component to copy data from |
Implements component.
References vmime::clone(), vmime::dynamicCast(), and messageIdSequence::removeAllMessageIds().
Referenced by messageIdSequence::messageIdSequence(), and messageIdSequence::operator=().
|
protectedvirtual |
Implements component.
References vmime::dynamicCast().
|
virtual |
Return the list of children of this component.
Implements component.
References vmime::copy_vector(), and vmime::dynamicCast().
| const shared_ptr< messageId > getMessageIdAt | ( | const size_t | pos | ) |
Return the message-id at the specified position.
| pos | position |
References vmime::dynamicCast().
Return the message-id at the specified position.
| pos | position |
References vmime::dynamicCast().
| size_t getMessageIdCount | ( | ) | const |
Return the number of message-ides in the list.
| const std::vector< shared_ptr< messageId > > getMessageIdList | ( | ) |
Return the message-id list.
| const std::vector< shared_ptr< const messageId > > getMessageIdList | ( | ) | const |
| void insertMessageIdAfter | ( | const size_t | pos, |
| shared_ptr< messageId > | mid | ||
| ) |
Insert a new message-id after the specified position.
| pos | position of the message-id before the new message-id |
| mid | message-id to insert |
References vmime::dynamicCast().
| void insertMessageIdAfter | ( | shared_ptr< messageId > | afterMid, |
| shared_ptr< messageId > | mid | ||
| ) |
Insert a new message-id after the specified message-id.
| afterMid | message-id after which the new message-id will be inserted |
| mid | message-id to insert |
| exceptions::no_such_message_id | if the message-id is not in the list |
References vmime::dynamicCast().
| void insertMessageIdBefore | ( | const size_t | pos, |
| shared_ptr< messageId > | mid | ||
| ) |
Insert a new message-id before the specified position.
| pos | position at which to insert the new message-id (0 to insert at the beginning of the list) |
| mid | message-id to insert |
References vmime::dynamicCast().
| void insertMessageIdBefore | ( | shared_ptr< messageId > | beforeMid, |
| shared_ptr< messageId > | mid | ||
| ) |
Insert a new message-id before the specified message-id.
| beforeMid | message-id before which the new message-id will be inserted |
| mid | message-id to insert |
| exceptions::no_such_messageid | if the message-id is not in the list |
References vmime::dynamicCast().
| bool isEmpty | ( | ) | const |
Tests whether the list of message-ides is empty.
| messageIdSequence & operator= | ( | const messageIdSequence & | other | ) |
References messageIdSequence::copyFrom().
|
protectedvirtual |
Reimplemented from component.
References vmime::dynamicCast(), vmime::end(), messageId::parseNext(), messageIdSequence::removeAllMessageIds(), and component::setParsedBounds().
| void removeAllMessageIds | ( | ) |
Remove all message-ids from the list.
Referenced by messageIdSequence::copyFrom(), messageIdSequence::parseImpl(), and messageIdSequence::~messageIdSequence().
Remove the message-id at the specified position.
| pos | position of the message-id to remove |
References vmime::dynamicCast().
| void removeMessageId | ( | shared_ptr< messageId > | mid | ) |
Remove the specified message-id from the list.
| mid | message-id to remove |
| exceptions::no_such_message_id | if the message-id is not in the list |
References vmime::dynamicCast().