In file array.hpp:

template<class T> class FlatArray

A simple array container.

Documentation

A simple array container. Array represented by size and data-pointer. No memory allocation and deallocation, must be provided by user. Helper functions for printing. Optional range check by macro RANGE_CHECK

Inheritance:


Public Methods

[more] FlatArray(int asize, T* adata)
provide size and memory
[more] FlatArray(int asize, LocalHeap & lh)
memory from local heap
[more]int Size() const
the size
[more]T& operator[] (int i)
access array.
[more]const T& operator[] (int i) const
Access array.
[more]T& Last()
access last element.
[more]const T& Last() const
access last element.
[more]FlatArray& operator= (const T & val)
Fill array with value val

Protected Fields

[more]int size
the size
[more]T* data
the data

oint size
the size

oT* data
the data

o FlatArray(int asize, T* adata)
provide size and memory

o FlatArray(int asize, LocalHeap & lh)
memory from local heap

oint Size() const
the size

oT& operator[] (int i)
access array. range check by macro CHECK_RANGE

oconst T& operator[] (int i) const
Access array. range check by macro CHECK_RANGE

oT& Last()
access last element. check by macro CHECK_RANGE

oconst T& Last() const
access last element. check by macro CHECK_RANGE

oFlatArray& operator= (const T & val)
Fill array with value val


Direct child classes:
ARRAY

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.