Public Types | Public Member Functions | Static Public Attributes | List of all members
Barycentric2D< Cmpt > Class Template Reference

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

Inheritance diagram for Barycentric2D< Cmpt >:
Inheritance graph
[legend]
Collaboration diagram for Barycentric2D< Cmpt >:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 Barycentric2D ()=default
 
 Barycentric2D (const Foam::zero)
 
 Barycentric2D (const Cmpt &va, const Cmpt &vb, const Cmpt &vc)
 
const Cmpt & a () const
 
const Cmpt & b () const
 
const Cmpt & c () const
 
Cmpt & a ()
 
Cmpt & b ()
 
Cmpt & c ()
 
bool outside () const
 
- Public Member Functions inherited from VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >
 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< Barycentric2D< Cmpt >, Cmpt, 3 >
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< Barycentric2D< Cmpt >, Cmpt, 3 >
static constexpr direction size () noexcept
 
static Form uniform (const Cmpt &s)
 
- Public Attributes inherited from VectorSpace< Barycentric2D< Cmpt >, Cmpt, 3 >
const typedef Cmpt * const_iterator
 
Cmpt v_ [Ncmpts]
 

Detailed Description

template<class Cmpt>
class Foam::Barycentric2D< Cmpt >

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

Source files

Definition at line 50 of file Barycentric2D.H.

Member Typedef Documentation

◆ labelType

typedef Barycentric2D<label> labelType

Definition at line 59 of file Barycentric2D.H.

Member Enumeration Documentation

◆ components

enum components
Enumerator

Definition at line 69 of file Barycentric2D.H.

Constructor & Destructor Documentation

◆ Barycentric2D() [1/3]

Barycentric2D ( )
default

◆ Barycentric2D() [2/3]

Barycentric2D ( const Foam::zero  )
inline

Definition at line 25 of file Barycentric2DI.H.

◆ Barycentric2D() [3/3]

Barycentric2D ( const Cmpt &  va,
const Cmpt &  vb,
const Cmpt &  vc 
)
inline

Definition at line 33 of file Barycentric2DI.H.

References A, B, and C.

Member Function Documentation

◆ a() [1/2]

Cmpt & a
inline

Definition at line 48 of file Barycentric2DI.H.

References A.

Referenced by Foam::operator&().

Here is the caller graph for this function:

◆ b() [1/2]

Cmpt & b
inline

Definition at line 55 of file Barycentric2DI.H.

References B.

Referenced by Foam::operator&().

Here is the caller graph for this function:

◆ c() [1/2]

Cmpt & c
inline

Definition at line 62 of file Barycentric2DI.H.

References C.

Referenced by 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

◆ outside()

bool outside
inline

Definition at line 90 of file Barycentric2DI.H.

References A, and B.

Referenced by lumpedPointMovement::setInterpolator().

Here is the caller graph for this function:

Member Data Documentation

◆ rank

constexpr direction rank = 1
staticconstexpr

Definition at line 65 of file Barycentric2D.H.


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