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::mcmcda::Generic_track< E > Class Template Reference

A class that represents a generic MCMCDA track. More...

#include <mcmcda_track.h>

Inheritance diagram for kjb::mcmcda::Generic_track< E >:

Public Types

typedef E Element
 
typedef Parent::iterator iterator
 
typedef Parent::const_iterator const_iterator
 
typedef Parent::reverse_iterator reverse_iterator
 
typedef
Parent::const_reverse_iterator 
const_reverse_iterator
 
typedef Parent::value_type value_type
 
typedef Parent::key_type key_type
 
typedef Parent::mapped_type mapped_type
 
typedef Parent::reference reference
 
typedef Parent::const_reference const_reference
 

Public Member Functions

 Generic_track ()
 Constructor. More...
 
template<class Iterator >
 Generic_track (Iterator first, Iterator last)
 Range constructor. More...
 
int get_start_time () const
 Gets start time of track. More...
 
int get_end_time () const
 Gets end time of track. More...
 
int get_nth_time (int n) const
 Gets nth time of track. More...
 
int get_random_time () const
 Gets a random time from track. More...
 
int get_next_time (int t) const
 Given a time, gets next time. More...
 
int get_previous_time (int t) const
 Given a time, gets previous time. More...
 
const Elementget_start_point () const
 Gets start point of track. More...
 
const Elementget_end_point () const
 Gets end point of track. More...
 
size_t real_size () const
 Get "real" size; i.e., number of frames with detections. More...
 
int changed_start () const
 Returns changed start flag. More...
 
int changed_end () const
 Returns changed end flag. More...
 
void set_changed_start (int f) const
 Set the changed flag of this track. More...
 
void set_changed_end (int f) const
 Set the changed flag of this track. More...
 
bool is_valid (double v_bar, int d_bar, double sg, const typename Data< Element >::Convert &to_vector) const
 Determines whether this track is valid. More...
 

Friends

template<class Elem >
bool operator< (const Generic_track< Elem > &t1, const Generic_track< Elem > &t2)
 
template<class Elem >
bool operator== (const Generic_track< Elem > &t1, const Generic_track< Elem > &t2)
 
template<class Elem >
bool operator!= (const Generic_track< Elem > &t1, const Generic_track< Elem > &t2)
 
void swap (Generic_track< Element > &t1, Generic_track< Element > &t2)
 

Detailed Description

template<class E>
class kjb::mcmcda::Generic_track< E >

A class that represents a generic MCMCDA track.

This class represents a track, in the MCMCDA sense. Specifically, it is simply a map of ints to Elements. It is generic because "Track" is a concept, and this is the simplest implementation of it.

Member Typedef Documentation

template<class E>
typedef Parent::const_iterator kjb::mcmcda::Generic_track< E >::const_iterator
template<class E>
typedef Parent::const_reference kjb::mcmcda::Generic_track< E >::const_reference
template<class E>
typedef Parent::const_reverse_iterator kjb::mcmcda::Generic_track< E >::const_reverse_iterator
template<class E>
typedef E kjb::mcmcda::Generic_track< E >::Element
template<class E>
typedef Parent::iterator kjb::mcmcda::Generic_track< E >::iterator
template<class E>
typedef Parent::key_type kjb::mcmcda::Generic_track< E >::key_type
template<class E>
typedef Parent::mapped_type kjb::mcmcda::Generic_track< E >::mapped_type
template<class E>
typedef Parent::reference kjb::mcmcda::Generic_track< E >::reference
template<class E>
typedef Parent::reverse_iterator kjb::mcmcda::Generic_track< E >::reverse_iterator
template<class E>
typedef Parent::value_type kjb::mcmcda::Generic_track< E >::value_type

Constructor & Destructor Documentation

template<class E>
kjb::mcmcda::Generic_track< E >::Generic_track ( )
inline

Constructor.

template<class E>
template<class Iterator >
kjb::mcmcda::Generic_track< E >::Generic_track ( Iterator  first,
Iterator  last 
)
inline

Range constructor.

Member Function Documentation

template<class E>
int kjb::mcmcda::Generic_track< E >::changed_end ( ) const
inline

Returns changed end flag.

template<class E>
int kjb::mcmcda::Generic_track< E >::changed_start ( ) const
inline

Returns changed start flag.

template<class E>
const Element& kjb::mcmcda::Generic_track< E >::get_end_point ( ) const
inline

Gets end point of track.

template<class E>
int kjb::mcmcda::Generic_track< E >::get_end_time ( ) const
inline

Gets end time of track.

template<class E>
int kjb::mcmcda::Generic_track< E >::get_next_time ( int  t) const
inline

Given a time, gets next time.

template<class E>
int kjb::mcmcda::Generic_track< E >::get_nth_time ( int  n) const
inline

Gets nth time of track.

template<class E>
int kjb::mcmcda::Generic_track< E >::get_previous_time ( int  t) const
inline

Given a time, gets previous time.

template<class E>
int kjb::mcmcda::Generic_track< E >::get_random_time ( ) const
inline

Gets a random time from track.

template<class E>
const Element& kjb::mcmcda::Generic_track< E >::get_start_point ( ) const
inline

Gets start point of track.

template<class E>
int kjb::mcmcda::Generic_track< E >::get_start_time ( ) const
inline

Gets start time of track.

template<class Element >
bool kjb::mcmcda::Generic_track< Element >::is_valid ( double  v_bar,
int  d_bar,
double  sg,
const typename Data< Element >::Convert &  to_vector 
) const

Determines whether this track is valid.

template<class Element >
size_t kjb::mcmcda::Generic_track< Element >::real_size ( ) const

Get "real" size; i.e., number of frames with detections.

template<class E>
void kjb::mcmcda::Generic_track< E >::set_changed_end ( int  f) const
inline

Set the changed flag of this track.

template<class E>
void kjb::mcmcda::Generic_track< E >::set_changed_start ( int  f) const
inline

Set the changed flag of this track.

Friends And Related Function Documentation

template<class E>
template<class Elem >
bool operator!= ( const Generic_track< Elem > &  t1,
const Generic_track< Elem > &  t2 
)
friend
template<class E>
template<class Elem >
bool operator< ( const Generic_track< Elem > &  t1,
const Generic_track< Elem > &  t2 
)
friend
template<class E>
template<class Elem >
bool operator== ( const Generic_track< Elem > &  t1,
const Generic_track< Elem > &  t2 
)
friend
template<class E>
void swap ( Generic_track< Element > &  t1,
Generic_track< Element > &  t2 
)
friend

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