16 #ifndef __IPSDKBASEPROCESSING_RULELEAFCOLLSIZE_H__ 17 #define __IPSDKBASEPROCESSING_RULELEAFCOLLSIZE_H__ 19 #include <IPSDKBaseProcessing/Rule/Attribute/DataItem/LeafColl/Size/BaseTLeafCollSizeRule.h> 27 template <
typename AttributeType,
28 typename LeafCollType,
29 eValueComparisonRuleType::domain ValueComparisonRuleType>
35 typedef typename boost::enable_if<typename boost::is_same<boost::mpl::int_<AttributeType::g_attributeType>,
36 boost::mpl::int_<eAttributeType::eAT_DataItem> >::type,
40 typedef typename boost::enable_if<typename boost::is_same<boost::mpl::int_<LeafCollType::g_itemType>,
41 boost::mpl::int_<eDataItemType::eDIT_LeafColl> >::type,
56 void init(
const boost::weak_ptr<const AttributeType>& pAttribute,
79 template <
typename AttributeType,
typename LeafCollType, eValueComparisonRuleType::domain ValueComparisonRuleType>
91 template <
typename AttributeType,
typename LeafCollType, eValueComparisonRuleType::domain ValueComparisonRuleType>
95 return AttributeType::getObjectNameStr() +
"::" +
96 DataItemType::template getNodeNameStr<LeafCollType>() +
"{size}";
99 template <
typename AttributeType,
typename LeafCollType, eValueComparisonRuleType::domain ValueComparisonRuleType>
106 template <
typename AttributeType,
typename LeafCollType, eValueComparisonRuleType::domain ValueComparisonRuleType>
111 const AttributeType& derivedAttribute =
static_cast<const AttributeType&
>(this->getAttribute1());
113 return derivedAttribute.getNode().template getSize<LeafCollType>();
122 #endif // __IPSDKBASEPROCESSING_RULELEAFCOLLSIZE_H__ Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
std::string getAttributeName() const
method allowing to retrieve attribute name into derived class
Definition: RuleLeafCollSize.h:93
ipUInt32 getTargetSize() const
method allowing to retrieve target size into derived class
Definition: RuleLeafCollSize.h:101
ipUInt32 getCollSize() const
method allowing to retrieve collection size into derived class
Definition: RuleLeafCollSize.h:108
void initBase()
base class initialization method
boost::enable_if< typename boost::is_same< boost::mpl::int_< AttributeType::g_attributeType >, boost::mpl::int_< eAttributeType::eAT_DataItem > >::type, typename AttributeType::ValueType >::type DataItemType
retrieve attribute type
Definition: RuleLeafCollSize.h:37
boost::enable_if< typename boost::is_same< boost::mpl::int_< LeafCollType::g_itemType >, boost::mpl::int_< eDataItemType::eDIT_LeafColl > >::type, typename LeafCollType::ValueType >::type ValueType
Value type associated to leaf.
Definition: RuleLeafCollSize.h:42
ipUInt32 _value
value associated to rule
Definition: RuleLeafCollSize.h:73
Base template class for rules on size of leaf collections of data item attributes.
Definition: BaseTLeafCollSizeRule.h:28
Concrete class for rules on size of leaf collections of data item attributes.
Definition: RuleLeafCollSize.h:30
void init(const boost::weak_ptr< const AttributeType > &pAttribute, const ipUInt32 value)
initialization of object
Definition: RuleLeafCollSize.h:81
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53