PFUNC 1.0
Public Types | Public Member Functions
pfunc::detail::compare_task_ptr< Attribute, Functor > Struct Template Reference

#include <pfunc/prio.hpp>

List of all members.

Public Types

typedef bool result_type
typedef task< Attribute,
Functor > * 
first_argument_type
typedef first_argument_type second_argument_type

Public Member Functions

bool operator() (first_argument_type ptr1, second_argument_type ptr2) const

Detailed Description

template<typename Attribute, typename Functor>
struct pfunc::detail::compare_task_ptr< Attribute, Functor >

Predicate that compares two task pointers. If the first is "before" the "second" task structure, the predicate returns true.


Member Typedef Documentation

template<typename Attribute, typename Functor>
typedef task<Attribute, Functor>* pfunc::detail::compare_task_ptr< Attribute, Functor >::first_argument_type

Type of the first argument

template<typename Attribute, typename Functor>
typedef bool pfunc::detail::compare_task_ptr< Attribute, Functor >::result_type

Type of the result for operator()

template<typename Attribute, typename Functor>
typedef first_argument_type pfunc::detail::compare_task_ptr< Attribute, Functor >::second_argument_type

< Type of the second argument


Member Function Documentation

template<typename Attribute, typename Functor>
bool pfunc::detail::compare_task_ptr< Attribute, Functor >::operator() ( first_argument_type  ptr1,
second_argument_type  ptr2 
) const [inline]

Determine whether first argument comes before the second according to priorities (task->attribute->priority) of the tasks to which these arguments point to. (task->attribute->compare_type) is used for comparison.

Parameters:
[in]ptr1Pointer to the first task.
[in]ptr2Pointer to the second task.
Returns:
true Task at ptr1 comes before task at ptr2.
false Task at ptr1 does not come before task at ptr2.

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