NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links

fix_arr< T, sz > Class Template Reference
[Array classes]

#include <arr.h>

List of all members.

Public Member Functions

long size () const
template<typename T2>
T & operator[] (T2 n)
template<typename T2>
const T & operator[] (T2 n) const


Detailed Description

template<typename T, unsigned int sz>
class fix_arr< T, sz >

An array whose size is known at compile time. Very useful for storing small arrays on the stack, without need for new and delete().

Definition at line 45 of file arr.h.


Member Function Documentation

template<typename T, unsigned int sz>
long fix_arr< T, sz >::size (  )  const [inline]

Returns the size of the array.

Definition at line 52 of file arr.h.

template<typename T, unsigned int sz>
template<typename T2>
T& fix_arr< T, sz >::operator[] ( T2  n  )  [inline]

Returns a reference to element n

Definition at line 55 of file arr.h.

template<typename T, unsigned int sz>
template<typename T2>
const T& fix_arr< T, sz >::operator[] ( T2  n  )  const [inline]

Returns a constant reference to element n

Definition at line 57 of file arr.h.


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

Generated on Fri Jun 18 16:12:29 2010 for LevelS C++ support library
Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650