00001 // $Id: HistoProperty.h,v 1.1 2007/09/26 16:13:41 marcocle Exp $ 00002 // ============================================================================ 00003 #ifndef GAUDIKERNEL_HISTOPROPERTY_H 00004 #define GAUDIKERNEL_HISTOPROPERTY_H 1 00005 // ============================================================================ 00006 // Include files 00007 // ============================================================================ 00008 // GaudiKernel 00009 // ============================================================================ 00010 #include "GaudiKernel/HistoDef.h" 00011 #include "GaudiKernel/Property.h" 00012 // ============================================================================ 00013 template <class TYPE> class BoundedVerifier ; 00014 template <class TYPE> class NullVerifier ; 00015 template <class TYPE,class VERIFIER> class SimpleProperty ; 00016 template <class TYPE,class VERIFIER> class SimplePropertyRef ; 00017 // ============================================================================ 00023 template <> 00024 inline bool 00025 BoundedVerifier<Gaudi::Histo1DDef>::isValid 00026 ( const Gaudi::Histo1DDef* value ) const 00027 { 00028 return 0 != value && value->ok() 00029 && ( ( m_hasLowerBound && ( *value < m_lowerBound ) ) ? false : true ) 00030 && ( ( m_hasUpperBound && ( m_upperBound < *value ) ) ? false : true ) ; 00031 } 00032 // ============================================================================ 00037 template <> 00038 inline bool 00039 NullVerifier<Gaudi::Histo1DDef>::isValid 00040 ( const Gaudi::Histo1DDef* value ) const 00041 { 00042 return 0 != value && value->ok() ; 00043 } 00044 // ============================================================================ 00046 typedef SimpleProperty <Gaudi::Histo1DDef> Histo1DProperty ; 00047 // ============================================================================ 00049 typedef SimplePropertyRef<Gaudi::Histo1DDef> Histo1DPropertyRef ; 00050 // ============================================================================ 00051 00052 // ============================================================================ 00053 // The END 00054 // ============================================================================ 00055 #endif // GAUDIKERNEL_HISTOPROPERTY_H 00056 // ============================================================================