ML Reference
ml::Tvec10< DT > Class Template Reference

An ten dimensional vector class for floating point types. More...

#include <mlVector10.h>

Inheritance diagram for ml::Tvec10< DT >:
ml::FloatingPointVector< DT, 10 > ml::FloatingPointVectorDataContainerBase< DT, size >

List of all members.

Public Types

typedef FloatingPointVector
< DT, 10 > 
Superclass
 A typedef as a shorthand for the base class.
typedef DT ComponentType
 A typedef to "export" the type of components.

Public Member Functions

constructors
 Tvec10 (const DT value=0)
 Default and value constructor.
 Tvec10 (const Tvec10< DT > &v)
 Copy constructor from Tvec10.
 Tvec10 (const Superclass &v)
 Copy constructor from FloatingPointVector.
 Tvec10 (const DT x, const DT y, const DT z, const DT c, const DT t, const DT u, const DT v, const DT w, const DT a, const DT b)
 Build the vector from the scalars x, y, z, c, t, u, v and w to the components 0 to 9, respectively.
Other operators and methods
void assign (const DT x, const DT y, const DT z, const DT c, const DT t, const DT u, const DT v, const DT w, const DT a, const DT b)
 Set all components to the passed values.

Detailed Description

template<class DT>
class ml::Tvec10< DT >

An ten dimensional vector class for floating point types.

A ten dimensional vector class.

Definition at line 33 of file mlVector10.h.


Member Typedef Documentation

template<class DT>
typedef DT ml::Tvec10< DT >::ComponentType

A typedef to "export" the type of components.

Reimplemented from ml::FloatingPointVector< DT, 10 >.

Definition at line 40 of file mlVector10.h.

template<class DT>
typedef FloatingPointVector<DT,10> ml::Tvec10< DT >::Superclass

A typedef as a shorthand for the base class.

Definition at line 37 of file mlVector10.h.


Constructor & Destructor Documentation

template<class DT>
ml::Tvec10< DT >::Tvec10 ( const DT  value = 0) [inline, explicit]

Default and value constructor.

Set all entries to a user given value. value is the init value for all entries. 0 is the default value.

Definition at line 48 of file mlVector10.h.

template<class DT>
ml::Tvec10< DT >::Tvec10 ( const Tvec10< DT > &  v) [inline]

Copy constructor from Tvec10.

Definition at line 54 of file mlVector10.h.

template<class DT>
ml::Tvec10< DT >::Tvec10 ( const Superclass v) [inline]

Copy constructor from FloatingPointVector.

This allows the usage of SclarVectorTemplate objects of the same DT in operators using the Tvec10, because the FloatingPointVector objects can implicitly be cast.

Definition at line 62 of file mlVector10.h.

template<class DT>
ml::Tvec10< DT >::Tvec10 ( const DT  x,
const DT  y,
const DT  z,
const DT  c,
const DT  t,
const DT  u,
const DT  v,
const DT  w,
const DT  a,
const DT  b 
) [inline]

Build the vector from the scalars x, y, z, c, t, u, v and w to the components 0 to 9, respectively.

Definition at line 69 of file mlVector10.h.


Member Function Documentation

template<class DT>
void ml::Tvec10< DT >::assign ( const DT  x,
const DT  y,
const DT  z,
const DT  c,
const DT  t,
const DT  u,
const DT  v,
const DT  w,
const DT  a,
const DT  b 
) [inline]

Set all components to the passed values.

Definition at line 84 of file mlVector10.h.


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