47 Grid firstGrid( tStart,tEnd,5 );
49 cout <<
"The grid consists of the following grid points:\n";
51 cout <<
"Its third grid point has time: " << firstGrid.
getTime( 2 ) << endl;
58 cout <<
"\nNow, the grid consists of the following grid points:\n";
70 cout <<
"\nThe second grid consists of the following grid points:\n";
74 secondGrid& firstGrid;
76 cout <<
"\nNow, the second grid consists of the following grid points:\n";
79 <<
"Its third grid point has time: " << secondGrid.
getTime( 2 ) << endl;
returnValue setTime(double _time)
double getTime(uint pointIdx) const
#define USING_NAMESPACE_ACADO
Allows to conveniently handle (one-dimensional) grids consisting of time points.
returnValue print() const
double getIntervalLength() const
USING_NAMESPACE_ACADO int main()
returnValue addTime(double _time)