#include <mbl_data_collector.h>
Inheritance diagram for mbl_data_collector< T >:

They are primed with the total number of samples to be presented, then the record() function is called with each example. They can return a mbl_data_wrapper<T> object to iterate through the saved examples.
Definition at line 24 of file mbl_data_collector.h.
Public Member Functions | |
| mbl_data_collector () | |
| Dflt ctor. | |
| virtual | ~mbl_data_collector () |
| Destructor. | |
| virtual void | clear ()=0 |
| Clear any stored data. | |
| virtual void | set_n_samples (int n)=0 |
| Hint about how many examples to expect. | |
| virtual void | record (const T &v)=0 |
| Record given object. | |
| virtual mbl_data_wrapper< T > & | data_wrapper ()=0 |
| Return object describing stored data. | |
| 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_base * | clone () const =0 |
| Create a copy on the heap and return base class pointer. | |
| virtual void | print_summary (vcl_ostream &os) const =0 |
| Print class to os. | |
| virtual void | b_write (vsl_b_ostream &bfs) const =0 |
| Save class to binary file stream. | |
| virtual void | b_read (vsl_b_istream &bfs)=0 |
| Load class from binary file stream. | |
|
|||||||||
|
Dflt ctor.
Definition at line 17 of file mbl_data_collector.txx. |
|
|||||||||
|
Destructor.
Definition at line 26 of file mbl_data_collector.txx. |
|
|
Load class from binary file stream.
Implemented in mbl_data_collector_list< T >, mbl_file_data_collector< T >, and mbl_stochastic_data_collector< T >. |
|
|
Save class to binary file stream.
Implemented in mbl_data_collector_list< T >, mbl_file_data_collector< T >, and mbl_stochastic_data_collector< T >. |
|
|||||||||
|
Clear any stored data.
Implemented in mbl_data_collector_list< T >, mbl_file_data_collector< T >, and mbl_stochastic_data_collector< T >. |
|
|
Create a copy on the heap and return base class pointer.
Implemented in mbl_data_collector_list< T >, mbl_file_data_collector< T >, and mbl_stochastic_data_collector< T >. |
|
|||||||||
|
Return object describing stored data.
Implemented in mbl_data_collector_list< T >, mbl_file_data_collector< T >, and mbl_stochastic_data_collector< T >. |
|
|
Name of the class.
Reimplemented in mbl_data_collector_list< T >, mbl_file_data_collector< T >, and mbl_stochastic_data_collector< T >. Definition at line 36 of file mbl_data_collector_base.cxx. |
|
|
Does the name of the class match the argument?.
Reimplemented in mbl_data_collector_list< T >, mbl_file_data_collector< T >, and mbl_stochastic_data_collector< T >. Definition at line 43 of file mbl_data_collector_base.cxx. |
|
|
Print class to os.
Implemented in mbl_data_collector_list< T >, mbl_file_data_collector< T >, and mbl_stochastic_data_collector< T >. |
|
||||||||||
|
Record given object.
Implemented in mbl_data_collector_list< T >, mbl_file_data_collector< T >, and mbl_stochastic_data_collector< T >. |
|
||||||||||
|
Hint about how many examples to expect.
Implemented in mbl_data_collector_list< T >, mbl_file_data_collector< T >, and mbl_stochastic_data_collector< T >. |
1.4.4