Array< Type > Class Template Reference

#include <array.h>

Collaboration diagram for Array< Type >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Array (int length)
 Array (Type *data, int length)
 Array (const Array< Type > &source)
 ~Array ()
void setvalue (const Type &value)
void inject (const Type *source)
void inject (const Array< Type > &source)
Array< Type > & operator= (const Type *source)
Array< Type > & operator= (const Array< Type > &source)
void copyto (Type *dest) const
int length () const
Type & operator[] (int i)
const Type & operator[] (int i) const
bool operator== (const Array< Type > &a) const
bool operator!= (const Array< Type > &a) const

Protected Attributes

Type * elems
int n
bool owner

Detailed Description

template<class Type>
class Array< Type >

Definition at line 37 of file array.h.


Constructor & Destructor Documentation

template<class Type >
Array< Type >::Array ( int  length  )  [inline, explicit]

Definition at line 94 of file array.h.

template<class Type>
Array< Type >::Array ( Type *  data,
int  length 
) [inline]

Definition at line 101 of file array.h.

template<class Type>
Array< Type >::Array ( const Array< Type > &  source  )  [inline]

Definition at line 107 of file array.h.

template<class Type >
Array< Type >::~Array (  )  [inline]

Definition at line 113 of file array.h.


Member Function Documentation

template<class Type>
void Array< Type >::setvalue ( const Type &  value  )  [inline]

Definition at line 118 of file array.h.

template<class Type>
void Array< Type >::inject ( const Type *  source  )  [inline]

Definition at line 123 of file array.h.

template<class Type>
void Array< Type >::inject ( const Array< Type > &  source  )  [inline]

Definition at line 131 of file array.h.

template<class Type>
Array< Type > & Array< Type >::operator= ( const Type *  source  )  [inline]

Definition at line 139 of file array.h.

template<class Type>
Array< Type > & Array< Type >::operator= ( const Array< Type > &  source  )  [inline]

Reimplemented in ArrayOfMatrices, and Matrix.

Definition at line 145 of file array.h.

template<class Type>
void Array< Type >::copyto ( Type *  dest  )  const [inline]

Definition at line 150 of file array.h.

template<class Type>
int Array< Type >::length (  )  const [inline]

Definition at line 71 of file array.h.

template<class Type >
Type & Array< Type >::operator[] ( int  i  )  [inline]

Definition at line 155 of file array.h.

template<class Type >
const Type & Array< Type >::operator[] ( int  i  )  const [inline]

Definition at line 159 of file array.h.

template<class Type>
bool Array< Type >::operator== ( const Array< Type > &  a  )  const [inline]

Reimplemented in ArrayOfMatrices, and Matrix.

Definition at line 83 of file array.h.

template<class Type>
bool Array< Type >::operator!= ( const Array< Type > &  a  )  const [inline]

Reimplemented in ArrayOfMatrices, and Matrix.

Definition at line 84 of file array.h.


Member Data Documentation

template<class Type>
Type* Array< Type >::elems [protected]

Definition at line 84 of file array.h.

template<class Type>
int Array< Type >::n [protected]

Definition at line 88 of file array.h.

template<class Type>
bool Array< Type >::owner [protected]

Definition at line 89 of file array.h.


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

Generated on 15 Mar 2015 for Coin-All by  doxygen 1.6.1