cgv
Loading...
Searching...
No Matches
cgv::math::control_point_container< T > Class Template Reference

Public Types

typedef std::pair< float, T > control_point_type
 
using const_iterator = typename std::vector< control_point_type >::const_iterator
 

Public Member Functions

void clear ()
 
bool empty () const
 
size_t size () const
 
void push_back (float t, const T &v)
 
void assign (const std::vector< control_point_type > &control_points)
 
control_point_type operator[] (size_t i) const
 
control_point_type & operator[] (size_t i)
 
const std::vector< control_point_type > & ref_points () const
 
const_iterator begin () const
 
const_iterator end () const
 
control_point_type min () const
 
control_point_type max () const
 

Detailed Description

template<typename T>
class cgv::math::control_point_container< T >

Definition at line 12 of file interpolator.h.

Member Typedef Documentation

◆ const_iterator

template<typename T >
using cgv::math::control_point_container< T >::const_iterator = typename std::vector<control_point_type>::const_iterator

Definition at line 15 of file interpolator.h.

◆ control_point_type

template<typename T >
typedef std::pair<float, T> cgv::math::control_point_container< T >::control_point_type

Definition at line 14 of file interpolator.h.

Constructor & Destructor Documentation

◆ control_point_container()

template<typename T >
cgv::math::control_point_container< T >::control_point_container ( )
inline

Definition at line 25 of file interpolator.h.

◆ ~control_point_container()

template<typename T >
cgv::math::control_point_container< T >::~control_point_container ( )
inline

Definition at line 26 of file interpolator.h.

Member Function Documentation

◆ assign()

template<typename T >
void cgv::math::control_point_container< T >::assign ( const std::vector< control_point_type > &  control_points)
inline

Definition at line 43 of file interpolator.h.

◆ begin()

template<typename T >
const_iterator cgv::math::control_point_container< T >::begin ( ) const
inline

Definition at line 60 of file interpolator.h.

◆ clear()

template<typename T >
void cgv::math::control_point_container< T >::clear ( )
inline

Definition at line 28 of file interpolator.h.

◆ empty()

template<typename T >
bool cgv::math::control_point_container< T >::empty ( ) const
inline

Definition at line 32 of file interpolator.h.

◆ end()

template<typename T >
const_iterator cgv::math::control_point_container< T >::end ( ) const
inline

Definition at line 61 of file interpolator.h.

◆ max()

template<typename T >
control_point_type cgv::math::control_point_container< T >::max ( ) const
inline

Definition at line 69 of file interpolator.h.

◆ min()

template<typename T >
control_point_type cgv::math::control_point_container< T >::min ( ) const
inline

Definition at line 63 of file interpolator.h.

◆ operator[]() [1/2]

template<typename T >
control_point_type & cgv::math::control_point_container< T >::operator[] ( size_t  i)
inline

Definition at line 52 of file interpolator.h.

◆ operator[]() [2/2]

template<typename T >
control_point_type cgv::math::control_point_container< T >::operator[] ( size_t  i) const
inline

Definition at line 48 of file interpolator.h.

◆ push_back()

template<typename T >
void cgv::math::control_point_container< T >::push_back ( float  t,
const T &  v 
)
inline

Definition at line 38 of file interpolator.h.

◆ ref_points()

template<typename T >
const std::vector< control_point_type > & cgv::math::control_point_container< T >::ref_points ( ) const
inline

Definition at line 56 of file interpolator.h.

◆ size()

template<typename T >
size_t cgv::math::control_point_container< T >::size ( ) const
inline

Definition at line 34 of file interpolator.h.


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