OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

Vector Class Template Reference

Inheritance diagram for Vector:

Inheritance graph
[legend]
Collaboration diagram for Vector:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Cmpt>
class Foam::Vector< Cmpt >

Definition at line 66 of file Vector.H.


Public Types

enum  { rank = 1 }
enum  components { X, Y, Z }
 Component labeling enumeration. More...
typedef Vector< label > labelType
 Equivalent type of labels used for valid component indexing.

Public Member Functions

 Vector ()
 Construct null.
 Vector (const VectorSpace< Vector< Cmpt >, Cmpt, 3 > &)
 Construct given VectorSpace.
 Vector (const Cmpt &vx, const Cmpt &vy, const Cmpt &vz)
 Construct given three components.
 Vector (Istream &)
 Construct from Istream.
const Cmpt & x () const
const Cmpt & y () const
const Cmpt & z () const
Cmpt & x ()
Cmpt & y ()
Cmpt & z ()
const Vector< Cmpt > & centre (const List< Vector< Cmpt > > &) const
 Return *this (used for point which is a typedef to Vector<scalar>.

Static Public Attributes

static const char *const typeName
static const char * componentNames []
static const Vector zero
static const Vector one

Member Typedef Documentation

Equivalent type of labels used for valid component indexing.

Definition at line 74 of file Vector.H.


Member Enumeration Documentation

anonymous enum

Enumerator:
rank 

Definition at line 79 of file Vector.H.

enum components

Component labeling enumeration.

Enumerator:
X 
Y 
Z 

Definition at line 94 of file Vector.H.


Constructor & Destructor Documentation

Vector (  )  [inline]

Construct null.

Definition at line 41 of file VectorI.H.

Vector ( const VectorSpace< Vector< Cmpt >, Cmpt, 3 > &   )  [inline]

Construct given VectorSpace.

Definition at line 47 of file VectorI.H.

References VectorSpace::v_, Vector::X, Vector::Y, and Vector::Z.

Vector ( const Cmpt &  vx,
const Cmpt &  vy,
const Cmpt &  vz 
) [inline]

Construct given three components.

Definition at line 55 of file VectorI.H.

Vector ( Istream &   )  [inline]

Construct from Istream.

Definition at line 65 of file VectorI.H.

References VectorSpace::v_, and Vector::X.


Member Function Documentation

const Cmpt & x (  )  const [inline]

Definition at line 74 of file VectorI.H.

References VectorSpace::v_, and Vector::Y.

Referenced by Vector::centre(), triangle::classify(), boundBox::mag(), Foam::operator &(), Foam::operator &&(), Foam::operator-(), treeBoundBox::treeBoundBox(), and Vector2D::y().

Here is the caller graph for this function:

const Cmpt & y (  )  const [inline]

const Cmpt & z (  )  const [inline]

Definition at line 86 of file VectorI.H.

References VectorSpace::v_, and Vector::X.

Referenced by Vector::centre(), triangle::classify(), boundBox::mag(), Foam::operator &(), Foam::operator &&(), Foam::operator *(), and treeBoundBox::treeBoundBox().

Here is the caller graph for this function:

Cmpt & x (  )  [inline]

Definition at line 93 of file VectorI.H.

References VectorSpace::v_, and Vector::Y.

Cmpt & y (  )  [inline]

Definition at line 99 of file VectorI.H.

References VectorSpace::v_, and Vector::Z.

Cmpt & z (  )  [inline]

Definition at line 105 of file VectorI.H.

const Vector< Cmpt > & centre ( const List< Vector< Cmpt > > &   )  const [inline]

Return *this (used for point which is a typedef to Vector<scalar>.

Definition at line 117 of file VectorI.H.

References v1, v2, Vector::x(), Vector::y(), and Vector::z().

Here is the call graph for this function:


Member Data Documentation

const char* const typeName [static]

Definition at line 87 of file Vector.H.

const char* componentNames[] [static]

Definition at line 88 of file Vector.H.

const Vector zero [static]

Definition at line 89 of file Vector.H.

const Vector one [static]

Definition at line 90 of file Vector.H.


The documentation for this class was generated from the following files: Copyright © 2000-2007 OpenCFD Ltd