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 127 of file VectorSpace.H.

Constructor & Destructor Documentation

◆ ConstBlock()

ConstBlock ( const vsType vs)
inline

Construct for a given vector.

Definition at line 69 of file VectorSpaceI.H.

Member Function Documentation

◆ operator[]()

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

[i] const element access operator

Definition at line 289 of file VectorSpaceI.H.

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

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 311 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 134 of file VectorSpace.H.


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