15 #ifndef __IPSDKBASEPROCESSING_RULEATTRIBUTECOMPARISON_H__ 16 #define __IPSDKBASEPROCESSING_RULEATTRIBUTECOMPARISON_H__ 18 #include <IPSDKBaseProcessing/Rule/Attribute/Value/AttributeComparison/BaseTAttributeComparisonRule.h> 26 template <
typename AttributeType1,
27 typename AttributeType2,
28 eValueComparisonRuleType::domain ValueComparisonRuleType>
30 ValueComparisonRuleType>
35 typedef typename boost::enable_if<typename boost::is_same<boost::mpl::int_<AttributeType1::g_attributeType>,
36 boost::mpl::int_<eAttributeType::eAT_Value> >::type,
40 typedef typename boost::enable_if<typename boost::is_same<boost::mpl::int_<AttributeType2::g_attributeType>,
41 boost::mpl::int_<eAttributeType::eAT_Value> >::type,
45 typedef typename boost::enable_if<typename boost::is_same<ValueType1, ValueType2>::type,
62 void init(
const boost::weak_ptr<const AttributeType1>& pAttribute1,
63 const boost::weak_ptr<const AttributeType2>& pAttribute2);
73 template <
typename AttributeType1,
typename AttributeType2, eValueComparisonRuleType::domain ValueComparisonRuleType>
76 const boost::weak_ptr<const AttributeType2>& pAttribute2)
88 #endif // __IPSDKBASEPROCESSING_RULEATTRIBUTECOMPARISON_H__ Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
boost::enable_if< typename boost::is_same< boost::mpl::int_< AttributeType2::g_attributeType >, boost::mpl::int_< eAttributeType::eAT_Value > >::type, typename AttributeType2::ValueType >::type ValueType2
retrieve second attribute type
Definition: RuleAttributeComparison.h:42
Base template class for rules allowing to compare attributes value.
Definition: BaseTAttributeComparisonRule.h:27
void initBase()
base class initialization method
void init(const boost::weak_ptr< const AttributeType1 > &pAttribute1, const boost::weak_ptr< const AttributeType2 > &pAttribute2)
initialization of object
Definition: RuleAttributeComparison.h:75
Concrete class for rules allowing to compare attributes value.
Definition: RuleAttributeComparison.h:29
boost::enable_if< typename boost::is_same< boost::mpl::int_< AttributeType1::g_attributeType >, boost::mpl::int_< eAttributeType::eAT_Value > >::type, typename AttributeType1::ValueType >::type ValueType1
retrieve first attribute type
Definition: RuleAttributeComparison.h:37
boost::enable_if< typename boost::is_same< ValueType1, ValueType2 >::type, ValueType1 >::type ValueType
underlying type associated to attribute
Definition: RuleAttributeComparison.h:46