KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Friends | List of all members
kjb::tracking::Generic_trajectory_map< T > Class Template Reference

Represents a set of trajectories; it is a map from entity to trajectory. More...

#include <tracking_trajectory.h>

Inheritance diagram for kjb::tracking::Generic_trajectory_map< T >:

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...
 

Detailed Description

template<class T>
class kjb::tracking::Generic_trajectory_map< T >

Represents a set of trajectories; it is a map from entity to trajectory.

Member Typedef Documentation

template<class T>
typedef std::map<Entity_id, Trajectory> kjb::tracking::Generic_trajectory_map< T >::Base

Constructor & Destructor Documentation

template<class T>
kjb::tracking::Generic_trajectory_map< T >::Generic_trajectory_map ( size_t  duration = 0)
inline

Constructor.

Member Function Documentation

template<class T>
size_t kjb::tracking::Generic_trajectory_map< T >::duration ( ) const
inline

Returns the duration of this set of trajectories.

template<class T>
size_t& kjb::tracking::Generic_trajectory_map< T >::duration ( )
inline

Returns the duration of this set of trajectories.

template<class T >
void kjb::tracking::Generic_trajectory_map< T >::parse ( const std::string &  path,
const std::string &  entity 
)

Reads all trajectories in a directory.

template<class T >
template<class F >
Canonical_trajectory_map kjb::tracking::Generic_trajectory_map< T >::to_canonical ( to_vector) const

convert to a "canonical" trajectory of kjb::Vectors. Used for evaluation.

template<class T >
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.

Friends And Related Function Documentation

template<class T>
void swap ( Generic_trajectory_map< T > &  t1,
Generic_trajectory_map< T > &  t2 
)
friend

Swap two trajectories.


The documentation for this class was generated from the following file: