Barycentric< Cmpt > Class Template Reference

Templated 3D Barycentric derived from VectorSpace. Has 4 components, one of which is redundant. More...

Inheritance diagram for Barycentric< Cmpt >:
Collaboration diagram for Barycentric< Cmpt >:

Public Types

enum  components { A, B, C, D }
 Component labeling enumeration. More...
 
typedef Barycentric< labellabelType
 Equivalent type of labels used for valid component indexing. More...
 
- Public Types inherited from VectorSpace< Barycentric< Cmpt >, Cmpt, 4 >
typedef VectorSpace< Barycentric< Cmpt >, Cmpt, Ncmpts > vsType
 VectorSpace type. More...
 
typedef Cmpt cmptType
 Component type. More...
 

Public Member Functions

 Barycentric ()
 Construct null. More...
 
 Barycentric (const Foam::zero)
 Construct initialised to zero. More...
 
 Barycentric (const Cmpt &va, const Cmpt &vb, const Cmpt &vc, const Cmpt &vd)
 Construct given four components. More...
 
const Cmpt & a () const
 
const Cmpt & b () const
 
const Cmpt & c () const
 
const Cmpt & d () const
 
Cmpt & a ()
 
Cmpt & b ()
 
Cmpt & c ()
 
Cmpt & d ()
 
- Public Member Functions inherited from VectorSpace< Barycentric< Cmpt >, Cmpt, 4 >
 VectorSpace ()
 Construct null. More...
 
 VectorSpace (const Foam::zero)
 Construct initialised to zero. More...
 
 VectorSpace (Istream &)
 Construct from Istream. More...
 
 VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &)
 Construct as copy of a VectorSpace with the same size. More...
 
const Cmpt & component (const direction) const
 
Cmpt & component (const direction)
 
void component (Cmpt &, const direction) const
 
void replace (const direction, const Cmpt &)
 
const ConstBlock< SubVector, BStart > block () const
 
const VectorSpace< Barycentric< Cmpt >, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > block () const
 
const Cmpt & operator[] (const direction) const
 
Cmpt & operator[] (const direction)
 
void operator+= (const VectorSpace< Barycentric< Cmpt >, Cmpt, Ncmpts > &)
 
void operator-= (const VectorSpace< Barycentric< Cmpt >, Cmpt, Ncmpts > &)
 
void operator= (const Foam::zero)
 
void operator*= (const scalar)
 
void operator/= (const scalar)
 

Static Public Attributes

static const direction rank = 1
 Rank of Barycentric is 1. More...
 
- Static Public Attributes inherited from VectorSpace< Barycentric< Cmpt >, Cmpt, 4 >
static const direction dim
 Dimensionality of space. More...
 
static const direction nComponents
 Number of components in this vector space. More...
 
static const direction mRows
 
static const direction nCols
 
static const char *const typeName
 
static const char *const componentNames []
 
static const Barycentric< Cmpt > zero
 
static const Barycentric< Cmpt > one
 
static const Barycentric< Cmpt > max
 
static const Barycentric< Cmpt > min
 
static const Barycentric< Cmpt > rootMax
 
static const Barycentric< Cmpt > rootMin
 

Additional Inherited Members

- Static Public Member Functions inherited from VectorSpace< Barycentric< Cmpt >, Cmpt, 4 >
static direction size ()
 Return the number of elements in the VectorSpace = Ncmpts. More...
 
static Barycentric< Cmpt > uniform (const Cmpt &s)
 Return a VectorSpace with all elements = s. More...
 
- Public Attributes inherited from VectorSpace< Barycentric< Cmpt >, Cmpt, 4 >
Cmpt v_ [Ncmpts]
 The components of this vector space. More...
 

Detailed Description

template<class Cmpt>
class Foam::Barycentric< Cmpt >

Templated 3D Barycentric derived from VectorSpace. Has 4 components, one of which is redundant.

Source files

Definition at line 50 of file Barycentric.H.

Member Typedef Documentation

◆ labelType

Equivalent type of labels used for valid component indexing.

Definition at line 57 of file Barycentric.H.

Member Enumeration Documentation

◆ components

enum components

Component labeling enumeration.

Enumerator

Definition at line 67 of file Barycentric.H.

Constructor & Destructor Documentation

◆ Barycentric() [1/3]

Barycentric ( )
inline

Construct null.

Definition at line 29 of file BarycentricI.H.

Referenced by Barycentric< scalar >::Barycentric().

Here is the caller graph for this function:

◆ Barycentric() [2/3]

Barycentric ( const Foam::zero  )
inline

Construct initialised to zero.

Definition at line 34 of file BarycentricI.H.

◆ Barycentric() [3/3]

Barycentric ( const Cmpt &  va,
const Cmpt &  vb,
const Cmpt &  vc,
const Cmpt &  vd 
)
inline

Construct given four components.

Definition at line 42 of file BarycentricI.H.

Member Function Documentation

◆ a() [1/2]

const Cmpt & a ( ) const
inline

Definition at line 59 of file BarycentricI.H.

Referenced by BarycentricTensor< Cmpt >::BarycentricTensor(), and Foam::operator &().

Here is the caller graph for this function:

◆ b() [1/2]

const Cmpt & b ( ) const
inline

◆ c() [1/2]

const Cmpt & c ( ) const
inline

◆ d() [1/2]

const Cmpt & d ( ) const
inline

◆ a() [2/2]

Cmpt & a ( )
inline

Definition at line 87 of file BarycentricI.H.

◆ b() [2/2]

Cmpt & b ( )
inline

Definition at line 94 of file BarycentricI.H.

◆ c() [2/2]

Cmpt & c ( )
inline

Definition at line 101 of file BarycentricI.H.

◆ d() [2/2]

Cmpt & d ( )
inline

Definition at line 108 of file BarycentricI.H.

Member Data Documentation

◆ rank

const direction rank = 1
static

Rank of Barycentric is 1.

Definition at line 63 of file Barycentric.H.


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