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

PLearn::FilterSplitter Class Reference

#include <FilterSplitter.h>

Inheritance diagram for PLearn::FilterSplitter:

Inheritance graph
[legend]
Collaboration diagram for PLearn::FilterSplitter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FilterSplitter ()
virtual void build ()
 Should call simply inherited::build(), then this class's build_().

virtual void makeDeepCopyFromShallowCopy (map< const void *, void * > &copies)
 Transforms a shallow copy into a deep copy.

 PLEARN_DECLARE_OBJECT (FilterSplitter)
 Declares name and deepCopy methods.

virtual int nsplits () const
 Returns the number of available different "splits".

virtual int nSetsPerSplit () const
 Returns the number of sets per split.

virtual TVec< VMatgetSplit (int i=0)
 Returns split number i.


Public Attributes

TVec< stringfilters
 The string that you would normally put inside the filter.


Static Protected Member Functions

void declareOptions (OptionList &ol)
 Declares this class' options.


Private Types

typedef Splitter inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

typedef Splitter PLearn::FilterSplitter::inherited [private]
 

Reimplemented from PLearn::Splitter.

Definition at line 57 of file FilterSplitter.h.


Constructor & Destructor Documentation

PLearn::FilterSplitter::FilterSplitter  ) 
 

Definition at line 50 of file FilterSplitter.cc.


Member Function Documentation

void PLearn::FilterSplitter::build  )  [virtual]
 

Should call simply inherited::build(), then this class's build_().

This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object.

Reimplemented from PLearn::Object.

Definition at line 92 of file FilterSplitter.cc.

References build_().

void PLearn::FilterSplitter::build_  )  [private]
 

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 80 of file FilterSplitter.cc.

Referenced by build().

void PLearn::FilterSplitter::declareOptions OptionList ol  )  [static, protected]
 

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 62 of file FilterSplitter.cc.

References PLearn::declareOption(), and PLearn::OptionList.

TVec< VMat > PLearn::FilterSplitter::getSplit int  i = 0  )  [virtual]
 

Returns split number i.

Implements PLearn::Splitter.

Definition at line 116 of file FilterSplitter.cc.

References PLearn::TVec< T >::append(), filters, k, PLearn::TVec< string >::length(), PLearn::newFilename(), and PLERROR.

void PLearn::FilterSplitter::makeDeepCopyFromShallowCopy map< const void *, void * > &  copies  )  [virtual]
 

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::Splitter.

Definition at line 98 of file FilterSplitter.cc.

References PLearn::deepCopyField(), and filters.

int PLearn::FilterSplitter::nSetsPerSplit  )  const [virtual]
 

Returns the number of sets per split.

Implements PLearn::Splitter.

Definition at line 110 of file FilterSplitter.cc.

References filters, and PLearn::TVec< string >::length().

int PLearn::FilterSplitter::nsplits  )  const [virtual]
 

Returns the number of available different "splits".

Implements PLearn::Splitter.

Definition at line 104 of file FilterSplitter.cc.

PLearn::FilterSplitter::PLEARN_DECLARE_OBJECT FilterSplitter   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

TVec<string> PLearn::FilterSplitter::filters
 

The string that you would normally put inside the filter.

Definition at line 71 of file FilterSplitter.h.

Referenced by getSplit(), makeDeepCopyFromShallowCopy(), and nSetsPerSplit().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:26:15 2004 for PLearn by doxygen 1.3.7