xc
Public Types | Public Member Functions | List of all members
FunctionFromPointsR_T< T > Class Template Reference

function from R to T defined on a set of points. More...

#include <FunctionFromPointsR_T.h>

Public Types

typedef std::map< double, T > value_map
 
typedef value_map::iterator iterator
 
typedef value_map::const_iterator const_iterator
 
typedef value_map::const_reverse_iterator const_reverse_iterator
 

Public Member Functions

Valor (const double &) const
 Return el valor que corresponde a la abcisa z.
 
std::vector< T > Valores (const std::vector< double > &) const
 Return los valores que corresponden a las abcisas z.
 
operator() (const double &z) const
 
std::vector< T > operator() (const std::vector< double > &zs) const
 
const_iterator begin (void) const
 Return an iterator to the beginning of the point container.
 
const_reverse_iterator rbegin (void) const
 Return an reverse iterator to the end of the point container.
 
const_iterator end (void) const
 Return an iterator to the end of the point container.
 
const_reverse_iterator rend (void) const
 Return an iterator to the beginning of the point container.
 
size_t size (void) const
 Return the number of points that define the function.
 
size_t empty (void) const
 Return true if there are no points.
 
void insert (const double &x, const T &y)
 Inserts the pair (x,y) as a point of the function.
 
void clear (void)
 

Detailed Description

template<class T>
class FunctionFromPointsR_T< T >

function from R to T defined on a set of points.

Function that for each point x de la recta real le asigna un valor de clase T. The correspondence is established by points, that is, by pairs (x1,T1), (x2,T2), ...


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