#include <FileFilter.hpp>
Inheritance diagram for FileFilter:

It borrows several datatypes from FileSpec for cohesion of data types. Add the data to the filter, specify the parameters (date, exclusion filters, etc.), then process it. For the specific data type, you can specify your own operators for sorting, uniqueness, or almost anything else you want to do to the data.
Definition at line 79 of file FileFilter.hpp.
Public Member Functions | |
| FileFilter (void) | |
| Default constructor. | |
| virtual | ~FileFilter () |
| Destructor. | |
| FileFilter & | addData (const FileData &ffd) |
| Adds the given data into the filter. | |
| FileFilter & | addData (const std::list< FileData > &datavec) |
| Adds arbitrary data to the filter. | |
| template<class Compare> | |
| FileFilter & | sort (Compare comp) |
| Sorts the data. | |
| FileFilter & | merge (const FileFilter &right) |
| Combines the data from the input filter to this object. | |
| template<class Compare> | |
| FileFilter & | merge (const FileFilter &right, Compare bp) |
| Combines the data from the input filter to this object using the predicate to sort the data it merges. | |
| template<class BinaryPredicate> | |
| FileFilter & | unique (BinaryPredicate bp) |
| After sorting, use this to filter the data. | |
| template<class Predicate> | |
| FileFilter & | filter (Predicate up) |
| This filters data based on a single test. | |
| template<class Operation> | |
| FileFilter & | touch (Operation &op) |
| Applies Operation on all the data elements, counting each one that gets modified (for which Operation returns true). | |
| template<class Operation> | |
| FileFilter & | touch (const Operation &op) |
| a const operator touch for the classes that need it. | |
| template<class BinaryPredicate> | |
| std::pair< std::list< FileData >, std::list< FileData > > | diff (const FileFilter< FileData > &r, BinaryPredicate p) const |
| Returns two lists - one of the data in *this that isn't in r and the second of data in r that isn't in *this. | |
| template<class Predicate> | |
| std::list< FileData > | findAll (Predicate p) const |
| Returns a list of data matching the given unary predicate. | |
| int | getFiltered () const |
| Returns the number of items filtered from the last filter() touch() or unique() call. | |
| std::list< FileData > & | getData (void) |
| Returns the contents of the data list. | |
| std::list< FileData > | getData (void) const |
| Returns the contents of the data list, const. | |
| std::list< FileData >::size_type | getDataCount (void) const |
| Returns the number of data items in the filter. | |
| std::list< FileData >::const_iterator | begin () const |
| std::list< FileData >::const_iterator | end () const |
| std::list< FileData >::iterator | begin () |
| std::list< FileData >::iterator | end () |
| bool | empty () const |
| void | clear () |
| std::list< FileData >::size_type | size () |
| FileData & | front () |
| const FileData & | front () const |
| FileData & | back () |
| const FileData & | back () const |
Protected Types | |
| typedef std::list< FileData > | lType |
| List of file data to be filtered. | |
| typedef std::list< FileData >::iterator | lItrType |
Protected Attributes | |
| lType | dataVec |
| int | filtered |
| A count of the last number of items filtered. | |
|
|
Definition at line 337 of file FileFilter.hpp. |
|
|
List of file data to be filtered.
Definition at line 335 of file FileFilter.hpp. |
|
|
Default constructor.
Definition at line 368 of file FileFilter.hpp. |
|
|
Destructor.
Definition at line 373 of file FileFilter.hpp. |
|
|
Adds arbitrary data to the filter.
Definition at line 387 of file FileFilter.hpp. References FileFilter::dataVec. |
|
|
Adds the given data into the filter.
Definition at line 379 of file FileFilter.hpp. References FileFilter::dataVec. Referenced by RTFileFrame::getFileFilter(), and main(). |
|
|
Definition at line 330 of file FileFilter.hpp. |
|
|
Definition at line 327 of file FileFilter.hpp. |
|
|
Definition at line 306 of file FileFilter.hpp. |
|
|
Definition at line 300 of file FileFilter.hpp. Referenced by FileFilter::diff(), and main(). |
|
|
Definition at line 315 of file FileFilter.hpp. |
|
||||||||||||
|
Returns two lists - one of the data in *this that isn't in r and the second of data in r that isn't in *this. Remember that /a p has to be a strict weak ordering on the data.
Definition at line 249 of file FileFilter.hpp. References FileFilter::begin(), FileFilter::dataVec, and FileFilter::end(). |
|
|
Definition at line 312 of file FileFilter.hpp. |
|
|
Definition at line 309 of file FileFilter.hpp. |
|
|
Definition at line 303 of file FileFilter.hpp. Referenced by FileFilter::diff(), and main(). |
|
|
This filters data based on a single test. All data that passes the UnaryPredicate (i.e. it returns true) is removed
Definition at line 194 of file FileFilter.hpp. Referenced by main(). |
|
|
Returns a list of data matching the given unary predicate.
Definition at line 270 of file FileFilter.hpp. |
|
|
Definition at line 324 of file FileFilter.hpp. |
|
|
Definition at line 321 of file FileFilter.hpp. |
|
|
Returns the contents of the data list, const.
Definition at line 294 of file FileFilter.hpp. |
|
|
Returns the contents of the data list.
Definition at line 291 of file FileFilter.hpp. Referenced by FileFilter::merge(). |
|
|
Returns the number of data items in the filter.
Definition at line 297 of file FileFilter.hpp. |
|
|
Returns the number of items filtered from the last filter() touch() or unique() call.
Definition at line 288 of file FileFilter.hpp. |
|
||||||||||||
|
Combines the data from the input filter to this object using the predicate to sort the data it merges. This should use list::merge(list, bp) but since it's broken in forte... Definition at line 154 of file FileFilter.hpp. References merge(), and gpstk::sort(). |
|
|
Combines the data from the input filter to this object.
Definition at line 397 of file FileFilter.hpp. References FileFilter::dataVec, and FileFilter::getData(). |
|
|
Definition at line 318 of file FileFilter.hpp. |
|
|
Sorts the data.
Definition at line 97 of file FileFilter.hpp. Referenced by main(). |
|
|
a const operator touch for the classes that need it.
Definition at line 238 of file FileFilter.hpp. |
|
|
Applies Operation on all the data elements, counting each one that gets modified (for which Operation returns true). The operation is passed by reference so that it can retain state information for use by the program calling it. Definition at line 220 of file FileFilter.hpp. |
|
|
After sorting, use this to filter the data.
Definition at line 160 of file FileFilter.hpp. Referenced by main(). |
|
|
Definition at line 336 of file FileFilter.hpp. Referenced by FileFilter::addData(), FileFilter::diff(), and FileFilter::merge(). |
|
|
A count of the last number of items filtered.
Definition at line 362 of file FileFilter.hpp. |
1.3.9.1