#include <Protocol.h>
Public Types | |
typedef Profiles::const_iterator | ProfileIterator |
Public Member Functions | |
Message () | |
Message_ptr | clone () |
bool | add (Profile_ptr p) |
void | replace (Profile_ptr p) |
void | remove (u16 id) |
Profile const * | find (u16 id) const |
ProfileIterator | begin () const |
size_t | size () const |
Protected Member Functions | |
Message (Message const &m) | |
Private Types | |
typedef ACE_Hash_Map_Manager < u16, Profile_ptr, ACE_Null_Mutex > | Profiles |
Private Member Functions | |
Message & | operator= (Message const &) |
Private Attributes | |
Profiles | profiles_ |
Friends | |
ostream & | operator<< (ostream &os, Message const &m) |
Definition at line 248 of file Protocol.h.
Definition at line 324 of file Protocol.h.
typedef ACE_Hash_Map_Manager<u16, Profile_ptr, ACE_Null_Mutex> ACE_RMCast::Message::Profiles [private] |
Definition at line 252 of file Protocol.h.
ACE_RMCast::Message::Message | ( | ) | [inline] |
Definition at line 255 of file Protocol.h.
: profiles_ (4) { }
ACE_RMCast::Message::Message | ( | Message const & | m | ) | [inline, protected] |
Definition at line 268 of file Protocol.h.
: profiles_ (4) { for (Profiles::const_iterator i (m.profiles_); !i.done (); i.advance ()) { // Shallow copy of profiles. This implies that profiles are not // modified as they go up/down the stack. // profiles_.bind ((*i).ext_id_, (*i).int_id_); } }
bool ACE_RMCast::Message::add | ( | Profile_ptr | p | ) | [inline] |
ProfileIterator ACE_RMCast::Message::begin | ( | void | ) | const [inline] |
Definition at line 327 of file Protocol.h.
{ return ProfileIterator (profiles_); }
Message_ptr ACE_RMCast::Message::clone | ( | void | ) | [inline] |
Definition at line 261 of file Protocol.h.
{ Message_ptr cloned (new Message (*this)); return cloned; }
Definition at line 313 of file Protocol.h.
{ Profiles::ENTRY* e = 0; if (profiles_.find (id, e) == -1) return 0; return e->int_id_.get (); }
void ACE_RMCast::Message::remove | ( | u16 | id | ) | [inline] |
Definition at line 307 of file Protocol.h.
void ACE_RMCast::Message::replace | ( | Profile_ptr | p | ) | [inline] |
Definition at line 301 of file Protocol.h.
size_t ACE_RMCast::Message::size | ( | void | ) | const [inline] |
Definition at line 334 of file Protocol.h.
{ sstream ss; u32 s (0); ss << s; for (Profiles::const_iterator i (profiles_); !i.done (); i.advance ()) { ss << *((*i).int_id_); } return ss.total_length (); }
Definition at line 352 of file Protocol.h.
{ u32 s (m.size ()); os << s; for (Profiles::const_iterator i (m.profiles_); !i.done (); i.advance ()) { os << *((*i).int_id_); } return os; }
Profiles ACE_RMCast::Message::profiles_ [private] |
Definition at line 367 of file Protocol.h.