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()

ConstBlock ( const vsType vs)
inline

Construct for a given vector.

Definition at line 66 of file VectorSpaceI.H.

Member Function Documentation

◆ operator[]()

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

[i] const element access operator

Definition at line 231 of file VectorSpaceI.H.

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

Here is the call graph for this function:

◆ operator()()

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

(i, 0) const element access operator

Definition at line 253 of file VectorSpaceI.H.

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

Here is the call graph for this function:

Member Data Documentation

◆ nComponents

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: