16 #ifndef __IPSDKBASEPROCESSING_RULELEAFCOLLPROPERTY_H__ 17 #define __IPSDKBASEPROCESSING_RULELEAFCOLLPROPERTY_H__ 19 #include <IPSDKBaseProcessing/Rule/Attribute/DataItem/LeafColl/LeafCollProperty/BaseTLeafCollPropertyRule.h> 27 template <
typename AttributeType,
29 eValuePropertyRuleType::domain ValuePropertyRuleType>
31 ValuePropertyRuleType>
36 typedef typename boost::enable_if<typename boost::is_same<boost::mpl::int_<AttributeType::g_attributeType>,
37 boost::mpl::int_<eAttributeType::eAT_DataItem> >::type,
41 typedef typename boost::enable_if<typename boost::is_same<boost::mpl::int_<LeafType::g_itemType>,
42 boost::mpl::int_<eDataItemType::eDIT_LeafColl> >::type,
46 typedef typename boost::enable_if<typename boost::is_same<boost::mpl::int_<LeafType::g_itemType>,
47 boost::mpl::int_<eDataItemType::eDIT_LeafColl> >::type,
62 void init(
const boost::weak_ptr<const AttributeType>& pAttribute);
79 template <
typename AttributeType,
typename LeafType, eValuePropertyRuleType::domain ValuePropertyRuleType>
87 template <
typename AttributeType,
typename LeafType, eValuePropertyRuleType::domain ValuePropertyRuleType>
91 return AttributeType::getObjectNameStr() +
"::" +
92 DataItemType::template getNodeNameStr<LeafType>();
95 template <
typename AttributeType,
typename LeafType, eValuePropertyRuleType::domain ValuePropertyRuleType>
100 const AttributeType& derivedAttribute =
static_cast<const AttributeType&
>(this->getAttribute1());
102 return derivedAttribute.getNode().template getLeafColl<LeafType>();
111 #endif // __IPSDKBASEPROCESSING_RULELEAFCOLLPROPERTY_H__ Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
void initBase()
base class initialization method
void init(const boost::weak_ptr< const AttributeType > &pAttribute)
initialization of object
Definition: RuleLeafCollProperty.h:81
boost::enable_if< typename boost::is_same< boost::mpl::int_< LeafType::g_itemType >, boost::mpl::int_< eDataItemType::eDIT_LeafColl > >::type, typename LeafType::ValueType >::type ValueType
Value type associated to leaf.
Definition: RuleLeafCollProperty.h:43
const CollType & getAttributeLeafColl() const
method allowing to retrieve attribute leaf value collection into derived class
Definition: RuleLeafCollProperty.h:97
Concrete class for rule allowing to check properties of leaf collections of data item attributes...
Definition: RuleLeafCollProperty.h:30
Base template class for rule allowing to check properties of leaf collections of data item attributes...
Definition: BaseTLeafCollPropertyRule.h:28
std::string getAttributeName() const
method allowing to retrieve attribute name into derived class
Definition: RuleLeafCollProperty.h:89
boost::enable_if< typename boost::is_same< boost::mpl::int_< LeafType::g_itemType >, boost::mpl::int_< eDataItemType::eDIT_LeafColl > >::type, typename LeafType::CollType >::type CollType
Collection type associated to leaf.
Definition: RuleLeafCollProperty.h:48
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: RuleLeafCollProperty.h:38