ACE_MEM_SAP_Node Class Reference

#include <MEM_SAP.h>

Collaboration diagram for ACE_MEM_SAP_Node:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_Based_Pointer<
ACE_MEM_SAP_Node
ACE_MEM_SAP_NODE_PTR

Public Member Functions

 ACE_MEM_SAP_Node (size_t cap)
 Initialize the node with its capacity.

size_t size (void) const
 Get the size of the data we hold.

size_t capacity (void) const
 Get the capacity of this block of data.

void * data (void)
 Get the pointer to the block of data we hold.


Public Attributes

size_t capacity_
 The maximum size of this memory block.

size_t size_
 The actualy size used.

ACE_MEM_SAP_NODE_PTR next_

Member Typedef Documentation

typedef ACE_Based_Pointer<ACE_MEM_SAP_Node> ACE_MEM_SAP_Node::ACE_MEM_SAP_NODE_PTR
 

Definition at line 50 of file MEM_SAP.h.


Constructor & Destructor Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_MEM_SAP_Node::ACE_MEM_SAP_Node size_t  cap  ) 
 

Initialize the node with its capacity.

Definition at line 10 of file MEM_SAP.inl.

00011   : capacity_ (cap),
00012     size_ (0),
00013     next_ (0)
00014 {
00015 }


Member Function Documentation

ACE_INLINE size_t ACE_MEM_SAP_Node::capacity void   )  const
 

Get the capacity of this block of data.

Definition at line 24 of file MEM_SAP.inl.

00025 {
00026   return this->capacity_;
00027 }

ACE_INLINE void * ACE_MEM_SAP_Node::data void   ) 
 

Get the pointer to the block of data we hold.

Definition at line 30 of file MEM_SAP.inl.

Referenced by ACE_MEM_IO::send().

00031 {
00032   return  this + 1;
00033 }

ACE_INLINE size_t ACE_MEM_SAP_Node::size void   )  const
 

Get the size of the data we hold.

Definition at line 18 of file MEM_SAP.inl.

Referenced by ACE_Reactive_MEM_IO::get_buf_len(), ACE_MT_MEM_IO::recv_buf(), ACE_MT_MEM_IO::send_buf(), and ACE_Reactive_MEM_IO::send_buf().

00019 {
00020   return this->size_;
00021 }


Member Data Documentation

size_t ACE_MEM_SAP_Node::capacity_
 

The maximum size of this memory block.

Definition at line 65 of file MEM_SAP.h.

ACE_MEM_SAP_NODE_PTR ACE_MEM_SAP_Node::next_
 

Definition at line 70 of file MEM_SAP.h.

Referenced by ACE_MT_MEM_IO::Simple_Queue::read(), and ACE_MT_MEM_IO::Simple_Queue::write().

size_t ACE_MEM_SAP_Node::size_
 

The actualy size used.

Definition at line 68 of file MEM_SAP.h.

Referenced by ACE_MEM_IO::send().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:24:41 2006 for ACE by doxygen 1.3.6