BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/DecayChain/include/DecayChain/Function/DCSelectionFunction.h
Go to the documentation of this file.
1#ifndef DCHAIN_SELECTIONFUNCTION_H
2#define DCHAIN_SELECTIONFUNCTION_H
3// -*- C++ -*-
4//
5// Package: DChain
6// Module: SelectionFunction
7//
8// Description: Base class for selection functional objects
9//
10// Usage:
11// <usage>
12//
13// Author: Simon Patton
14// Created: Wed Sep 18 15:46:35 EDT 1996
15// $Id: DCSelectionFunction.h,v 1.1.1.1 2009/03/03 06:06:56 maqm Exp $
16//
17// Revision history
18//
19// $Log: DCSelectionFunction.h,v $
20// Revision 1.1.1.1 2009/03/03 06:06:56 maqm
21// first import of DecayChain
22//
23// Revision 1.3 2006/01/11 20:28:13 cdj
24// massive class renaming, addition of [] for selection and unit tests
25//
26// Revision 1.2 2003/10/01 23:45:18 cdj
27// added compound selection function
28//
29// Revision 1.1.1.1 2000/12/18 22:16:49 cdj
30// imported DChain
31//
32// Revision 1.7 1998/08/27 04:55:17 sjp
33// added include of defn when required
34//
35// Revision 1.6 1998/08/20 19:57:29 sjp
36// Modified to use DChainBoolean
37//
38// Revision 1.5 1998/04/17 19:12:10 sjp
39// Modified to use latest type
40//
41// Revision 1.4 1997/08/15 21:31:54 sjp
42// Updated to use <package>/<file>.h include structure.
43// Updated to use bug flags specified in Experiement.h
44//
45// Revision 1.3 1997/01/21 20:31:22 sjp
46// Changed CPP flags and include because of library reorganization
47//
48// Revision 1.2 1996/12/20 21:08:15 sjp
49// Modified to support FILENAME_ONLY
50//
51// Revision 1.1 1996/11/04 16:49:42 sjp
52// New function for use in conjunction with new `Lists'
53//
54
55// system include files
56#include <functional>
57
58// user include files
59
60// forward declarations
61
62template <class Arg> class DCSelectionFunction : public std::unary_function<Arg&, bool> {
63 // friend classses and functions
64
65public:
66 // constants, enums and typedefs
67
68 // Constructors and destructor
71
72 // member functions
73 virtual bool operator()( Arg& ) = 0;
74
75 // const member functions
76 bool operator()( Arg& iArg ) const {
77 return const_cast<DCSelectionFunction<Arg>*>( this )->operator()( iArg );
78 }
79
80 // static member functions
81
82protected:
83 // protected member functions
84
85 // protected const member functions
86
87private:
88 // Constructors and destructor
89 // DCSelectionFunction( const DCSelectionFunction< Arg >& ) ; // stop default
90
91 // assignment operator(s)
92 // const DCSelectionFunction& operator=( const DCSelectionFunction< Arg >& ) ; // stop
93 // default
94
95 // private member functions
96
97 // private const member functions
98
99 // data members
100
101 // static data members
102};
103
104// inline function definitions
105
106#endif /* DCHAIN_SELECTIONFUNCTION_H */
virtual bool operator()(Arg &)=0