StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
StiFilter Class Reference

Public Types

enum  FilterMode {
  Null =0, Bool, ByValue, ByRange,
  ByExcludedRange
}
 

Public Member Functions

 StiFilter ()
 Instantiation of a null filter.
 
 StiFilter (bool v, const string &n="noname", bool u=true)
 Instantiation of a boolean filter.
 
 StiFilter (int v, const string &n="noname", bool u=true)
 Instantiation of a filter by value using integer as input.
 
 StiFilter (double v, const string &n="noname", bool u=true)
 Instantiation of a filter by value using double as input.
 
 StiFilter (double min, double max, const string &n="noname", bool u=true)
 Instantiation of a filter by range using double as input.
 
 StiFilter (double min, double max, bool reverse, const string &n="noname", bool u=true)
 Instantiation of a filter by range using double as input and with selective normal/reverse logic.
 
 StiFilter (const StiFilter &sp)
 Copy Ctr.
 
void setName (const string &n)
 
void setUsed (bool u)
 
void setValue (bool value)
 
void setValue (int value)
 
void setValue (double value)
 
void setRange (double min, double max)
 
void set (double min, double max, bool reverse, const string &n, bool u)
 
string getName ()
 
bool isUsed ()
 
double getValue ()
 
double getMinimum ()
 
double getMaximum ()
 
virtual bool accept (bool value)
 Filter by value with Bool as input.
 
virtual bool accept (int value)
 Filter by value with int as input.
 
virtual bool accept (double value)
 Filter by value, range or excluded range with double as input.
 

Protected Attributes

string name
 
bool used
 
double minimum
 
double maximum
 
int mode
 

Friends

ostream & operator<< (ostream &os, const StiFilter &)
 

Detailed Description

Definition at line 9 of file StiFilter.h.


The documentation for this class was generated from the following file: