Public Member Functions | Static Public Attributes | List of all members
VectorSpace< Form, Cmpt, Ncmpts >::ConstBlock< SubVector, BStart > Class Template Reference

Const sub-block type. More...

Public Member Functions

 ConstBlock (const vsType &vs)
 Construct for a given vector. More...
 
const Cmpt & operator[] (const direction i) const
 [i] const element access operator More...
 
const Cmpt & operator() (const direction i, const direction) const
 (i, 0) const element access operator More...
 

Static Public Attributes

static const direction nComponents = SubVector::nComponents
 Number of components in this vector space. More...
 

Detailed Description

template<class Form, class Cmpt, direction Ncmpts>
template<class SubVector, direction BStart>
class Foam::VectorSpace< Form, Cmpt, Ncmpts >::ConstBlock< SubVector, BStart >

Const sub-block type.

Definition at line 126 of file VectorSpace.H.

Constructor & Destructor Documentation

ConstBlock ( const vsType vs)
inline

Construct for a given vector.

Definition at line 76 of file VectorSpaceI.H.

Member Function Documentation

const Cmpt & operator[] ( const direction  i) const
inline

[i] const element access operator

Definition at line 241 of file VectorSpaceI.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and VectorSpace< Form, Cmpt, Ncmpts >::operator.

Here is the call graph for this function:

const Cmpt & operator() ( const direction  i,
const direction  j 
) const
inline

(i, 0) const element access operator

Definition at line 263 of file VectorSpaceI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

Member Data Documentation

const direction nComponents = SubVector::nComponents
static

Number of components in this vector space.

Definition at line 133 of file VectorSpace.H.


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