OGS
MathLib::TemplateWeightedPoint< FP_T, W_T, DIM > Class Template Reference

Detailed Description

template<typename FP_T, typename W_T, std::size_t DIM>
class MathLib::TemplateWeightedPoint< FP_T, W_T, DIM >

Definition at line 21 of file TemplateWeightedPoint.h.

#include <TemplateWeightedPoint.h>

Inheritance diagram for MathLib::TemplateWeightedPoint< FP_T, W_T, DIM >:
[legend]
Collaboration diagram for MathLib::TemplateWeightedPoint< FP_T, W_T, DIM >:
[legend]

Public Member Functions

 TemplateWeightedPoint (std::array< FP_T, DIM > const &x, W_T weight)
 
W_T getWeight () const
 
- Public Member Functions inherited from MathLib::TemplatePoint< FP_T, DIM >
 TemplatePoint ()
 
 TemplatePoint (std::array< FP_T, DIM > x)
 
 TemplatePoint (TemplatePoint const &)=default
 
virtual ~TemplatePoint ()=default
 
TemplatePointoperator= (TemplatePoint const &)=default
 
const FP_T & operator[] (std::size_t idx) const
 const access operator The access to the point coordinates is like the access to a field. Code example: More...
 
FP_T & operator[] (std::size_t idx)
 access operator (see book Effektiv C++ programmieren - subsection 1.3.2 ). More...
 
const FP_T * getCoords () const
 
FP_T * getCoords ()
 
virtual void write (std::ostream &os) const
 
virtual void read (std::istream &is)
 

Private Attributes

W_T const weight_
 

Constructor & Destructor Documentation

◆ TemplateWeightedPoint()

template<typename FP_T , typename W_T , std::size_t DIM>
MathLib::TemplateWeightedPoint< FP_T, W_T, DIM >::TemplateWeightedPoint ( std::array< FP_T, DIM > const &  x,
W_T  weight 
)
inline

Definition at line 24 of file TemplateWeightedPoint.h.

25  : TemplatePoint<FP_T, DIM>(x), weight_(weight)
26  {}

Member Function Documentation

◆ getWeight()

template<typename FP_T , typename W_T , std::size_t DIM>
W_T MathLib::TemplateWeightedPoint< FP_T, W_T, DIM >::getWeight ( ) const
inline

Definition at line 28 of file TemplateWeightedPoint.h.

28 { return weight_; }

References MathLib::TemplateWeightedPoint< FP_T, W_T, DIM >::weight_.

Member Data Documentation

◆ weight_

template<typename FP_T , typename W_T , std::size_t DIM>
W_T const MathLib::TemplateWeightedPoint< FP_T, W_T, DIM >::weight_
private

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