GenericGrowableArray Class Reference

#include <growableArray.hpp>

Inheritance diagram for GenericGrowableArray:

Inheritance graph
[legend]
Collaboration diagram for GenericGrowableArray:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void clear ()
int length () const
int capacity () const
bool isEmpty () const
bool nonEmpty () const
bool isFull () const
void ** data_addr () const
void print_short ()
void print ()

Protected Member Functions

void grow (int j)
bool raw_contains (const void *p) const
int raw_find (const void *p) const
int raw_find (void *token, growableArrayFindFn f) const
void raw_remove (const void *p)
void raw_apply (voidDoFn f) const
void * raw_at_grow (int i, const void *fill)
void raw_at_put_grow (int i, const void *p, const void *fill)
void raw_appendAll (GenericGrowableArray *l)
GenericGrowableArrayraw_copy () const
void raw_sort (int f(const void *, const void *))
 GenericGrowableArray (int initial_size, bool on_C_heap=false)
 GenericGrowableArray (int initial_size, int initial_len, void *filler, bool on_C_heap=false)

Protected Attributes

int len
int max
void ** data
bool on_C_heap

Detailed Description

Definition at line 29 of file growableArray.hpp.


Constructor & Destructor Documentation

GenericGrowableArray::GenericGrowableArray ( int  initial_size,
bool  on_C_heap = false 
) [protected]

Definition at line 27 of file growableArray.cpp.

References AllocateHeap(), assert, data, len, max, NEW_RESOURCE_ARRAY, and on_C_heap.

Referenced by raw_copy().

Here is the call graph for this function:

GenericGrowableArray::GenericGrowableArray ( int  initial_size,
int  initial_len,
void *  filler,
bool  on_C_heap = false 
) [protected]

Definition at line 39 of file growableArray.cpp.

References AllocateHeap(), assert, data, len, max, NEW_RESOURCE_ARRAY, and on_C_heap.

Here is the call graph for this function:


Member Function Documentation

int GenericGrowableArray::capacity (  )  const [inline]

Definition at line 55 of file growableArray.hpp.

References max.

void GenericGrowableArray::clear (  )  [inline]

Definition at line 53 of file growableArray.hpp.

References len.

void** GenericGrowableArray::data_addr (  )  const [inline]

Definition at line 59 of file growableArray.hpp.

References data.

void GenericGrowableArray::grow ( int  j  )  [protected]

Definition at line 52 of file growableArray.cpp.

References AllocateHeap(), data, fatal, len, max, NEW_RESOURCE_ARRAY, and on_C_heap.

Referenced by GrowableArray< messageNode * >::append(), raw_at_grow(), and raw_at_put_grow().

Here is the call graph for this function:

bool GenericGrowableArray::isEmpty (  )  const [inline]

Definition at line 56 of file growableArray.hpp.

References len.

Referenced by create_rscope().

bool GenericGrowableArray::isFull (  )  const [inline]

Definition at line 58 of file growableArray.hpp.

References len, and max.

int GenericGrowableArray::length (  )  const [inline]

Definition at line 54 of file growableArray.hpp.

References len.

Referenced by MethodPrettyPrinter::_size(), StackChunkBuilder::append(), byteArrayPrettyPrintStream::asByteArray(), create_rscope(), Processes::deoptimize_wrt(), TokenStream::eos(), interpretedVFrame::expression_stack(), Reflection::find_change_for(), MethodPrinterClosure::indent(), Reflection::invalidate_classes(), codeNode::last_statement(), Reflection::needs_schema_change(), oopFactory::new_objArray(), scopeNode::params(), PRIM_DECL_1(), cascadeSendNode::print(), dllNode::print(), objArrayNode::print(), codeNode::print(), listNode::print(), FlatProfiler::print(), ObjectHistogram::print(), frame::print_for_deoptimization(), scopeNode::print_frame_header(), print_selector_with_arguments(), raw_sort(), scan_key(), Reflection::setup_schema_change(), scopeNode::temps(), memConverter::transfer(), Reflection::update_classes(), objArrayNode::width(), codeNode::width(), listNode::width(), and messageNode::width_send().

bool GenericGrowableArray::nonEmpty (  )  const [inline]

Definition at line 57 of file growableArray.hpp.

References len.

void GenericGrowableArray::print (  )  [virtual]

Implements PrintableResourceObj.

Definition at line 134 of file growableArray.cpp.

References data, len, lprintf(), max, and print_short().

Here is the call graph for this function:

void GenericGrowableArray::print_short (  )  [virtual]

Reimplemented from PrintableResourceObj.

Definition at line 146 of file growableArray.cpp.

References outputStream::print(), and std.

Referenced by print().

Here is the call graph for this function:

void GenericGrowableArray::raw_appendAll ( GenericGrowableArray l  )  [protected]

Definition at line 81 of file growableArray.cpp.

References data, len, and raw_at_put_grow().

Referenced by GrowableArray< messageNode * >::appendAll().

Here is the call graph for this function:

void GenericGrowableArray::raw_apply ( voidDoFn  f  )  const [protected]

Definition at line 112 of file growableArray.cpp.

References data, and len.

Referenced by GrowableArray< messageNode * >::apply().

void * GenericGrowableArray::raw_at_grow ( int  i,
const void *  fill 
) [protected]

Definition at line 116 of file growableArray.cpp.

References data, grow(), len, and max.

Referenced by GrowableArray< messageNode * >::at_grow().

Here is the call graph for this function:

void GenericGrowableArray::raw_at_put_grow ( int  i,
const void *  p,
const void *  fill 
) [protected]

Definition at line 125 of file growableArray.cpp.

References data, grow(), len, and max.

Referenced by GrowableArray< messageNode * >::at_put_grow(), and raw_appendAll().

Here is the call graph for this function:

bool GenericGrowableArray::raw_contains ( const void *  p  )  const [protected]

Definition at line 66 of file growableArray.cpp.

References data, and len.

Referenced by GrowableArray< messageNode * >::contains().

GenericGrowableArray * GenericGrowableArray::raw_copy (  )  const [protected]

Definition at line 73 of file growableArray.cpp.

References data, GenericGrowableArray(), len, and max.

Referenced by GrowableArray< messageNode * >::copy().

Here is the call graph for this function:

int GenericGrowableArray::raw_find ( void *  token,
growableArrayFindFn  f 
) const [protected]

Definition at line 94 of file growableArray.cpp.

References data, and len.

int GenericGrowableArray::raw_find ( const void *  p  )  const [protected]

Definition at line 87 of file growableArray.cpp.

References data, and len.

Referenced by GrowableArray< messageNode * >::find().

void GenericGrowableArray::raw_remove ( const void *  p  )  [protected]

Definition at line 101 of file growableArray.cpp.

References data, len, and ShouldNotReachHere.

Referenced by GrowableArray< messageNode * >::remove().

void GenericGrowableArray::raw_sort ( int   f(const void *, const void *)  )  [protected]

Definition at line 142 of file growableArray.cpp.

References data, and length().

Referenced by GrowableArray< messageNode * >::sort().

Here is the call graph for this function:


Member Data Documentation

void** GenericGrowableArray::data [protected]

Definition at line 33 of file growableArray.hpp.

Referenced by GrowableArray< messageNode * >::append(), GrowableArray< messageNode * >::apply(), GrowableArray< messageNode * >::at(), GrowableArray< messageNode * >::at_put(), data_addr(), GrowableArray< messageNode * >::first(), GenericGrowableArray(), grow(), GrowableArray< messageNode * >::last(), GrowableArray< messageNode * >::pop(), print(), raw_appendAll(), raw_apply(), raw_at_grow(), raw_at_put_grow(), raw_contains(), raw_copy(), raw_find(), raw_remove(), and raw_sort().

int GenericGrowableArray::len [protected]

Definition at line 31 of file growableArray.hpp.

Referenced by GrowableArray< messageNode * >::append(), GrowableArray< messageNode * >::apply(), GrowableArray< messageNode * >::at(), GrowableArray< messageNode * >::at_put(), clear(), GrowableArray< messageNode * >::first(), GenericGrowableArray(), grow(), isEmpty(), isFull(), GrowableArray< messageNode * >::last(), length(), nonEmpty(), GrowableArray< messageNode * >::pop(), print(), raw_appendAll(), raw_apply(), raw_at_grow(), raw_at_put_grow(), raw_contains(), raw_copy(), raw_find(), and raw_remove().

int GenericGrowableArray::max [protected]

Definition at line 32 of file growableArray.hpp.

Referenced by GrowableArray< messageNode * >::append(), capacity(), GenericGrowableArray(), grow(), isFull(), print(), raw_at_grow(), raw_at_put_grow(), and raw_copy().

bool GenericGrowableArray::on_C_heap [protected]

Definition at line 34 of file growableArray.hpp.

Referenced by GenericGrowableArray(), and grow().


The documentation for this class was generated from the following files:
Generated on Mon Oct 9 13:58:49 2006 for Strongtalk VM by  doxygen 1.4.7