ircproxy The Ultimate Cyborg |
#include <MessageIn.h>
Definition at line 44 of file MessageIn.h.
Public Member Functions | |
Part (void) | |
Construct an uninitialized Part. | |
Part (char const *start, char const *end) | |
Construct a Part with start start and end end. | |
void | set (char const *start, char const *end) |
Initialize the Part. | |
void | clear (void) |
Initialize an empty Part. | |
char const * | start (void) const |
Return the start of the Part. | |
char const * | end (void) const |
Return the end (exclusive) of the Part. | |
size_t | len (void) const |
The size of the Part (end minus start). | |
Private Attributes | |
char const * | M_ptr |
Pointer to the start of the Part. | |
size_t | M_len |
The number of characters that belong to this Part. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, Part const &part) |
For debugging purposes. Write part to os. |
MessageIn::Part::Part | ( | void | ) | [inline] |
MessageIn::Part::Part | ( | char const * | start, | |
char const * | end | |||
) | [inline] |
void MessageIn::Part::set | ( | char const * | start, | |
char const * | end | |||
) | [inline] |
Initialize the Part.
Definition at line 54 of file MessageIn.h.
References end(), M_len, M_ptr, and start().
Referenced by MessageIn::init(), and MessageIn::params().
void MessageIn::Part::clear | ( | void | ) | [inline] |
Initialize an empty Part.
Definition at line 56 of file MessageIn.h.
References M_ptr.
Referenced by MessageIn::init(), and MessageIn::params().
00056 { M_ptr = NULL; }
char const* MessageIn::Part::start | ( | void | ) | const [inline] |
Return the start of the Part.
Definition at line 58 of file MessageIn.h.
References M_ptr.
Referenced by MessageIn::command_str(), MessageIn::has_prefix(), MessageIn::is_numeric(), MessageIn::prefix_str(), set(), JustInTimeMsgPart::value(), and JustInTimeMsgPart::write_to().
00058 { return M_ptr; }
char const* MessageIn::Part::end | ( | void | ) | const [inline] |
size_t MessageIn::Part::len | ( | void | ) | const [inline] |
The size of the Part (end minus start).
Definition at line 62 of file MessageIn.h.
References M_len.
Referenced by MessageIn::command_str(), MessageIn::init(), MessageIn::prefix_str(), JustInTimeMsgPart::value(), and JustInTimeMsgPart::write_to().
00062 { return M_len; }
std::ostream& operator<< | ( | std::ostream & | os, | |
Part const & | part | |||
) | [friend] |
char const* MessageIn::Part::M_ptr [private] |
size_t MessageIn::Part::M_len [private] |
Copyright © 2005-2007 Carlo Wood. All rights reserved. |
---|