Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

TimeEntry< Entry > Class Template Reference

A time entry is defined by its location in the time line (a double from 0 to 1) and its editable status (keys are editable). More...

#include <time_map.h>

Inheritance diagram for TimeEntry< Entry >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~TimeEntry ()
double GetPosition ()
bool IsEditable ()
void SetPosition (double m_position)
void SetEditable (bool m_is_editable)
virtual Entry * Get (double position, Entry *ante)=0

Private Attributes

double position
bool is_editable

Detailed Description

template<typename Entry>
class TimeEntry< Entry >

A time entry is defined by its location in the time line (a double from 0 to 1) and its editable status (keys are editable).

An implementation of a time entry extends this template:

class SomeEntry : public TimeEntry< SomeEntry > { public: int value;

SomeEntry *Get( double position, SomeEntry *ante ) { ... generate a new entry which is between this and ante ... } }

Definition at line 44 of file time_map.h.


Constructor & Destructor Documentation

template<typename Entry>
virtual TimeEntry< Entry >::~TimeEntry  )  [inline, virtual]
 

Definition at line 51 of file time_map.h.

00051 { }


Member Function Documentation

template<typename Entry>
virtual Entry* TimeEntry< Entry >::Get double  position,
Entry *  ante
[pure virtual]
 

Implemented in TimeMapValue, TimeMapPair, and TimeMapTriple.

template<typename Entry>
double TimeEntry< Entry >::GetPosition  )  [inline]
 

Definition at line 53 of file time_map.h.

Referenced by TimeMapTriple::Get(), TimeMapPair::Get(), and TimeMapValue::Get().

00053 { return position; }

template<typename Entry>
bool TimeEntry< Entry >::IsEditable  )  [inline]
 

Definition at line 55 of file time_map.h.

00055 { return is_editable; }

template<typename Entry>
void TimeEntry< Entry >::SetEditable bool  m_is_editable  )  [inline]
 

Definition at line 59 of file time_map.h.

00059 { is_editable = m_is_editable; }

template<typename Entry>
void TimeEntry< Entry >::SetPosition double  m_position  )  [inline]
 

Definition at line 57 of file time_map.h.

00057 { position = m_position; }


Member Data Documentation

template<typename Entry>
bool TimeEntry< Entry >::is_editable [private]
 

Definition at line 48 of file time_map.h.

Referenced by TimeEntry< TimeMapTriple >::IsEditable(), and TimeEntry< TimeMapTriple >::SetEditable().

template<typename Entry>
double TimeEntry< Entry >::position [private]
 

Definition at line 47 of file time_map.h.

Referenced by TimeEntry< TimeMapTriple >::GetPosition(), and TimeEntry< TimeMapTriple >::SetPosition().


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 22:13:25 2007 for Kino by  doxygen 1.4.2