|
BSplinebasis
|
Represents a global Grid. More...
#include <Grid.h>
Public Types | |
| using | const_iterator = typename std::vector< T >::const_iterator |
| Iterator type. | |
Public Member Functions | |
| template<typename Iter > | |
| Grid (Iter begin, Iter end) | |
| Constructs a Grid from a set of begin and end iterators. | |
| Grid (std::vector< T > v) | |
| Constructs a Grid from a std::vector. | |
| Grid (const std::initializer_list< T > &v) | |
| Constructs a Grid from a std::initializer_list. | |
| Grid (std::shared_ptr< const std::vector< T > > data) | |
| Constructs a Grid from a std::shared_ptr<const std::vector<T>>. | |
| Grid (const Grid &g) noexcept=default | |
| Default copy constructor. | |
| Grid & | operator= (const Grid &g) noexcept=default |
| Default copy assignment operator. | |
| ~Grid ()=default | |
| Default destructor. | |
| Grid (Grid &&g)=delete | |
| Explicitly deleted move constructor. | |
| Grid & | operator= (Grid &&g)=delete |
| Explicitly deleted move assignment operator. | |
| bool | operator== (const Grid &g) const |
| Comparison operator. | |
| bool | operator!= (const Grid &g) const |
| Negated comparison operator. | |
| size_t | size () const |
| Returns the number of elements of the Grid. | |
| std::shared_ptr< const std::vector< T > > | getData () const |
| Gives access to the underlying data. | |
| bool | empty () const |
| Checks whether the spline is empty. | |
| const T & | operator[] (size_t i) const |
| Gives access to the i-th element of the Grid. | |
| const T & | at (size_t i) const |
| Gives access to the i-th element of the Grid. | |
| const T & | front () const |
| Returns a reference to the first element of the Grid. | |
| const T & | back () const |
| Returns a reference to the last element of the Grid. | |
| const_iterator | begin () const |
| Returns the begin iterator of the Grid. | |
| const_iterator | end () const |
| Returns the end iterator of the Grid.. | |
| size_t | findElement (const T &x) const |
| Returns the index corresponding to the element x. | |
Represents a global Grid.
| T | The datatype of the Grid elements. |
|
inline |
Constructs a Grid from a set of begin and end iterators.
| begin | The iterator referencing the first element to be copied into the Grid. |
| end | The iterator referencing the element behind the last element to be copied into the Grid. |
| Iter | The type of the two iterators. |
| BSplineException | If the Grid is empty or contains only a single element, or if the elements are not in steadily increasing order. |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
Default copy constructor.
| g | Grid to be copied. |
Explicitly deleted move constructor.
| g | Grid to (not) be moved. |
|
inline |
Returns the begin iterator of the Grid.
|
inline |
|
inline |
Returns the end iterator of the Grid..
Returns the index corresponding to the element x.
| x | The element to be searched for. |
| BSplineException | If the element could not be found. |
|
inline |
Default copy assignment operator.
| g | Grid to be copied. |
Explicitly deleted move assignment operator.
| g | Grid to (not) be moved. |
|
inline |