Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_ByteArray Class Reference

#include <bytearray.h>

List of all members.

Public Member Functions

 CL_ByteArray ()
 Construction:.
 CL_ByteArray (const CL_ByteArray &copy)
 CL_ByteArray (int size)
 ~CL_ByteArray ()
char * get_data ()
 Attributes:.
const char * get_data () const
int get_size () const
int get_capacity () const
char & operator[] (int i)
const char & operator[] (int i) const
char & operator[] (unsigned int i)
const char & operator[] (unsigned int i) const
CL_ByteArrayoperator= (const CL_ByteArray &copy)
 Operations:.
void set_size (int size)
void set_capacity (int capacity)

Private Attributes

char * data
 Implementation:.
int size
int allocated_size


Constructor & Destructor Documentation

CL_ByteArray::CL_ByteArray  ) 
 

Construction:.

Definition at line 36 of file bytearray.cpp.

CL_ByteArray::CL_ByteArray const CL_ByteArray copy  ) 
 

Definition at line 40 of file bytearray.cpp.

References data, set_size(), and size.

CL_ByteArray::CL_ByteArray int  size  ) 
 

Definition at line 46 of file bytearray.cpp.

References set_size().

CL_ByteArray::~CL_ByteArray  ) 
 

Definition at line 51 of file bytearray.cpp.

References data.


Member Function Documentation

int CL_ByteArray::get_capacity  )  const
 

Definition at line 74 of file bytearray.cpp.

References allocated_size.

Referenced by CL_BufferedStringBuffer::add_string().

const char * CL_ByteArray::get_data  )  const
 

Definition at line 64 of file bytearray.cpp.

References data.

char * CL_ByteArray::get_data  ) 
 

Attributes:.

Definition at line 59 of file bytearray.cpp.

References data.

Referenced by CL_BufferedStringBuffer::add_string(), CL_DNSResourceRecord::find_domain_name_end(), CL_DNSResourceRecord::get_class(), CL_DNSResourceRecord::get_mx_preference(), CL_DNSResourceRecord::get_soa_expire(), CL_DNSResourceRecord::get_soa_minimum(), CL_DNSResourceRecord::get_soa_refresh(), CL_DNSResourceRecord::get_soa_retry(), CL_DNSResourceRecord::get_soa_serial(), CL_DNSResourceRecord::get_ttl(), CL_DNSResourceRecord::get_type(), CL_DNSResourceRecord::get_wks_address(), CL_DNSResourceRecord::get_wks_bit_map(), CL_DNSResourceRecord::get_wks_protocol(), CL_File::peek(), CL_DNSResolver::perform_query(), CL_File::read(), and CL_DNSResourceRecord::read_domain_name().

int CL_ByteArray::get_size  )  const
 

Definition at line 69 of file bytearray.cpp.

References size.

Referenced by CL_BufferedStringBuffer::add_string(), CL_DNSResourceRecord::find_domain_name_end(), CL_DNSResourceRecord::get_class(), CL_DNSResourceRecord::get_mx_preference(), CL_DNSResourceRecord::get_soa_expire(), CL_DNSResourceRecord::get_soa_minimum(), CL_DNSResourceRecord::get_soa_refresh(), CL_DNSResourceRecord::get_soa_retry(), CL_DNSResourceRecord::get_soa_serial(), CL_DNSResourceRecord::get_ttl(), CL_DNSResourceRecord::get_type(), CL_DNSResourceRecord::get_wks_address(), CL_DNSResourceRecord::get_wks_protocol(), CL_File::peek(), CL_DNSResolver::perform_query(), CL_File::read(), and CL_DNSResourceRecord::read_domain_name().

CL_ByteArray & CL_ByteArray::operator= const CL_ByteArray copy  ) 
 

Operations:.

Definition at line 102 of file bytearray.cpp.

References data, set_size(), and size.

const char & CL_ByteArray::operator[] unsigned int  i  )  const
 

Definition at line 94 of file bytearray.cpp.

References data.

char & CL_ByteArray::operator[] unsigned int  i  ) 
 

Definition at line 89 of file bytearray.cpp.

References data.

const char & CL_ByteArray::operator[] int  i  )  const
 

Definition at line 84 of file bytearray.cpp.

References data.

char & CL_ByteArray::operator[] int  i  ) 
 

Definition at line 79 of file bytearray.cpp.

References data.

void CL_ByteArray::set_capacity int  capacity  ) 
 

Definition at line 130 of file bytearray.cpp.

References allocated_size, data, and size.

Referenced by CL_BufferedStringBuffer::add_string().

void CL_ByteArray::set_size int  size  ) 
 

Definition at line 112 of file bytearray.cpp.

References allocated_size, data, and size.

Referenced by CL_BufferedStringBuffer::add_string(), CL_ByteArray(), CL_DBCommand::get_blob(), operator=(), CL_File::peek(), and CL_File::read().


Member Data Documentation

int CL_ByteArray::allocated_size [private]
 

Definition at line 76 of file bytearray.h.

Referenced by get_capacity(), set_capacity(), and set_size().

char* CL_ByteArray::data [private]
 

Implementation:.

Definition at line 72 of file bytearray.h.

Referenced by CL_ByteArray(), get_data(), operator=(), operator[](), set_capacity(), set_size(), and ~CL_ByteArray().

int CL_ByteArray::size [private]
 

Definition at line 74 of file bytearray.h.

Referenced by CL_ByteArray(), get_size(), operator=(), set_capacity(), and set_size().


The documentation for this class was generated from the following files:
Generated on Sat Feb 19 22:51:17 2005 for npcore by  doxygen 1.4.1