49 std::srand(std::time(0));
56 std::srand(std::time(0));
59 template <
typename Spline>
auto &
next(Spline &
obj)
const {
60 static_assert(Spline::parDim() == 1 && Spline::geoDim() == 1,
61 "Interval creator requires parDim=1 and geoDim=1");
69 return std::array<T, 1>{
70 static_cast<T
>(
xmax *
X[0] +
xmin * (
X[0] - T(1)))};
81 <<
"; x1min = " <<
x1min_ <<
", x1max = " <<
x1max_ <<
")";
98 std::srand(std::time(0));
107 std::srand(std::time(0));
110 template <
typename Spline>
auto &
next(Spline &
obj)
const {
111 static_assert(Spline::parDim() == 2 && Spline::geoDim() == 2,
112 "Interval creator requires parDim=2 and geoDim=2");
125 return std::array<T, 2>{
126 static_cast<T
>(
xmax *
X[0] +
xmin * (
X[0] - T(1)))};
139 <<
"; y1min = " <<
y1min_ <<
", y1max = " <<
y1max_ <<
")";
Abstract creator class.
Definition creator.hpp:27
virtual void pretty_print(std::ostream &os=Log(log::info)) const noexcept=0
Returns a string representation of the CreatorCore object.
Interval creator class.
Definition creator.hpp:45
T x1max_
Definition creator.hpp:85
IntervalCreator()
Default constructor.
Definition creator.hpp:48
virtual void pretty_print(std::ostream &os=Log(log::info)) const noexcept override
Returns a string representation of the IntervalCreator object.
Definition creator.hpp:78
T x0min_
Definition creator.hpp:85
T x1min_
Definition creator.hpp:85
IntervalCreator(const T &x0min, const T &x0max, const T &x1min, const T &x1max)
Bounds constructor.
Definition creator.hpp:53
auto & next(Spline &obj) const
Definition creator.hpp:59
T x0max_
Definition creator.hpp:85
Rectangle creator class.
Definition creator.hpp:92
T y0min_
Definition creator.hpp:143
T y0max_
Definition creator.hpp:143
virtual void pretty_print(std::ostream &os=Log(log::info)) const noexcept override
Returns a string representation of the RectangleCreator object.
Definition creator.hpp:134
T x1min_
Definition creator.hpp:143
RectangleCreator(const T &x0min, const T &x0max, const T &x1min, const T &x1max, const T &y0min, const T &y0max, const T &y1min, const T &y1max)
Bounds constructor.
Definition creator.hpp:102
T y1min_
Definition creator.hpp:143
T x0min_
Definition creator.hpp:143
T x1max_
Definition creator.hpp:143
RectangleCreator()
Default constructor.
Definition creator.hpp:95
T y1max_
Definition creator.hpp:143
auto & next(Spline &obj) const
Definition creator.hpp:110
T x0max_
Definition creator.hpp:143
Full qualified name descriptor.
Definition fqn.hpp:26
Full qualified name utility functions.
Definition boundary.hpp:22
constexpr bool is_SplineType_v
Alias to the value of is_SplineType.
Definition bspline.hpp:3243
std::ostream & operator<<(std::ostream &os, const Boundary< Spline > &obj)
Print (as string) a Boundary object.
Definition boundary.hpp:1978
struct iganet::@0 Log
Logger.