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

Vector2D Class Template Reference

Inheritance diagram for Vector2D:

Inheritance graph
[legend]
Collaboration diagram for Vector2D:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Cmpt>
class Foam::Vector2D< Cmpt >

Definition at line 60 of file Vector2D.H.


Public Types

enum  { rank = 1 }
enum  components { X, Y }
 Component labeling enumeration. More...

Public Member Functions

 Vector2D ()
 Construct null.
 Vector2D (const VectorSpace< Vector2D< Cmpt >, Cmpt, 2 > &)
 Construct given VectorSpace.
 Vector2D (const Cmpt &vx, const Cmpt &vy)
 Construct given two components.
 Vector2D (Istream &)
 Construct from Istream.
const Cmpt & x () const
const Cmpt & y () const
Cmpt & x ()
Cmpt & y ()

Static Public Attributes

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

Member Enumeration Documentation

anonymous enum

Enumerator:
rank 

Definition at line 69 of file Vector2D.H.

enum components

Component labeling enumeration.

Enumerator:
X 
Y 

Definition at line 84 of file Vector2D.H.


Constructor & Destructor Documentation

Vector2D (  )  [inline]

Construct null.

Definition at line 41 of file Vector2DI.H.

Vector2D ( const VectorSpace< Vector2D< Cmpt >, Cmpt, 2 > &   )  [inline]

Construct given VectorSpace.

Definition at line 47 of file Vector2DI.H.

References VectorSpace::v_, Vector2D::X, and Vector2D::Y.

Vector2D ( const Cmpt &  vx,
const Cmpt &  vy 
) [inline]

Construct given two components.

Definition at line 55 of file Vector2DI.H.

Vector2D ( Istream &   )  [inline]

Construct from Istream.

Definition at line 64 of file Vector2DI.H.

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


Member Function Documentation

const Cmpt & x (  )  const [inline]

Definition at line 73 of file Vector2DI.H.

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

const Cmpt & y (  )  const [inline]

Definition at line 79 of file Vector2DI.H.

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

Cmpt & x (  )  [inline]

Definition at line 86 of file Vector2DI.H.

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

Cmpt & y (  )  [inline]

Definition at line 92 of file Vector2DI.H.

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

Here is the call graph for this function:


Member Data Documentation

const char* const typeName [static]

Definition at line 77 of file Vector2D.H.

const char* componentNames[] [static]

Definition at line 78 of file Vector2D.H.

const Vector2D zero [static]

Definition at line 79 of file Vector2D.H.

const Vector2D one [static]

Definition at line 80 of file Vector2D.H.


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