Back to index

texmacs  1.0.7.15
Private Member Functions
vector Class Reference

#include <vector.hpp>

Inheritance diagram for vector:
Inheritance graph
[legend]

List of all members.

Private Member Functions

 CONCRETE_TEMPLATE (vector, T)
 vector (T *a, int n)
 vector (T c, int n)
 vector ()
 vector (T c1)
 vector (T c1, T c2)
 vector (T c1, T c2, T c3)
Toperator[] (int i)

Detailed Description

Definition at line 42 of file vector.hpp.


Constructor & Destructor Documentation

vector::vector ( T a,
int  n 
) [inline, private]

Definition at line 44 of file vector.hpp.

                             :
    rep (tm_new<vector_rep<T> > (a, n)) {}
vector::vector ( T  c,
int  n 
) [inline, private]

Definition at line 46 of file vector.hpp.

                             {
    T* a= (n == 0? (T*) NULL: tm_new_array<T> (n));
    for (int i=0; i<n; i++) a[i]= c;
    rep= tm_new<vector_rep<T> > (a, n); }
vector::vector ( ) [inline, private]

Definition at line 50 of file vector.hpp.

                   {
    rep= tm_new<vector_rep<T> > ((T*) NULL, 0); }
vector::vector ( T  c1) [inline, private]

Definition at line 52 of file vector.hpp.

                       {
    T* a= tm_new_array<T> (1); a[0]= c1;
    rep= tm_new<vector_rep<T> > (a, 1); }
vector::vector ( T  c1,
T  c2 
) [inline, private]

Definition at line 55 of file vector.hpp.

                             {
    T* a= tm_new_array<T> (2); a[0]= c1; a[1]= c2;
    rep= tm_new<vector_rep<T> > (a, 2); }
vector::vector ( T  c1,
T  c2,
T  c3 
) [inline, private]

Definition at line 58 of file vector.hpp.

                                   {
    T* a= tm_new_array<T> (3); a[0]= c1; a[1]= c2; a[2]= c3;
    rep= tm_new<vector_rep<T> > (a, 3); }

Member Function Documentation

vector::CONCRETE_TEMPLATE ( vector  ,
T   
) [private]
T& vector::operator[] ( int  i) [inline, private]

Definition at line 61 of file vector.hpp.

{ return rep->a[i]; }

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