Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

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 Methods

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

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

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

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


Public Attributes

size_t capacity_
 The maximum size of this memory block. More...

size_t size_
 The actualy size used. More...

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 45 of file MEM_SAP.h.


Constructor & Destructor Documentation

ASYS_INLINE ACE_MEM_SAP_Node::ACE_MEM_SAP_Node size_t    cap
 

Initialize the node with its capacity.

Definition at line 8 of file MEM_SAP.i.

00009   : capacity_ (cap),
00010     size_ (0),
00011     next_ (0)
00012 {
00013 }


Member Function Documentation

ASYS_INLINE size_t ACE_MEM_SAP_Node::capacity void    const
 

Get the capacity of this block of data.

Definition at line 22 of file MEM_SAP.i.

References capacity_.

00023 {
00024   return this->capacity_;
00025 }

ASYS_INLINE void * ACE_MEM_SAP_Node::data void   
 

Get the pointer to the block of data we hold.

Definition at line 28 of file MEM_SAP.i.

Referenced by ACE_MEM_IO::send.

00029 {
00030   return  this + 1;
00031 }

ASYS_INLINE size_t ACE_MEM_SAP_Node::size void    const
 

Get the size of the data we hold.

Definition at line 16 of file MEM_SAP.i.

References size_.

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.

00017 {
00018   return this->size_;
00019 }


Member Data Documentation

size_t ACE_MEM_SAP_Node::capacity_
 

The maximum size of this memory block.

Definition at line 60 of file MEM_SAP.h.

Referenced by capacity.

ACE_MEM_SAP_NODE_PTR ACE_MEM_SAP_Node::next_
 

Definition at line 65 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 63 of file MEM_SAP.h.

Referenced by ACE_MEM_IO::send, and size.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:50:21 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002