13 #include "msdevstudio/MSconfig.h"
22 #ifdef ITERATOR_MEMBER_DEFECT
29 using namespace hippodraw;
31 LinearSumFunction::LinearSumFunction ( )
40 FunctionList_t::const_iterator it = old.
m_functions.begin();
67 for (
unsigned int i = 0; i < f_size; i++ ) {
68 string suffix (
"-" );
72 unsigned int n_size = names.size ();
73 for (
unsigned int j = 0; j < n_size; j++ ) {
74 string name = names [j];
87 FunctionList_t::const_iterator it =
m_functions.begin ();
89 const vector<double> & vals = (*it)->getParameters ();
90 p->
m_parms.insert ( p->
m_parms.end (), vals.begin(), vals.end () );
96 vector< double >::const_iterator
100 FunctionList_t::iterator fit =
m_functions.begin();
103 it = (*fit)->setParameters ( it );
114 for (
unsigned int i = 0; i < numf; i++ ) {
116 if ( index < size ) {
140 for (
unsigned int i = 0; i < numf; i++ ) {
142 number +=
function ->
size ();
162 FunctionList_t::iterator it =
m_functions.begin ();
165 if ( (*it) == function ){
177 FunctionList_t::const_iterator it =
m_functions.begin ();
180 sum += (*it)->operator () ( x );