class MbPList


Inheritance:


Public Fields

PFSTRUCT_DECLARE

Public Methods

void append(void * ptr)
void copy(const MbPList &pl)
Copy a PList
int find(const void *ptr)
int getLength()
void insert(void *ptr, int addBefore)
Inserts given pointer in list before pointer with given index
MbPList(const MbPList &pl)
Constructor for copying
MbPList(int initSize)
Constructor allocates enough room for the given number of pointers
int operator !=(const MbPList &pl)
MbPList& operator =(const MbPList &pl)
int operator ==(const MbPList &pl)
equality tests
void*& operator [](int i)
void remove(int which)
void truncate(int start)
~MbPList()

Private Fields

int nPtrs
void** ptrs
int ptrsSize

Private Methods

int compare(const MbPList &pl)
NOTE: this must be called only if the number of elements in the two lists is the same, otherwise badness could result
void expand(int size)
void grow(int max)
There are three(!) methods to expand the list
void setSize(int size)

Documentation

MbPList(int initSize)
Constructor allocates enough room for the given number of pointers

MbPList(const MbPList &pl)
Constructor for copying

~MbPList()

void append(void * ptr)

int find(const void *ptr)

void insert(void *ptr, int addBefore)
Inserts given pointer in list before pointer with given index

void remove(int which)

int getLength()

void truncate(int start)

void*& operator [](int i)

void copy(const MbPList &pl)
Copy a PList

MbPList& operator =(const MbPList &pl)

int operator ==(const MbPList &pl)
equality tests

int operator !=(const MbPList &pl)

PFSTRUCT_DECLARE

int compare(const MbPList &pl)
NOTE: this must be called only if the number of elements in the two lists is the same, otherwise badness could result

void** ptrs

int nPtrs

int ptrsSize

void grow(int max)
There are three(!) methods to expand the list. grow() is used when space is dynamically created, and needs to be initialized to NULL:

void setSize(int size)

void expand(int size)


Direct child classes:
VsStatementList
VsExprList
MwParamList
MwNList
MwFieldList
MbStringList
FaceList

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de