ACE_RMCast::Data Struct Reference

#include <Protocol.h>

Inheritance diagram for ACE_RMCast::Data:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~Data ()
 Data (Header const &h, istream &is)
 Data (void const *buf, size_t s, size_t capacity=0)
Data_ptr clone ()
char const * buf () const
char * buf ()
size_t size () const
void size (size_t s)
size_t capacity () const
virtual void serialize_body (ostream &os) const
virtual void serialize_body (sstream &ss) const

Static Public Attributes

u16 const  id = 0x0003

Protected Member Functions

virtual Profile_ptr clone_ ()
 Data (Data const &d)

Private Attributes

char * buf_
size_t size_
size_t capacity_

Constructor & Destructor Documentation

virtual ACE_RMCast::Data::~Data  )  [inline, virtual]
 

Definition at line 549 of file Protocol.h.

00550         :
00551     virtual
00552     ~Data ()
00553     {
      if (buf_)

ACE_RMCast::Data::Data Header const &  h,
istream is
[inline]
 

Definition at line 555 of file Protocol.h.

00559         : Profile (h),
00560           buf_ (0),
00561           size_ (h.size ()),
00562           capacity_ (size_)
00563     {
00564       if (size_)
00565       {
00566         buf_ = reinterpret_cast<char*> (operator new (capacity_));

ACE_RMCast::Data::Data void const *  buf,
size_t  s,
size_t  capacity = 0
[inline]
 

Definition at line 568 of file Protocol.h.

00572         : Profile (id),
00573           buf_ (0),
00574           size_ (s),
00575           capacity_ (capacity < size_ ? size_ : capacity)
00576     {
00577       if (size_)
00578       {
00579         buf_ = reinterpret_cast<char*> (operator new (capacity_));
00580         ACE_OS::memcpy (buf_, buf, size_);
00581       }

ACE_RMCast::Data::Data Data const &  d  )  [inline, protected]
 

Definition at line 596 of file Protocol.h.

00600         : Profile (d),
00601           buf_ (0),
00602           size_ (d.size_),
00603           capacity_ (d.capacity_)
00604     {
00605       if (size_)
00606       {
00607         buf_ = reinterpret_cast<char*> (operator new (capacity_));
00608         ACE_OS::memcpy (buf_, d.buf_, size_);
00609       }


Member Function Documentation

char* ACE_RMCast::Data::buf void   )  [inline]
 

Definition at line 619 of file Protocol.h.

00623     {

char const* ACE_RMCast::Data::buf void   )  const [inline]
 

Definition at line 613 of file Protocol.h.

Referenced by ACE_RMCast::Reassemble::recv(), ACE_RMCast::Socket_Impl::recv_(), and ACE_RMCast::Fragment::send().

00614         :
00615     char const*
00616     buf () const
    {

size_t ACE_RMCast::Data::capacity void   )  const [inline]
 

Definition at line 642 of file Protocol.h.

00646     {

Data_ptr ACE_RMCast::Data::clone void   )  [inline]
 

Reimplemented from ACE_RMCast::Profile.

Definition at line 584 of file Protocol.h.

00588     {

virtual Profile_ptr ACE_RMCast::Data::clone_  )  [inline, protected, virtual]
 

Implements ACE_RMCast::Profile.

Definition at line 591 of file Protocol.h.

References ACE_RMCast::Profile_ptr.

00592            :
00593     virtual Profile_ptr
00594     clone_ ()
    {

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

Implements ACE_RMCast::Profile.

Definition at line 655 of file Protocol.h.

00659     {

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

Implements ACE_RMCast::Profile.

Definition at line 649 of file Protocol.h.

References ACE_RMCast::ostream, and ACE_OutputCDR::write_char_array().

00650         :
00651     virtual void
00652     serialize_body (ostream& os) const
    {

void ACE_RMCast::Data::size size_t  s  )  [inline]
 

Definition at line 631 of file Protocol.h.

00635     {
00636       if (s > capacity_)
00637         ACE_OS::abort ();
00638 
00639       size_ = s;

size_t ACE_RMCast::Data::size void   )  const [inline]
 

Reimplemented from ACE_RMCast::Profile.

Definition at line 625 of file Protocol.h.

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

00629     {


Member Data Documentation

char* ACE_RMCast::Data::buf_ [private]
 

Definition at line 661 of file Protocol.h.

size_t ACE_RMCast::Data::capacity_ [private]
 

Definition at line 663 of file Protocol.h.

u16 const ACE_RMCast::Data::id = 0x0003 [static]
 

Definition at line 11 of file Protocol.cpp.

size_t ACE_RMCast::Data::size_ [private]
 

Definition at line 662 of file Protocol.h.


The documentation for this struct was generated from the following files:
Generated on Thu Nov 9 11:41:14 2006 for ACE_RMCast by doxygen 1.3.6