Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Buffer Class Reference

#include <Buffer.h>

Inheritance diagram for Buffer:

Object List of all members.

Public Methods

 Buffer ()
 Buffer (uint len, uchar *buff)
 ~Buffer ()
void Check (int size)
void clear ()
void setCrt (int size)
void setId (uint id)
uint getId ()
uchar operator[] (int n)
void buffer (uint &len, uchar *&buff)
 operator uchar * ()
Buffer & operator<< (uchar n)
Buffer & operator>> (uchar &n)
Buffer & operator<< (int n)
Buffer & operator>> (int &n)
Buffer & operator<< (uint n)
Buffer & operator>> (uint &n)
virtual int compare (Object *)
virtual ObjectCopy ()

Private Attributes

int bufSize
ucharbufStart
ucharbufCrt
ucharbufMax

Constructor & Destructor Documentation

Buffer::Buffer  
 

Definition at line 22 of file Buffer.cpp.

References bufCrt, bufMax, bufSize, bufStart, setId(), SZ_UINT, uchar, UDP_MAXSIZE, and uint.

Buffer::Buffer uint    len,
uchar   buff
 

Definition at line 34 of file Buffer.cpp.

References bufCrt, bufMax, bufSize, bufStart, setId(), SZ_UINT, uchar, and uint.

Buffer::~Buffer  
 

Definition at line 47 of file Buffer.cpp.

References bufStart.


Member Function Documentation

void Buffer::buffer uint   len,
uchar *&    buff
 

Definition at line 110 of file Buffer.cpp.

References bufCrt, bufStart, SZ_UINT, uchar, and uint.

Referenced by PostOffice::_send(), PostOffice::inbox(), UDPSocket::sendData(), and UDPSocket::waitData().

void Buffer::Check int    size
 

Definition at line 72 of file Buffer.cpp.

References bufCrt, bufMax, and DBUG_PRINT.

Referenced by operator<<().

void Buffer::clear  
 

Definition at line 82 of file Buffer.cpp.

References bufCrt, bufMax, bufSize, bufStart, setId(), and SZ_UINT.

Referenced by UDPSocket::waitData().

virtual int Object::compare Object   [inline, virtual, inherited]
 

To ensure a consistent comparison interface and to allow comparison of all kinds of different objects, we will define a comparison functions.

Definition at line 31 of file Object.h.

virtual Object* Object::Copy   [inline, virtual, inherited]
 

To allow a deep copy of data structures we will define a standard interface... This member will return a copy of itself, freshly allocated and deep copied.

Reimplemented in List.

Definition at line 37 of file Object.h.

Referenced by List::Copy(), and List::operator=().

uint Buffer::getId  
 

Definition at line 61 of file Buffer.cpp.

References bufStart, SZ_UINT, and uint.

Referenced by UDPSocket::sendData(), UDPSocket::waitData(), and UDPConfirm::waitData().

Buffer::operator uchar *  
 

Definition at line 104 of file Buffer.cpp.

References bufStart, and SZ_UINT.

Buffer & Buffer::operator<< uint    n
 

Definition at line 157 of file Buffer.cpp.

References bufCrt, Check(), and uint.

Buffer & Buffer::operator<< int    n
 

Definition at line 137 of file Buffer.cpp.

References bufCrt, and Check().

Buffer & Buffer::operator<< uchar    n
 

Definition at line 117 of file Buffer.cpp.

References bufCrt, Check(), and uchar.

Buffer & Buffer::operator>> uint   n
 

Definition at line 168 of file Buffer.cpp.

References bufCrt, and uint.

Buffer & Buffer::operator>> int &    n
 

Definition at line 148 of file Buffer.cpp.

References bufCrt.

Buffer & Buffer::operator>> uchar   n
 

Definition at line 128 of file Buffer.cpp.

References bufCrt, and uchar.

uchar Buffer::operator[] int    n
 

Definition at line 98 of file Buffer.cpp.

References bufStart, SZ_UINT, and uchar.

void Buffer::setCrt int    size
 

Definition at line 92 of file Buffer.cpp.

References bufCrt, bufStart, and SZ_UINT.

Referenced by PostOffice::_send(), and UDPSocket::waitData().

void Buffer::setId uint    id
 

Definition at line 54 of file Buffer.cpp.

References bufStart, SZ_UINT, and uint.

Referenced by Buffer(), clear(), UDPConfirm::sendConfirm(), UDPConfirm::sendItem(), and UDPConfirm::sendStop().


Member Data Documentation

uchar* Buffer::bufCrt [private]
 

Definition at line 22 of file Buffer.h.

Referenced by buffer(), Buffer(), Check(), clear(), operator<<(), operator>>(), and setCrt().

uchar* Buffer::bufMax [private]
 

Definition at line 23 of file Buffer.h.

Referenced by Buffer(), Check(), and clear().

int Buffer::bufSize [private]
 

Definition at line 20 of file Buffer.h.

Referenced by Buffer(), and clear().

uchar* Buffer::bufStart [private]
 

Definition at line 21 of file Buffer.h.

Referenced by buffer(), Buffer(), clear(), getId(), operator uchar *(), operator[](), setCrt(), setId(), and ~Buffer().


The documentation for this class was generated from the following files:
Generated on Mon Nov 25 12:46:37 2002 for qadpz by doxygen1.2.18