mbl_data_collector_list< T > Class Template Reference

#include <mbl_data_collector_list.h>

Inheritance diagram for mbl_data_collector_list< T >:

mbl_data_collector< T > mbl_data_collector_base List of all members.

Detailed Description

template<class T>
class mbl_data_collector_list< T >

Collect data and store them in an list.

Definition at line 15 of file mbl_data_collector_list.h.


Public Member Functions

 mbl_data_collector_list ()
 Dflt ctor.
virtual ~mbl_data_collector_list ()
 Destructor.
virtual void clear ()
 Clear any stored data.
virtual void set_n_samples (int n)
 Hint about how many examples to expect.
virtual void record (const T &v)
 Record given object.
virtual mbl_data_wrapper<
T > & 
data_wrapper ()
 Return object describing stored data.
short version_no () const
 Version number for I/O.
virtual vcl_string is_a () const
 Name of the class.
virtual bool is_class (vcl_string const &s) const
 Does the name of the class match the argument?.
virtual mbl_data_collector_baseclone () const
 Create a copy on the heap and return base class pointer.
virtual void print_summary (vcl_ostream &os) const
 Print class to os.
virtual void b_write (vsl_b_ostream &bfs) const
 Save class to binary file stream.
virtual void b_read (vsl_b_istream &bfs)
 Load class from binary file stream.

Private Attributes

vcl_vector< T > data_
mbl_data_array_wrapper< T > wrapper_

Constructor & Destructor Documentation

template<class T>
mbl_data_collector_list< T >::mbl_data_collector_list (  ) 

Dflt ctor.

Definition at line 18 of file mbl_data_collector_list.txx.

template<class T>
mbl_data_collector_list< T >::~mbl_data_collector_list (  )  [virtual]

Destructor.

Definition at line 27 of file mbl_data_collector_list.txx.


Member Function Documentation

template<class T>
void mbl_data_collector_list< T >::clear (  )  [virtual]

Clear any stored data.

Implements mbl_data_collector< T >.

Definition at line 33 of file mbl_data_collector_list.txx.

template<class T>
void mbl_data_collector_list< T >::set_n_samples ( int  n  )  [virtual]

Hint about how many examples to expect.

Implements mbl_data_collector< T >.

Definition at line 40 of file mbl_data_collector_list.txx.

template<class T>
void mbl_data_collector_list< T >::record ( const T &  v  )  [virtual]

Record given object.

Implements mbl_data_collector< T >.

Definition at line 47 of file mbl_data_collector_list.txx.

template<class T>
mbl_data_wrapper< T > & mbl_data_collector_list< T >::data_wrapper (  )  [virtual]

Return object describing stored data.

Implements mbl_data_collector< T >.

Definition at line 54 of file mbl_data_collector_list.txx.

template<class T>
short mbl_data_collector_list< T >::version_no (  )  const

Version number for I/O.

Definition at line 78 of file mbl_data_collector_list.txx.

template<class T>
virtual vcl_string mbl_data_collector_list< T >::is_a (  )  const [virtual]

Name of the class.

Reimplemented from mbl_data_collector_base.

template<class T>
bool mbl_data_collector_list< T >::is_class ( vcl_string const &  s  )  const [virtual]

Does the name of the class match the argument?.

Reimplemented from mbl_data_collector_base.

Definition at line 70 of file mbl_data_collector_list.txx.

template<class T>
mbl_data_collector_base * mbl_data_collector_list< T >::clone (  )  const [virtual]

Create a copy on the heap and return base class pointer.

Implements mbl_data_collector_base.

Definition at line 86 of file mbl_data_collector_list.txx.

template<class T>
void mbl_data_collector_list< T >::print_summary ( vcl_ostream &  os  )  const [virtual]

Print class to os.

Implements mbl_data_collector_base.

Definition at line 92 of file mbl_data_collector_list.txx.

template<class T>
void mbl_data_collector_list< T >::b_write ( vsl_b_ostream bfs  )  const [virtual]

Save class to binary file stream.

Implements mbl_data_collector_base.

Definition at line 98 of file mbl_data_collector_list.txx.

template<class T>
void mbl_data_collector_list< T >::b_read ( vsl_b_istream bfs  )  [virtual]

Load class from binary file stream.

Implements mbl_data_collector_base.

Definition at line 105 of file mbl_data_collector_list.txx.


Member Data Documentation

template<class T>
vcl_vector<T> mbl_data_collector_list< T >::data_ [private]

Definition at line 17 of file mbl_data_collector_list.h.

template<class T>
mbl_data_array_wrapper<T> mbl_data_collector_list< T >::wrapper_ [private]

Definition at line 18 of file mbl_data_collector_list.h.


The documentation for this class was generated from the following files:
Generated on Thu Aug 21 05:10:27 2008 for contrib/mul/mbl by  doxygen 1.5.1