ACE_RMCast::Profile Struct Reference

#include <Protocol.h>

Inheritance diagram for ACE_RMCast::Profile:

Inheritance graph
[legend]
Collaboration diagram for ACE_RMCast::Profile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~Profile ()
Profile_ptr clone ()
u16 id () const
u16 size () const
virtual void serialize_body (ostream &) const =0
virtual void serialize_body (sstream &) const =0

Protected Member Functions

 Profile (u16 id)
 Profile (Header const &h)
virtual Profile_ptr clone_ ()=0
void size (u16 s)
u16 calculate_size ()

Private Member Functions

Profileoperator= (Profile const &)

Private Attributes

Header header_

Friends

ostreamoperator<< (ostream &os, Profile const &p)
sstreamoperator<< (sstream &ss, Profile const &p)

Classes

class  Header

Detailed Description

Definition at line 75 of file Protocol.h.


Constructor & Destructor Documentation

virtual ACE_RMCast::Profile::~Profile (  )  [inline, virtual]

Definition at line 120 of file Protocol.h.

00121     {
00122     }

ACE_RMCast::Profile::Profile ( u16  id  )  [inline, protected]

Definition at line 132 of file Protocol.h.

00133         : header_ (id, 0)
00134     {
00135     }

ACE_RMCast::Profile::Profile ( Header const &  h  )  [inline, protected]

Definition at line 137 of file Protocol.h.

00138         : header_ (h)
00139     {
00140     }


Member Function Documentation

u16 ACE_RMCast::Profile::calculate_size (  )  [inline, protected]

Definition at line 170 of file Protocol.h.

References serialize_body(), and ACE_SizeCDR::total_length().

Referenced by ACE_RMCast::Data::Data(), ACE_RMCast::From::From(), ACE_RMCast::NRTM::insert(), ACE_RMCast::NRTM::map_(), ACE_RMCast::SN::n_(), ACE_RMCast::Part::Part(), ACE_RMCast::Data::size(), and ACE_RMCast::To::To().

00171     {
00172       sstream ss;
00173 
00174       serialize_body (ss);
00175 
00176       return static_cast<u16> (ss.total_length ());
00177     }

Profile_ptr ACE_RMCast::Profile::clone ( void   )  [inline]

Reimplemented in ACE_RMCast::From, ACE_RMCast::To, ACE_RMCast::Data, ACE_RMCast::SN, ACE_RMCast::NRTM, ACE_RMCast::NoData, and ACE_RMCast::Part.

Definition at line 125 of file Protocol.h.

References clone_().

00126     {
00127       Profile_ptr p (clone_ ());
00128       return p;
00129     }

virtual Profile_ptr ACE_RMCast::Profile::clone_ (  )  [protected, pure virtual]

Implemented in ACE_RMCast::From, ACE_RMCast::To, ACE_RMCast::Data, ACE_RMCast::SN, ACE_RMCast::NRTM, ACE_RMCast::NoData, and ACE_RMCast::Part.

Referenced by clone().

u16 ACE_RMCast::Profile::id ( void   )  const [inline]

Definition at line 151 of file Protocol.h.

References header_, and ACE_RMCast::Profile::Header::id().

Referenced by ACE_RMCast::Socket_Impl::recv(), ACE_RMCast::Retransmit::recv(), ACE_RMCast::Reassemble::recv(), ACE_RMCast::Link::recv(), ACE_RMCast::Flow::recv(), ACE_RMCast::Acknowledge::recv(), ACE_RMCast::Socket_Impl::recv_(), ACE_RMCast::Retransmit::send(), ACE_RMCast::Fragment::send(), ACE_RMCast::Flow::send(), ACE_RMCast::Acknowledge::send(), and ACE_RMCast::Socket_Impl::size_().

00152     {
00153       return header_.id ();
00154     }

Profile& ACE_RMCast::Profile::operator= ( Profile const &   )  [private]

virtual void ACE_RMCast::Profile::serialize_body ( sstream  )  const [pure virtual]

Implemented in ACE_RMCast::From, ACE_RMCast::To, ACE_RMCast::Data, ACE_RMCast::SN, ACE_RMCast::NRTM, ACE_RMCast::NoData, and ACE_RMCast::Part.

virtual void ACE_RMCast::Profile::serialize_body ( ostream  )  const [pure virtual]

Implemented in ACE_RMCast::From, ACE_RMCast::To, ACE_RMCast::Data, ACE_RMCast::SN, ACE_RMCast::NRTM, ACE_RMCast::NoData, and ACE_RMCast::Part.

Referenced by calculate_size(), and ACE_RMCast::operator<<().

void ACE_RMCast::Profile::size ( u16  s  )  [inline, protected]

Definition at line 164 of file Protocol.h.

References header_, and ACE_RMCast::Profile::Header::size().

00165     {
00166       header_.size (s);
00167     }

u16 ACE_RMCast::Profile::size ( void   )  const [inline]

Reimplemented in ACE_RMCast::Data.

Definition at line 157 of file Protocol.h.

References header_, and ACE_RMCast::Profile::Header::size().

Referenced by ACE_RMCast::Data::Data(), ACE_RMCast::From::From(), ACE_RMCast::NRTM::insert(), ACE_RMCast::NRTM::map_(), ACE_RMCast::SN::n_(), ACE_RMCast::NoData::NoData(), ACE_RMCast::Part::Part(), ACE_RMCast::Data::size(), and ACE_RMCast::To::To().

00158     {
00159       return header_.size ();
00160     }


Friends And Related Function Documentation

sstream& operator<< ( sstream ss,
Profile const &  p 
) [friend]

Definition at line 230 of file Protocol.h.

00231   {
00232     ss << p.header_;
00233     p.serialize_body (ss);
00234 
00235     return ss;
00236   }

ostream& operator<< ( ostream os,
Profile const &  p 
) [friend]

Definition at line 220 of file Protocol.h.

00221   {
00222     os << p.header_;
00223     p.serialize_body (os);
00224 
00225     return os;
00226   }


Member Data Documentation

Header ACE_RMCast::Profile::header_ [private]

Definition at line 195 of file Protocol.h.

Referenced by id(), ACE_RMCast::operator<<(), and size().


The documentation for this struct was generated from the following file:
Generated on Tue Feb 2 17:36:29 2010 for ACE_RMCast by  doxygen 1.4.7