IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | List of all members
ipsdk::processor::RuleLeafsComparison< AttributeType1, LeafType1, AttributeType2, LeafType2, ValueComparisonRuleType > Class Template Reference

Concrete class for rule allowing to compare leaf values of data item attributes. More...

#include <RuleLeafsComparison.h>

Inheritance diagram for ipsdk::processor::RuleLeafsComparison< AttributeType1, LeafType1, AttributeType2, LeafType2, ValueComparisonRuleType >:
ipsdk::processor::BaseTLeafsComparisonRule< LeafType1::ValueType, ValueComparisonRuleType > ipsdk::processor::BaseLeafsComparisonRule ipsdk::processor::BaseLeafRule ipsdk::processor::BaseDataItemRule ipsdk::processor::BaseAttributeRule ipsdk::processor::BaseRule

Public Types

typedef boost::enable_if< typename boost::is_same< boost::mpl::int_< AttributeType1::g_attributeType >, boost::mpl::int_< eAttributeType::eAT_DataItem > >::type, typename AttributeType1::ValueType >::type DataItemType1
 retrieve DataItem node type associated to attribute
 
typedef boost::enable_if< typename boost::is_same< boost::mpl::int_< AttributeType2::g_attributeType >, boost::mpl::int_< eAttributeType::eAT_DataItem > >::type, typename AttributeType2::ValueType >::type DataItemType2
 retrieve DataItem node type associated to attribute
 
typedef boost::enable_if< typename boost::is_same< boost::mpl::int_< LeafType1::g_itemType >, boost::mpl::int_< eDataItemType::eDIT_Leaf > >::type, typename LeafType1::ValueType >::type ValueType1
 retrieve associated child node information structure
 
typedef boost::enable_if< typename boost::is_same< boost::mpl::int_< LeafType2::g_itemType >, boost::mpl::int_< eDataItemType::eDIT_Leaf > >::type, typename LeafType2::ValueType >::type ValueType2
 retrieve associated child node information structure
 
typedef boost::enable_if< typename boost::is_same< ValueType1, ValueType2 >::type, ValueType1 >::type ValueType
 Value type associated to leaf.
 
- Public Types inherited from ipsdk::processor::BaseTLeafsComparisonRule< LeafType1::ValueType, ValueComparisonRuleType >
typedef LeafType1::ValueType ValueType
 underlying type associated to attribute
 

Public Member Functions

void init (const boost::weak_ptr< const AttributeType1 > &pAttribute1, const boost::weak_ptr< const AttributeType2 > &pAttribute2)
 initialization of object More...
 
Constructors and destructor
 RuleLeafsComparison ()
 
 ~RuleLeafsComparison ()
 
- Public Member Functions inherited from ipsdk::processor::BaseTLeafsComparisonRule< LeafType1::ValueType, ValueComparisonRuleType >
eValueComparisonRuleType getValueComparisonRuleType () const
 retrieve value comparison rule operation type
 
 BaseTLeafsComparisonRule ()
 
virtual ~BaseTLeafsComparisonRule ()=0
 
- Public Member Functions inherited from ipsdk::processor::BaseLeafsComparisonRule
eLeafRuleType getLeafRuleType () const
 retrieve leaf rule operation type
 
 BaseLeafsComparisonRule ()
 
virtual ~BaseLeafsComparisonRule ()=0
 
- Public Member Functions inherited from ipsdk::processor::BaseLeafRule
eDataItemRuleType getDataItemRuleType () const
 retrieve data item rule operation type
 
 BaseLeafRule ()
 
virtual ~BaseLeafRule ()=0
 
- Public Member Functions inherited from ipsdk::processor::BaseDataItemRule
eAttributeRuleType getAttributeRuleType () const
 retrieve attribute rule operation type
 
 BaseDataItemRule ()
 
virtual ~BaseDataItemRule ()=0
 
- Public Member Functions inherited from ipsdk::processor::BaseAttributeRule
eRuleType getRuleType () const
 retrieve rule type
 
bool hasSecondAttribute () const
 check whether a second attribute is associated to rule More...
 
const BaseAttributegetAttribute1 () const
 retrieve first attribute associated to object More...
 
const BaseAttributegetAttribute2 () const
 retrieve second attribute associated to object More...
 
 BaseAttributeRule ()
 
virtual ~BaseAttributeRule ()=0
 
- Public Member Functions inherited from ipsdk::processor::BaseRule
bool isInit () const
 retrieve object initialization flag
 
BoolResult isSatisfied () const
 test whether rule is satisfied More...
 
std::string getRuleFormalString () const
 retrieve string expliciting rule content More...
 
std::string getRuleEvaluatedString () const
 retrieve rule evaluation string More...
 
 BaseRule ()
 
virtual ~BaseRule ()=0
 

Protected Member Functions

std::string getAttribute1Name () const
 method allowing to retrieve attributes name into derived class
 
std::string getAttribute2Name () const
 method allowing to retrieve attributes name into derived class
 
const ValueTypegetAttribute1Value () const
 method allowing to retrieve attribute value into derived class
 
const ValueTypegetAttribute2Value () const
 method allowing to retrieve attribute value into derived class
 
- Protected Member Functions inherited from ipsdk::processor::BaseAttributeRule
void initBase (const AttributeConstWeakPtr &pAttribute)
 base class initialization More...
 
void initBase (const AttributeConstWeakPtr &pAttribute1, const AttributeConstWeakPtr &pAttribute2)
 base class initialization More...
 
- Protected Member Functions inherited from ipsdk::processor::BaseRule
void initBase ()
 base class initialization method
 
std::string createRuleEvaluatedStartString (const ipUInt32 increment) const
 method allowing to create a rule evaluation starting string
 

Additional Inherited Members

- Static Public Attributes inherited from ipsdk::processor::BaseTLeafsComparisonRule< LeafType1::ValueType, ValueComparisonRuleType >
static const eValueComparisonRuleType::domain g_valueComparisonRuleType
 value comparison rule operation type
 
- Static Public Attributes inherited from ipsdk::processor::BaseLeafsComparisonRule
static const eLeafRuleType::domain g_leafRuleType = eLeafRuleType::eLRT_LeafsComparison
 attribute rule type associated to rule
 
- Static Public Attributes inherited from ipsdk::processor::BaseLeafRule
static const eDataItemRuleType::domain g_dataItemRuleType = eDataItemRuleType::eDIRT_Leaf
 data item rule type associated to rule
 
- Static Public Attributes inherited from ipsdk::processor::BaseDataItemRule
static const eAttributeRuleType::domain g_attributeRuleType = eAttributeRuleType::eART_DataItem
 attribute rule type associated to rule
 
- Static Public Attributes inherited from ipsdk::processor::BaseAttributeRule
static const eRuleType::domain g_ruleType = eRuleType::eRT_Attribute
 rule type associated to rule
 

Detailed Description

template<typename AttributeType1, typename LeafType1, typename AttributeType2, typename LeafType2, eValueComparisonRuleType::domain ValueComparisonRuleType>
class ipsdk::processor::RuleLeafsComparison< AttributeType1, LeafType1, AttributeType2, LeafType2, ValueComparisonRuleType >

Concrete class for rule allowing to compare leaf values of data item attributes.

Author
E. Noirfalise
Date
2016/03/16

Member Function Documentation

◆ init()

template<typename AttributeType1 , typename LeafType1 , typename AttributeType2 , typename LeafType2 , eValueComparisonRuleType::domain ValueComparisonRuleType>
void ipsdk::processor::RuleLeafsComparison< AttributeType1, LeafType1, AttributeType2, LeafType2, ValueComparisonRuleType >::init ( const boost::weak_ptr< const AttributeType1 > &  pAttribute1,
const boost::weak_ptr< const AttributeType2 > &  pAttribute2 
)
inline

initialization of object

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif pAttribute1.get() == 0
ipsdk::processor::IPSDKBaseProcessingExceptionif pAttribute2.get() == 0

The documentation for this class was generated from the following file: