TemplateUtil::binary_deref< Predicate > Struct Template Reference

#include <TemplateUtil.h>

Inherits binary_function< Predicate::first_argument_type *, Predicate::second_argument_type *, bool >.

Collaboration diagram for TemplateUtil::binary_deref< Predicate >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef binary_function< typename
Predicate::first_argument_type *,
typename Predicate::second_argument_type *,
bool >::first_argument_type 
first_argument_type
typedef binary_function< typename
Predicate::first_argument_type *,
typename Predicate::second_argument_type *,
bool >::second_argument_type 
second_argument_type
typedef binary_function< typename
Predicate::first_argument_type *,
typename Predicate::second_argument_type *,
bool >::result_type 
result_type

Public Member Functions

 binary_deref (const Predicate &p)
bool operator() (const first_argument_type &x, const second_argument_type &y) const

Public Attributes

Predicate myPred

Detailed Description

template<class Predicate>
struct TemplateUtil::binary_deref< Predicate >

This works similarly to unary_deref and converts a binary functor that operates on non-pointer values into a binary functor that operates on pointer values by dereferencing the pointers before passing them to your function.

Definition at line 106 of file TemplateUtil.h.


Member Typedef Documentation

template<class Predicate>
typedef binary_function<typename Predicate::first_argument_type *, typename Predicate::second_argument_type *, bool>::first_argument_type TemplateUtil::binary_deref< Predicate >::first_argument_type
 

Definition at line 112 of file TemplateUtil.h.

template<class Predicate>
typedef binary_function<typename Predicate::first_argument_type *, typename Predicate::second_argument_type *, bool>::result_type TemplateUtil::binary_deref< Predicate >::result_type
 

Definition at line 118 of file TemplateUtil.h.

template<class Predicate>
typedef binary_function<typename Predicate::first_argument_type *, typename Predicate::second_argument_type *, bool>::second_argument_type TemplateUtil::binary_deref< Predicate >::second_argument_type
 

Definition at line 115 of file TemplateUtil.h.


Constructor & Destructor Documentation

template<class Predicate>
TemplateUtil::binary_deref< Predicate >::binary_deref const Predicate &  p  )  [inline, explicit]
 

Definition at line 120 of file TemplateUtil.h.

References TemplateUtil::binary_deref< Predicate >::myPred.


Member Function Documentation

template<class Predicate>
bool TemplateUtil::binary_deref< Predicate >::operator() const first_argument_type x,
const second_argument_type y
const [inline]
 

Definition at line 124 of file TemplateUtil.h.

References TemplateUtil::binary_deref< Predicate >::myPred.


Member Data Documentation

template<class Predicate>
Predicate TemplateUtil::binary_deref< Predicate >::myPred
 

Definition at line 131 of file TemplateUtil.h.

Referenced by TemplateUtil::binary_deref< Predicate >::binary_deref(), and TemplateUtil::binary_deref< Predicate >::operator()().


The documentation for this struct was generated from the following file:
Generated on Sat Dec 3 10:48:35 2005 for Robotics by  doxygen 1.4.5