/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenBase/EvtPointPred.hh

Go to the documentation of this file.
00001 /*******************************************************************************
00002  * Project: BaBar detector at the SLAC PEP-II B-factory
00003  * Package: EvtGenBase
00004  *    File: $Id: EvtPointPred.hh,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
00005  *  Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
00006  *
00007  * Copyright (C) 2002 Caltech
00008  *******************************************************************************/
00009 
00010 // Predicate testing validity of a point. The point class must provide
00011 // bool isValid() method
00012 
00013 #ifndef EVT_POINT_PRED_HH
00014 #define EVT_POINT_PRED_HH
00015 
00016 template <class Point> class EvtPointPred {
00017 public:
00018   
00019   typedef Point argument_type;
00020   typedef bool result_type;
00021   
00022   EvtPointPred() {}
00023   EvtPointPred(const EvtPointPred&) {}
00024   ~EvtPointPred() {}
00025   
00026   result_type operator()(argument_type x) 
00027   {
00028     return x.isValid();
00029   }
00030 };
00031 

Generated on Tue Nov 29 23:12:14 2016 for BOSS_7.0.2 by  doxygen 1.4.7