![]() |
The Gaudi Framework
v25r3
|
Class of a selection statement. More...
#include <GaudiKernel/SelectStatement.h>
Public Member Functions | |
SelectStatement (const std::string &s, long typ) | |
Standard Constructor initializing select string. More... | |
SelectStatement (const std::string &s) | |
Standard Constructor initializing select string. More... | |
SelectStatement () | |
Standard Constructor initializing function call. More... | |
virtual | ~SelectStatement () |
Standard Destructor. More... | |
long | type () const |
Access the type of the object. More... | |
const std::string & | criteria () const |
Access the selection string. More... | |
void | setCriteria (const std::string &crit) |
Set the type. More... | |
void | setActive (bool flag=true) |
Change activity flag. More... | |
bool | isActive () const |
Check if selection is active. More... | |
virtual bool | operator() (void *) |
Stupid default implementation. More... | |
![]() | |
virtual | ~extend_interfaces1 () |
Virtual destructor. More... | |
![]() | |
DeclareInterfaceID (ISelectStatement, 2, 0) | |
InterfaceID. More... | |
![]() | |
virtual void * | i_cast (const InterfaceID &) const =0 |
main cast function More... | |
virtual std::vector< std::string > | getInterfaceNames () const =0 |
Returns a vector of strings containing the names of all the implemented interfaces. More... | |
virtual unsigned long | addRef ()=0 |
Increment the reference count of Interface instance. More... | |
virtual unsigned long | release ()=0 |
Release Interface instance. More... | |
virtual unsigned long | refCount () const =0 |
Current reference count. More... | |
virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp)=0 |
Set the void** to the pointer to the requested interface of the instance. More... | |
virtual | ~IInterface () |
Virtual destructor. More... | |
Protected Attributes | |
std::string | m_select |
Select string. More... | |
bool | m_isActive |
Activation flag. More... | |
long | m_type |
Type identifier. More... | |
Additional Inherited Members | |
![]() | |
typedef implements1 | base_class |
Typedef to this class. More... | |
typedef extend_interfaces1 < ISelectStatement > | extend_interfaces_base |
Typedef to the base of this class. More... | |
typedef extend_interfaces_base::ext_iids | interfaces |
MPL set of all the implemented interfaces. More... | |
![]() | |
typedef ISelectStatement::iid::iids::type | ext_iids |
MPL set of interfaces extended by this one. More... | |
![]() | |
enum | SelectType { FUNCTION =1<<1, STRING =1<<2, FULL =1<<3, OTHER =1<<4 } |
Statement type definition. More... | |
![]() | |
enum | Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR } |
Return status. More... | |
typedef Gaudi::InterfaceId < IInterface, 0, 0 > | iid |
Interface ID. More... | |
typedef mpl::set1< iid > | ext_iids |
Extra interfaces. More... | |
![]() | |
static const InterfaceID & | interfaceID () |
Return an instance of InterfaceID identifying the interface. More... | |
Class of a selection statement.
A select statement can either contain
bool MySelect::operator()(IValueLocator* l) { float px, py, pz; if ( l->get("PX",px) && l->get("PY",py) && l->get("PZ",pz) ) { float mom = sqrt(px*px+py*py+pz*pz); return mom > 100.0 * GeV; } return false; }
if "true" is returned, the object will be loaded completely.
History: +------—+-------------------------------------------—+-----—+ | Date | Comment | Who | +------—+-------------------------------------------—+-----—+ | 21/10/99| Initial version. | MF | +------—+-------------------------------------------—+-----—+ Author: M.Frank Version: 1.0
Definition at line 46 of file SelectStatement.h.
|
inlineexplicit |
|
inlineexplicit |
Standard Constructor initializing select string.
Definition at line 54 of file SelectStatement.h.
|
inlineexplicit |
Standard Constructor initializing function call.
Definition at line 59 of file SelectStatement.h.
|
inlinevirtual |
|
inlinevirtual |
Access the selection string.
Implements ISelectStatement.
Definition at line 71 of file SelectStatement.h.
|
inlinevirtual |
Check if selection is active.
Implements ISelectStatement.
Definition at line 84 of file SelectStatement.h.
|
inlinevirtual |
Stupid default implementation.
Implements ISelectStatement.
Reimplemented in NTuple::Selector.
Definition at line 88 of file SelectStatement.h.
|
inlinevirtual |
|
inlinevirtual |
Set the type.
Implements ISelectStatement.
Definition at line 75 of file SelectStatement.h.
|
inlinevirtual |
Access the type of the object.
Implements ISelectStatement.
Definition at line 67 of file SelectStatement.h.
|
protected |
Activation flag.
Definition at line 95 of file SelectStatement.h.
|
protected |
Select string.
Definition at line 93 of file SelectStatement.h.
|
protected |
Type identifier.
Definition at line 97 of file SelectStatement.h.