Public Types | Public Member Functions | Static Public Attributes | List of all members
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 >:
Inheritance graph
[legend]
Collaboration diagram for Barycentric< Cmpt >:
Collaboration graph
[legend]

Public Types

enum  components { A, B, C, D }
 
typedef Barycentric< label > labelType
 
- Public Types inherited from VectorSpace< Barycentric< Cmpt >, Cmpt, 4 >
typedef VectorSpace< Form, Cmpt, Ncmpts > vsType
 
typedef Cmpt cmptType
 
typedef Cmpt magType
 
typedef Cmpt * iterator
 

Public Member Functions

 Barycentric ()=default
 
 Barycentric (const Foam::zero)
 
 Barycentric (const Cmpt &va, const Cmpt &vb, const Cmpt &vc, const Cmpt &vd)
 
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 ()=default
 
 VectorSpace (const Foam::zero)
 
 VectorSpace (const VectorSpace< Form, Cmpt, Ncmpts > &vs)
 
 VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &)
 
 VectorSpace (Istream &is)
 
const Cmpt & component (const direction) const
 
Cmpt & component (const direction)
 
void component (Cmpt &, const direction) const
 
void replace (const direction, const Cmpt &)
 
const Cmpt * cdata () const noexcept
 
Cmpt * data () noexcept
 
const ConstBlock< SubVector, BStart > block () const
 
const Foam::VectorSpace< Form, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > block () const
 
const Cmpt & operator[] (const direction) const
 
Cmpt & operator[] (const direction)
 
void operator= (const VectorSpace< Form, Cmpt, Ncmpts > &)
 
void operator= (const Foam::zero)
 
void operator+= (const VectorSpace< Form, Cmpt, Ncmpts > &)
 
void operator-= (const VectorSpace< Form, Cmpt, Ncmpts > &)
 
void operator*= (const scalar)
 
void operator/= (const scalar)
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 

Static Public Attributes

static constexpr direction rank = 1
 
- Static Public Attributes inherited from VectorSpace< Barycentric< Cmpt >, Cmpt, 4 >
static constexpr direction dim
 
static constexpr direction nComponents
 
static constexpr direction mRows
 
static constexpr direction nCols
 
static const char *const typeName
 
static const char *const componentNames []
 
static const Form zero
 
static const Form one
 
static const Form max
 
static const Form min
 
static const Form rootMax
 
static const Form rootMin
 

Additional Inherited Members

- Static Public Member Functions inherited from VectorSpace< Barycentric< Cmpt >, Cmpt, 4 >
static constexpr direction size () noexcept
 
static Form uniform (const Cmpt &s)
 
- Public Attributes inherited from VectorSpace< Barycentric< Cmpt >, Cmpt, 4 >
const typedef Cmpt * const_iterator
 
Cmpt v_ [Ncmpts]
 

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

typedef Barycentric<label> labelType

Definition at line 59 of file Barycentric.H.

Member Enumeration Documentation

◆ components

enum components
Enumerator

Definition at line 69 of file Barycentric.H.

Constructor & Destructor Documentation

◆ Barycentric() [1/3]

Barycentric ( )
default

◆ Barycentric() [2/3]

Barycentric ( const Foam::zero  )
inline

Definition at line 24 of file BarycentricI.H.

◆ Barycentric() [3/3]

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

Definition at line 32 of file BarycentricI.H.

Member Function Documentation

◆ a() [1/2]

Cmpt & a
inline

Definition at line 49 of file BarycentricI.H.

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

Here is the caller graph for this function:

◆ b() [1/2]

Cmpt & b
inline

Definition at line 56 of file BarycentricI.H.

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

Here is the caller graph for this function:

◆ c() [1/2]

Cmpt & c
inline

Definition at line 63 of file BarycentricI.H.

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

Here is the caller graph for this function:

◆ d() [1/2]

Cmpt & d
inline

Definition at line 70 of file BarycentricI.H.

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

Here is the caller graph for this function:

◆ a() [2/2]

Cmpt& a ( )
inline

◆ b() [2/2]

Cmpt& b ( )
inline

◆ c() [2/2]

Cmpt& c ( )
inline

◆ d() [2/2]

Cmpt& d ( )
inline

Member Data Documentation

◆ rank

constexpr direction rank = 1
staticconstexpr

Definition at line 65 of file Barycentric.H.


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