HPGCC3 Documentation 3.0 R003

MemBlock Class Reference

#include <memblock.h>

Inheritance diagram for MemBlock:
MemFrag gString

Public Member Functions

int WastedSpace ()
BOOL Append (int bytes, char *Data=NULL)
void Shrink (int bytes)
BOOL Insert (int offset, int bytes, char *Data=NULL)
void Delete (int offset, int bytes)
char * GetPtr (int offset)
int GetLowerLimit (int offset)
int GetUpperLimit (int offset)
void MemMove (int destoffset, int srcoffset, int bytes)
void MemMove (int destoffset, MemBlock &src, int srcoffset, int bytes)
void MemMove (int destoffset, char *src, int bytes)
void MemMove (char *dest, int srcoffset, int bytes)
 MemBlock ()
 ~MemBlock ()

Data Fields

int TotalUsed

Protected Member Functions

MemFragGetFrag (int offset)
void ShiftOffset (MemFrag *block, int shift)
void Consolidate (MemFrag *block)
void MemMoveUp (int destoffset, char *src, int bytes)
void MemMoveDn (int destoffset, char *src, int bytes)

Protected Attributes

MemFragCurrent
MemFragLast

Detailed Description

Definition at line 24 of file memblock.h.


Constructor & Destructor Documentation

MemBlock::MemBlock ( )
MemBlock::~MemBlock ( )

Member Function Documentation

BOOL MemBlock::Append ( int  bytes,
char *  Data = NULL 
)
void MemBlock::Consolidate ( MemFrag block) [protected]
void MemBlock::Delete ( int  offset,
int  bytes 
)
MemFrag* MemBlock::GetFrag ( int  offset) [protected]

Referenced by GetPtr().

int MemBlock::GetLowerLimit ( int  offset)
char* MemBlock::GetPtr ( int  offset) [inline]

Definition at line 46 of file memblock.h.

References Current, MemFrag::Data, GetFrag(), MemFrag::Offset, and MemFrag::Used.

Referenced by gString::GetChar().

int MemBlock::GetUpperLimit ( int  offset)
BOOL MemBlock::Insert ( int  offset,
int  bytes,
char *  Data = NULL 
)
void MemBlock::MemMove ( int  destoffset,
char *  src,
int  bytes 
)
void MemBlock::MemMove ( char *  dest,
int  srcoffset,
int  bytes 
)
void MemBlock::MemMove ( int  destoffset,
MemBlock src,
int  srcoffset,
int  bytes 
)
void MemBlock::MemMove ( int  destoffset,
int  srcoffset,
int  bytes 
)
void MemBlock::MemMoveDn ( int  destoffset,
char *  src,
int  bytes 
) [protected]
void MemBlock::MemMoveUp ( int  destoffset,
char *  src,
int  bytes 
) [protected]
void MemBlock::ShiftOffset ( MemFrag block,
int  shift 
) [protected]
void MemBlock::Shrink ( int  bytes)
int MemBlock::WastedSpace ( )

Field Documentation

MemFrag* MemBlock::Current [protected]

Definition at line 26 of file memblock.h.

Referenced by gString::GetChar(), and GetPtr().

MemFrag * MemBlock::Last [protected]

Definition at line 26 of file memblock.h.


The documentation for this class was generated from the following file: