MeshKit  1.0
array< T > Class Template Reference

#include <Array.h>

Inheritance diagram for array< T >:

List of all members.

Public Member Functions

 array ()
 array (int l)
 ~array ()
void init (int l)
void free ()
void resize (int l)
T & ref (int i)
T & operator[] (int i)
T & operator() (int i)
const T & ref (int i) const
const T & operator[] (int i) const
const T & operator() (int i) const
int length () const
int maxLength () const

Protected Attributes

T * data
int len

Detailed Description

template<class T>
class array< T >

Definition at line 7 of file Array.h.


Constructor & Destructor Documentation

array ( ) [inline]

Definition at line 12 of file Array.h.

array ( int  l) [inline]

Definition at line 13 of file Array.h.

~array ( ) [inline]

Definition at line 14 of file Array.h.


Member Function Documentation

void free ( ) [inline]

Definition at line 42 of file Array.h.

void init ( int  l) [inline]

Reimplemented in buffer< T >, and buffer< pair_info * >.

Definition at line 35 of file Array.h.

int length ( ) const [inline]

Reimplemented in buffer< T >, and buffer< pair_info * >.

Definition at line 30 of file Array.h.

int maxLength ( ) const [inline]

Reimplemented in buffer< T >, and buffer< pair_info * >.

Definition at line 31 of file Array.h.

T& operator() ( int  i) [inline]

Definition at line 23 of file Array.h.

const T& operator() ( int  i) const [inline]

Definition at line 27 of file Array.h.

T& operator[] ( int  i) [inline]

Definition at line 22 of file Array.h.

const T& operator[] ( int  i) const [inline]

Definition at line 26 of file Array.h.

T & ref ( int  i) [inline]

Definition at line 52 of file Array.h.

const T & ref ( int  i) const [inline]

Definition at line 62 of file Array.h.

void resize ( int  l) [inline]

Definition at line 72 of file Array.h.


Member Data Documentation

T* data [protected]

Definition at line 9 of file Array.h.

int len [protected]

Definition at line 10 of file Array.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines