fesa-core  4.3.1
fesa::FunctionList Class Reference

Represents a FESA function list. A FunctionList has always its own copy of the data if not explicitly specified. Consequently, the data passed to its constructor can be safely destroyed. More...

#include <FunctionList.h>

Inheritance diagram for fesa::FunctionList:
fesa::ImmutableFunctionList

Public Member Functions

 FunctionList (const ImmutableFunctionList &other)
 
template<class InputIterator >
 FunctionList (InputIterator first, InputIterator last)
 
void addFunction (const Function &function)
 
FunctiongetFunction (std::size_t index)
 
bool isValid () const
 
std::size_t size () const
 
const_iterator begin () const
 Get a constant iterator pointing to the first function in the list.
 
const_iterator end () const
 Get a constant iterator pointing after the last function in the list.
 
iterator begin ()
 
- Public Member Functions inherited from fesa::ImmutableFunctionList
 ImmutableFunctionList (const detail::FunctionStorage *storage, std::size_t size, std::size_t pointsPerFunction)
 
 ImmutableFunctionList ()
 
template<class InputIterator >
 ImmutableFunctionList (InputIterator first, InputIterator last)
 
ImmutableFunction getFunction (std::size_t index) const
 
std::size_t getTotalNumberOfPoints () const
 
std::size_t getMaxNumberOfPoints () const
 
FunctionList getMutable () const
 

Detailed Description

Represents a FESA function list. A FunctionList has always its own copy of the data if not explicitly specified. Consequently, the data passed to its constructor can be safely destroyed.

Constructor & Destructor Documentation

fesa::FunctionList::FunctionList ( const ImmutableFunctionList other)

Instantiates a FunctionList that is a copy of an ImmutableFunctionList. Copies the data of an ImmutableFunctionList.

template<class InputIterator >
fesa::FunctionList::FunctionList ( InputIterator  first,
InputIterator  last 
)

Instantiates a FunctionList from iterators of points. Performs a copy of the points.

Template Parameters
InputIteratoran iterator to iterators of points.

Member Function Documentation

void fesa::FunctionList::addFunction ( const Function function)

Adds a function at the end of the function list. Copies the function passed in parameters.

FunctionList::iterator fesa::FunctionList::begin ( )

Get an iterator allowing modifications of functions

Function & fesa::FunctionList::getFunction ( std::size_t  index)
Returns
a reference to the function at the given index.
bool fesa::FunctionList::isValid ( ) const
virtual

Checks that functions in this function list are valid functions.

Reimplemented from fesa::ImmutableFunctionList.

std::size_t fesa::FunctionList::size ( ) const
virtual
Returns
the number of functions in this function list.

Reimplemented from fesa::ImmutableFunctionList.


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