fesa-core
7.0.0
|
#include <ImmutableFunctionList.h>
Public Member Functions | |
ImmutableFunctionList (const detail::FunctionStorage *storage, std::size_t size, std::size_t pointsPerFunction) | |
ImmutableFunctionList () | |
template<class InputIterator > | |
ImmutableFunctionList (InputIterator first, InputIterator last) | |
virtual bool | isValid () const |
virtual std::size_t | size () const |
ImmutableFunction | getFunction (std::size_t index) const |
std::size_t | getTotalNumberOfPoints () const |
std::size_t | getMaxNumberOfPoints () const |
FunctionList | getMutable () const |
virtual const_iterator | begin () const |
Get a constant iterator pointing to the first function in the list. | |
virtual const_iterator | end () const |
Get a constant iterator pointing after the last function in the list. | |
Class which represents a function list. Objects of this class don't copy data and are immutable. This means that the data used to instantiate them must remain accessible and constant until they are destroyed.
fesa::ImmutableFunctionList::ImmutableFunctionList | ( | const detail::FunctionStorage * | storage, |
std::size_t | size, | ||
std::size_t | pointsPerFunction | ||
) |
Instantiates an ImmutableFunctionList from a field value containing an array of FunctionStorage.
storage | |
interval | the number of bytes between 2 arrays of points contained by the field value |
fesa::ImmutableFunctionList::ImmutableFunctionList | ( | ) |
Instantiates an empty function list.
fesa::ImmutableFunctionList::ImmutableFunctionList | ( | InputIterator | first, |
InputIterator | last | ||
) |
Instantiates an ImmutableFunctionList from iterators of points.
InputIterator | an iterator to iterators of points. |
ImmutableFunction fesa::ImmutableFunctionList::getFunction | ( | std::size_t | index | ) | const |
std::size_t fesa::ImmutableFunctionList::getMaxNumberOfPoints | ( | ) | const |
Returns the maximum number of points in a single function of this function list.
FunctionList fesa::ImmutableFunctionList::getMutable | ( | ) | const |
Returns a FunctionList object that contains a copy of the elements of this function list.
std::size_t fesa::ImmutableFunctionList::getTotalNumberOfPoints | ( | ) | const |
|
virtual |
Checks that functions in this function list are valid functions.
Reimplemented in fesa::FunctionList.
|
virtual |
Reimplemented in fesa::FunctionList.