Gaudi Framework, version v25r0

Home   Generated: Mon Feb 17 2014
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
ISelectStatement Class Referenceabstract

A select statement can either contain. More...

#include <GaudiKernel/ISelectStatement.h>

Inheritance diagram for ISelectStatement:
Inheritance graph
[legend]
Collaboration diagram for ISelectStatement:
Collaboration graph
[legend]

Public Types

enum  SelectType { FUNCTION =1<<1, STRING =1<<2, FULL =1<<3, OTHER =1<<4 }
 Statement type definition. More...
 
- Public Types inherited from IInterface
enum  Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR }
 Return status. More...
 
typedef Gaudi::InterfaceId
< IInterface, 0, 0 > 
iid
 Interface ID.
 
typedef mpl::set1< iidext_iids
 Extra interfaces.
 

Public Member Functions

 DeclareInterfaceID (ISelectStatement, 2, 0)
 InterfaceID.
 
virtual long type () const =0
 Access the type of the object.
 
virtual const std::stringcriteria () const =0
 Access the selection string.
 
virtual void setCriteria (const std::string &crit)=0
 Set the type.
 
virtual void setActive (bool flag=true)=0
 Change activity flag.
 
virtual bool isActive () const =0
 Check if selection is active.
 
virtual bool operator() (void *val)=0
 Stupid default implementation.
 
- Public Member Functions inherited from IInterface
virtual void * i_cast (const InterfaceID &) const =0
 main cast function
 
virtual std::vector< std::stringgetInterfaceNames () const =0
 Returns a vector of strings containing the names of all the implemented interfaces.
 
virtual unsigned long addRef ()=0
 Increment the reference count of Interface instance.
 
virtual unsigned long release ()=0
 Release Interface instance.
 
virtual unsigned long refCount () const =0
 Current reference count.
 
virtual StatusCode queryInterface (const InterfaceID &ti, void **pp)=0
 Set the void** to the pointer to the requested interface of the instance.
 
virtual ~IInterface ()
 Virtual destructor.
 

Additional Inherited Members

- Static Public Member Functions inherited from IInterface
static const InterfaceIDinterfaceID ()
 Return an instance of InterfaceID identifying the interface.
 

Detailed Description

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.

Author
M.Frank
Version
1.0

Definition at line 33 of file ISelectStatement.h.

Member Enumeration Documentation

Statement type definition.

Enumerator:
FUNCTION 
STRING 
FULL 
OTHER 

Definition at line 39 of file ISelectStatement.h.

{ FUNCTION=1<<1, STRING=1<<2, FULL=1<<3, OTHER=1<<4 };

Member Function Documentation

virtual const std::string& ISelectStatement::criteria ( ) const
pure virtual

Access the selection string.

Implemented in SelectStatement.

ISelectStatement::DeclareInterfaceID ( ISelectStatement  ,
,
 
)
virtual bool ISelectStatement::isActive ( ) const
pure virtual

Check if selection is active.

Implemented in SelectStatement.

virtual bool ISelectStatement::operator() ( void *  val)
pure virtual

Stupid default implementation.

Implemented in SelectStatement, and NTuple::Selector.

virtual void ISelectStatement::setActive ( bool  flag = true)
pure virtual

Change activity flag.

Implemented in SelectStatement.

virtual void ISelectStatement::setCriteria ( const std::string crit)
pure virtual

Set the type.

Implemented in SelectStatement.

virtual long ISelectStatement::type ( ) const
pure virtual

Access the type of the object.

Implemented in SelectStatement.


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

Generated at Mon Feb 17 2014 14:38:06 for Gaudi Framework, version v25r0 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004