API
4.3
For C++ developers
|
A class which stores a vector of states or data at a specified time. More...
Public Member Functions | |
StateVector ()=default | |
StateVector (const StateVector &)=default | |
virtual | ~StateVector () |
StateVector (double aT) | |
StateVector (double aT, const SimTK::Vector_< double > &data) | |
StateVector & | operator= (const StateVector &aStateVector) |
bool | operator== (const StateVector &aStateVector) const |
bool | operator< (const StateVector &aStateVector) const |
void | setStates (double aT, const SimTK::Vector_< double > &data) |
int | getSize () const |
void | setTime (double aT) |
double | getTime () const |
int | getDataValue (int aIndex, double &rValue) |
void | setDataValue (int aIndex, double &aValue) |
Array< double > & | getData () |
const Array< double > & | getData () const |
void | shiftTime (double aValue) |
void | scaleTime (double aValue) |
void | add (double aValue) |
void | add (const SimTK::Vector_< double > &values) |
void | add (int aN, double aValue) |
void | add (StateVector *aStateVector) |
void | subtract (double aValue) |
void | subtract (const SimTK::Vector_< double > &values) |
void | subtract (StateVector *aStateVector) |
void | multiply (double aValue) |
void | multiply (const SimTK::Vector_< double > &values) |
void | multiply (StateVector *aStateVector) |
void | divide (double aValue) |
void | divide (const SimTK::Vector_< double > &values) |
void | divide (StateVector *aStateVector) |
int | print (FILE *fp) const |
Friends | |
std::ostream & | operator<< (std::ostream &aOut, const StateVector &aStateVector) |
A class which stores a vector of states or data at a specified time.
Generally, it is used to store the time histories of the states during an integration.
The format of the numerical output for this class is specified by the settings in IO.
|
default |
|
default |
|
virtual |
OpenSim::StateVector::StateVector | ( | double | aT | ) |
OpenSim::StateVector::StateVector | ( | double | aT, |
const SimTK::Vector_< double > & | data | ||
) |
void OpenSim::StateVector::add | ( | double | aValue | ) |
void OpenSim::StateVector::add | ( | const SimTK::Vector_< double > & | values | ) |
void OpenSim::StateVector::add | ( | int | aN, |
double | aValue | ||
) |
void OpenSim::StateVector::add | ( | StateVector * | aStateVector | ) |
void OpenSim::StateVector::divide | ( | double | aValue | ) |
void OpenSim::StateVector::divide | ( | const SimTK::Vector_< double > & | values | ) |
void OpenSim::StateVector::divide | ( | StateVector * | aStateVector | ) |
Array<double>& OpenSim::StateVector::getData | ( | ) |
const Array<double>& OpenSim::StateVector::getData | ( | ) | const |
int OpenSim::StateVector::getDataValue | ( | int | aIndex, |
double & | rValue | ||
) |
int OpenSim::StateVector::getSize | ( | ) | const |
double OpenSim::StateVector::getTime | ( | ) | const |
void OpenSim::StateVector::multiply | ( | double | aValue | ) |
void OpenSim::StateVector::multiply | ( | const SimTK::Vector_< double > & | values | ) |
void OpenSim::StateVector::multiply | ( | StateVector * | aStateVector | ) |
bool OpenSim::StateVector::operator< | ( | const StateVector & | aStateVector | ) | const |
StateVector& OpenSim::StateVector::operator= | ( | const StateVector & | aStateVector | ) |
bool OpenSim::StateVector::operator== | ( | const StateVector & | aStateVector | ) | const |
int OpenSim::StateVector::print | ( | FILE * | fp | ) | const |
void OpenSim::StateVector::scaleTime | ( | double | aValue | ) |
void OpenSim::StateVector::setDataValue | ( | int | aIndex, |
double & | aValue | ||
) |
void OpenSim::StateVector::setStates | ( | double | aT, |
const SimTK::Vector_< double > & | data | ||
) |
void OpenSim::StateVector::setTime | ( | double | aT | ) |
void OpenSim::StateVector::shiftTime | ( | double | aValue | ) |
void OpenSim::StateVector::subtract | ( | double | aValue | ) |
void OpenSim::StateVector::subtract | ( | const SimTK::Vector_< double > & | values | ) |
void OpenSim::StateVector::subtract | ( | StateVector * | aStateVector | ) |
|
friend |