KJB
|
Represents a set of trajectories; it is a map from entity to trajectory. More...
#include <tracking_trajectory.h>
Public Types | |
typedef Generic_trajectory< T > | Trajectory |
typedef Generic_trajectory_element< T > | Trajectory_element |
typedef std::map< Entity_id, Trajectory > | Base |
Public Member Functions | |
Generic_trajectory_map (size_t duration=0) | |
Constructor. More... | |
template<class F > | |
Canonical_trajectory_map | to_canonical (F to_vector) const |
convert to a "canonical" trajectory of kjb::Vectors. Used for evaluation. More... | |
void | parse (const std::string &path, const std::string &entity) |
Reads all trajectories in a directory. More... | |
void | write (const std::string &dirname) const |
Writes this trajectory map to files in directory given by the string. More... | |
size_t | duration () const |
Returns the duration of this set of trajectories. More... | |
size_t & | duration () |
Returns the duration of this set of trajectories. More... | |
Friends | |
void | swap (Generic_trajectory_map< T > &t1, Generic_trajectory_map< T > &t2) |
Swap two trajectories. More... | |
Represents a set of trajectories; it is a map from entity to trajectory.
typedef std::map<Entity_id, Trajectory> kjb::tracking::Generic_trajectory_map< T >::Base |
typedef Generic_trajectory<T> kjb::tracking::Generic_trajectory_map< T >::Trajectory |
typedef Generic_trajectory_element<T> kjb::tracking::Generic_trajectory_map< T >::Trajectory_element |
|
inline |
Constructor.
|
inline |
Returns the duration of this set of trajectories.
|
inline |
Returns the duration of this set of trajectories.
void kjb::tracking::Generic_trajectory_map< T >::parse | ( | const std::string & | path, |
const std::string & | entity | ||
) |
Reads all trajectories in a directory.
Canonical_trajectory_map kjb::tracking::Generic_trajectory_map< T >::to_canonical | ( | F | to_vector | ) | const |
convert to a "canonical" trajectory of kjb::Vectors. Used for evaluation.
void kjb::tracking::Generic_trajectory_map< T >::write | ( | const std::string & | dirname | ) | const |
Writes this trajectory map to files in directory given by the string.
|
friend |
Swap two trajectories.