KJB
|
Represents a trajectory. Vector of optionals to trajectory elements. More...
#include <tracking_trajectory.h>
Public Types | |
typedef Generic_trajectory_element< T > | Trajectory_element |
typedef std::vector < boost::optional < Trajectory_element > > | Base |
Public Member Functions | |
Generic_trajectory () | |
Generic_trajectory (size_t size) | |
Generic_trajectory (double h, double w, double g) | |
Generic_trajectory (size_t sz, double h, double w, double g) | |
template<class F > | |
Canonical_trajectory | to_canonical (F to_vector) const |
size_t | parse (std::ifstream &ifs) |
Reads a single trajectory from the given file. More... | |
void | write (const std::string &filename) const |
Writes a single trajectory to a file. More... | |
bool | parse_header (const std::string &) |
Parses the header information from a header line. More... | |
void | write_header (std::ofstream &) const |
Writes the header of a trajectory. Does nothing by default. Please specialize. More... | |
int | start_time () const |
Returns index of first valid element. More... | |
int | end_time () const |
Returns index of last valid element. More... | |
std::vector< T > | get_values () const |
Get a vector of the values of this trajectory. More... | |
template<class OutIt , class Trans > | |
void | transform (OutIt outp, Trans f) const |
Fill a sequence of values obtained from this trajectory. More... | |
Public Attributes | |
Entity_id | id |
double | height |
double | width |
double | girth |
Friends | |
void | swap (Generic_trajectory< T > &t1, Generic_trajectory< T > &t2) |
Swap two trajectories. More... | |
Represents a trajectory. Vector of optionals to trajectory elements.
typedef std::vector<boost::optional<Trajectory_element> > kjb::tracking::Generic_trajectory< T >::Base |
typedef Generic_trajectory_element<T> kjb::tracking::Generic_trajectory< T >::Trajectory_element |
|
inline |
|
inline |
|
inline |
|
inline |
int kjb::tracking::Generic_trajectory< T >::end_time | ( | ) | const |
Returns index of last valid element.
|
inline |
Get a vector of the values of this trajectory.
size_t kjb::tracking::Generic_trajectory< T >::parse | ( | std::ifstream & | ifs | ) |
Reads a single trajectory from the given file.
|
inline |
Parses the header information from a header line.
int kjb::tracking::Generic_trajectory< T >::start_time | ( | ) | const |
Returns index of first valid element.
Canonical_trajectory kjb::tracking::Generic_trajectory< T >::to_canonical | ( | F | to_vector | ) | const |
void kjb::tracking::Generic_trajectory< T >::transform | ( | OutIt | outp, |
Trans | f | ||
) | const |
Fill a sequence of values obtained from this trajectory.
void kjb::tracking::Generic_trajectory< T >::write | ( | const std::string & | filename | ) | const |
Writes a single trajectory to a file.
|
inline |
Writes the header of a trajectory. Does nothing by default. Please specialize.
|
friend |
Swap two trajectories.
double kjb::tracking::Generic_trajectory< T >::girth |
double kjb::tracking::Generic_trajectory< T >::height |
Entity_id kjb::tracking::Generic_trajectory< T >::id |
double kjb::tracking::Generic_trajectory< T >::width |