Documentation


animal::HistoryV< Position, Velocity > Class Template Reference

#include <history.h>

Inheritance diagram for animal::HistoryV< Position, Velocity >:

animal::History< Position, Velocity > List of all members.

Detailed Description

template<class Position, class Velocity>
class animal::HistoryV< Position, Velocity >

History for STL containers.

Definition at line 186 of file history.h.

Public Types

typedef History< Position,
Velocity > 
Parent
 parent class

typedef Parent::List List
 implicit type inheritance is now forbidden


Public Member Functions

 HistoryV (double t, Position p, Velocity v, bool record=false)
 Constructor uses initial state, so that the history can not be empty. This initial state is used for reset.

virtual void write (std::ostream &out) const
 Write the whole history to the given output stream.

virtual void read (std::istream &in)
 Read the whole history from the given input stream. No comments are allowed.


Member Typedef Documentation

template<class Position, class Velocity>
typedef Parent::List animal::HistoryV< Position, Velocity >::List
 

implicit type inheritance is now forbidden

Reimplemented from animal::History< Position, Velocity >.

Definition at line 192 of file history.h.

template<class Position, class Velocity>
typedef History<Position,Velocity> animal::HistoryV< Position, Velocity >::Parent
 

parent class

Definition at line 191 of file history.h.


Constructor & Destructor Documentation

template<class Position, class Velocity>
animal::HistoryV< Position, Velocity >::HistoryV double  t,
Position  p,
Velocity  v,
bool  record = false
[inline]
 

Constructor uses initial state, so that the history can not be empty. This initial state is used for reset.

Definition at line 195 of file history.h.


Member Function Documentation

template<class Position, class Velocity>
virtual void animal::HistoryV< Position, Velocity >::read std::istream &  in  )  [inline, virtual]
 

Read the whole history from the given input stream. No comments are allowed.

Implements animal::History< Position, Velocity >.

Definition at line 208 of file history.h.

References animal::History< Position, Velocity >::push_back(), animal::History< Position, Velocity >::reset(), animal::History< Position, Velocity >::toggleRecord(), and animal::v_input().

template<class Position, class Velocity>
virtual void animal::HistoryV< Position, Velocity >::write std::ostream &  out  )  const [inline, virtual]
 

Write the whole history to the given output stream.

Implements animal::History< Position, Velocity >.

Definition at line 200 of file history.h.

References animal::v_output().


The documentation for this class was generated from the following file:
Generated on Thu Dec 23 13:52:30 2004 by doxygen 1.3.6