Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes

ACE_RMCast::SN Struct Reference

#include <Protocol.h>

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

List of all members.

Public Member Functions

 SN (Header const &h, istream &is)
 SN (u64 n)
SN_ptr clone ()
u64 num () const
virtual void serialize_body (ostream &os) const
virtual void serialize_body (sstream &ss) const

Static Public Attributes

static u16 const id = 0x0004

Protected Member Functions

virtual Profile_ptr clone_ ()
 SN (SN const &sn)

Private Attributes

u64 n_

Detailed Description

Definition at line 685 of file Protocol.h.


Constructor & Destructor Documentation

ACE_RMCast::SN::SN ( Header const &  h,
istream is 
) [inline]

Definition at line 690 of file Protocol.h.

        : Profile (h)
    {
      is >> n_;
    }

ACE_RMCast::SN::SN ( u64  n  )  [inline]

Definition at line 696 of file Protocol.h.

        : Profile (id), n_ (n)
    {
      size (calculate_size ());
    }

ACE_RMCast::SN::SN ( SN const &  sn  )  [inline, protected]

Definition at line 716 of file Protocol.h.

        : Profile (sn),
          n_ (sn.n_)
    {
    }


Member Function Documentation

SN_ptr ACE_RMCast::SN::clone ( void   )  [inline]

Reimplemented from ACE_RMCast::Profile.

Definition at line 703 of file Protocol.h.

    {
      return SN_ptr (clone_ ());
    }

virtual Profile_ptr ACE_RMCast::SN::clone_ (  )  [inline, protected, virtual]

Implements ACE_RMCast::Profile.

Definition at line 710 of file Protocol.h.

    {
      Profile_ptr p (new SN (*this));
      return p;
    }

u64 ACE_RMCast::SN::num (  )  const [inline]

Definition at line 724 of file Protocol.h.

    {
      return n_;
    }

virtual void ACE_RMCast::SN::serialize_body ( ostream os  )  const [inline, virtual]

Implements ACE_RMCast::Profile.

Definition at line 731 of file Protocol.h.

    {
      os << n_;
    }

virtual void ACE_RMCast::SN::serialize_body ( sstream ss  )  const [inline, virtual]

Implements ACE_RMCast::Profile.

Definition at line 737 of file Protocol.h.

    {
      ss << n_;
    }


Member Data Documentation

u16 const ACE_RMCast::SN::id = 0x0004 [static]

Definition at line 687 of file Protocol.h.

Definition at line 743 of file Protocol.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines