IFEM  90A354
Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
LinVecFunc Class Reference

A vector-valued linear function. More...

#include <Functions.h>

Inheritance diagram for LinVecFunc:
Inheritance graph
[legend]
Collaboration diagram for LinVecFunc:
Collaboration graph
[legend]

Public Member Functions

 LinVecFunc (const char *file, int c=2)
 Constructor initializing piece-wise linear function values. More...
 
bool isZero () const override
 Returns whether the function is identically zero or not.
 
bool isConstant () const override
 Returns whether the function is constant or not.
 
- Public Member Functions inherited from utl::Function< Arg, Result >
virtual ~Function ()
 Empty destructor.
 
Result operator() (const Arg &x) const
 Operator returning the function value for the given argument.
 

Protected Member Functions

Vec3 evaluate (const Real &x) const override
 Evaluates the function at x.
 
- Protected Member Functions inherited from utl::Function< Arg, Result >
 Function ()
 The constructor is protected to allow sub-class instances only.
 
virtual Result evaluate (const Arg &x) const =0
 Evaluates the function for the argument x.
 

Private Types

using Point = std::pair< Real, Vec3 >
 Convenience type.
 

Private Attributes

std::vector< Pointfvals
 Values for piece-wise linear function.
 

Additional Inherited Members

- Public Types inherited from utl::Function< Arg, Result >
typedef Arg Input
 Input type.
 
typedef Result Output
 Output type.
 

Detailed Description

A vector-valued linear function.

Constructor & Destructor Documentation

◆ LinVecFunc()

LinVecFunc::LinVecFunc ( const char *  file,
int  c = 2 
)
explicit

Constructor initializing piece-wise linear function values.

Parameters
[in]fileName of file to read the function values from
[in]cThe column of the file to start reading function values from

References fvals, Real, and Vec3::x.


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