IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RuleValueComparison.h
1 // RuleValueComparison.h:
3 // ----------------------
4 //
15 
16 #ifndef __IPSDKBASEPROCESSING_RULEVALUECOMPARISON_H__
17 #define __IPSDKBASEPROCESSING_RULEVALUECOMPARISON_H__
18 
19 #include <IPSDKBaseProcessing/Rule/Attribute/Value/ValueComparison/BaseTValueComparisonRule.h>
20 
21 namespace ipsdk {
22 namespace processor {
23 
26 
27 template <typename AttributeType,
28  eValueComparisonRuleType::domain ValueComparisonRuleType>
29 class RuleValueComparison : public BaseTValueComparisonRule<typename AttributeType::ValueType,
30  ValueComparisonRuleType>
31 {
32 // predefined public types
33 public:
35  typedef typename boost::enable_if<typename boost::is_same<boost::mpl::int_<AttributeType::g_attributeType>,
36  boost::mpl::int_<eAttributeType::eAT_Value> >::type,
37  typename AttributeType::ValueType>::type ValueType;
38 
39 public:
45 
46 // methods
47 public:
51  void init(const boost::weak_ptr<const AttributeType>& pAttribute,
52  const ValueType& value);
53 
54 // attributes
55 protected:
56 
57 };
58 
61 
62 template <typename AttributeType, eValueComparisonRuleType::domain ValueComparisonRuleType>
63 inline void
64 RuleValueComparison<AttributeType, ValueComparisonRuleType>::init(const boost::weak_ptr<const AttributeType>& pAttribute,
65  const ValueType& value)
66 {
67  // call of base class initialization method
69 }
70 
73 
74 } // end of namespace processor
75 } // end of namespace ipsdk
76 
77 #endif // __IPSDKBASEPROCESSING_RULEVALUECOMPARISON_H__
boost::enable_if< typename boost::is_same< boost::mpl::int_< AttributeType::g_attributeType >, boost::mpl::int_< eAttributeType::eAT_Value > >::type, typename AttributeType::ValueType >::type ValueType
retrieve attribute type
Definition: RuleValueComparison.h:37
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
void init(const boost::weak_ptr< const AttributeType > &pAttribute, const ValueType &value)
initialization of object
Definition: RuleValueComparison.h:64
void initBase()
base class initialization method
Concrete class for rules allowing to compare an attribute value with a given value.
Definition: RuleValueComparison.h:29
Base template class for rules allowing to compare an attribute value with a given value...
Definition: BaseTValueComparisonRule.h:33