PCL
Association Operators and Utility Functions

Functions

template<typename T1 , typename T2 >
Association< T1, T2 > pcl::Associate (const T1 &x1, const T2 &x2)
 
template<typename T1 , typename T2 >
bool pcl::operator< (const Association< T1, T2 > &x1, const Association< T1, T2 > &x2)
 
template<typename T1 , typename T2 >
bool pcl::operator== (const Association< T1, T2 > &x1, const Association< T1, T2 > &x2)
 

Detailed Description

Function Documentation

◆ Associate()

template<typename T1 , typename T2 >
Association<T1,T2> pcl::Associate ( const T1 &  x1,
const T2 &  x2 
)
inline

Returns an Association whose members are copies of the specified objects x1 and x2.

Definition at line 115 of file Association.h.

Referenced by pcl::FindNotEqual().

◆ operator<()

template<typename T1 , typename T2 >
bool pcl::operator< ( const Association< T1, T2 > &  x1,
const Association< T1, T2 > &  x2 
)
inline

Returns true iff an association x1 is less than other association x2. The comparison algorithm is as follows:

if ( x1.first == x2.first )
return x1.second < x2.second;
else
return x1.first < x2.first;

So in association comparisons the first member of each association has precedence over the second member.

The implementation of this operator only requires less than semantics for the two types T1 and T2; it doesn't use equality operators.

Definition at line 150 of file Association.h.

◆ operator==()

template<typename T1 , typename T2 >
bool pcl::operator== ( const Association< T1, T2 > &  x1,
const Association< T1, T2 > &  x2 
)
inline

Returns true iff two associations, x1 and x2, are equal. Two associations are equal if their homolog members are equal.

Definition at line 126 of file Association.h.

References pcl::Association< T1, T2 >::first, and pcl::Association< T1, T2 >::second.