OGS
|
Gradual subdivision operator with a constant multiplier_.
In this class the number of subdivisions is known a priori.
Definition at line 97 of file Subdivision.h.
#include <Subdivision.h>
Public Member Functions | |
GradualSubdivisionFixedNum (const double L, const std::size_t num_subdivisions, const double multiplier) | |
std::vector< double > | operator() () const override |
Returns a vector of subdivided points. | |
Public Member Functions inherited from BaseLib::ISubdivision | |
virtual | ~ISubdivision ()=default |
Private Attributes | |
const double | length_ |
const std::size_t | num_subdivisions_ |
const double | multiplier_ |
BaseLib::GradualSubdivisionFixedNum::GradualSubdivisionFixedNum | ( | const double | L, |
const std::size_t | num_subdivisions, | ||
const double | multiplier ) |
Constructor
L | total length to be subdivided |
num_subdivisions | number of subdivisions to generate |
multiplier | multiplier to cell length |
Definition at line 68 of file Subdivision.cpp.
|
overridevirtual |
Returns a vector of subdivided points.
Implements BaseLib::ISubdivision.
Definition at line 74 of file Subdivision.cpp.
References length_, multiplier_, and num_subdivisions_.
|
private |
Definition at line 114 of file Subdivision.h.
Referenced by operator()().
|
private |
Definition at line 116 of file Subdivision.h.
Referenced by operator()().
|
private |
Definition at line 115 of file Subdivision.h.
Referenced by operator()().