Back to index

Private Member Functions
array< T > Class Template Reference

#include <array.hpp>

Inheritance diagram for array< T >:
Inheritance graph

List of all members.

Private Member Functions

 array (int n=0)
 array (T *a, int n)
 array (T x1, T x2)
Toperator[] (int i)
 operator tree ()

Detailed Description

template<class T>
class array< T >

Definition at line 38 of file array.hpp.

Constructor & Destructor Documentation

template<class T>
array< T >::array ( int  n = 0) [inline, private]

Definition at line 40 of file array.hpp.

: rep (tm_new<array_rep<T> > (n)) {}
template<class T>
array< T >::array ( T a,
int  n 
) [private]

Definition at line 54 of file array.cpp.

  register int i;
  rep= tm_new<array_rep<T> > (n);
  for (i=0; i<n; i++)
template<class T>
array< T >::array ( T  x1,
T  x2 
) [private]

Definition at line 62 of file array.cpp.

  rep= tm_new<array_rep<T> > (2);
  rep->a[0]= x1;
  rep->a[1]= x2;

Member Function Documentation

template<class T>
array< T >::CONCRETE_TEMPLATE ( array< T ,
) [private]
template<class T >
array< T >::operator tree ( ) [private]

Definition at line 360 of file tree.hpp.

  int i, n=rep->n;
  tree t (TUPLE, n);
  for (i=0; i<n; i++)
    t[i]= as_tree(rep->a[i]);
  return t;

Here is the call graph for this function:

template<class T>
T& array< T >::operator[] ( int  i) [inline, private]

Definition at line 43 of file array.hpp.

{ return rep->a[i]; }

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