angel::heuristic_pair_t< Heuristic1_t, Heuristic2_t > Class Template Reference

Make a pair of heuristics. More...

#include <heuristics.hpp>

Collaboration diagram for angel::heuristic_pair_t< Heuristic1_t, Heuristic2_t >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 heuristic_pair_t (Heuristic1_t _h1, Heuristic2_t _h2)
 Constructor with.
template<class Vector_t, class Ad_graph_t>
int operator() (const Vector_t &v1, const Ad_graph_t &adg, Vector_t &v2)
 Operator that behaves like one heuristic function.

Private Attributes

Heuristic1_t h1
Heuristic2_t h2


Detailed Description

template<class Heuristic1_t, class Heuristic2_t>
class angel::heuristic_pair_t< Heuristic1_t, Heuristic2_t >

Make a pair of heuristics.

Two heuristics are semantically and syntactically combined to one heuristic. Objects of this class can passed where a heuristic is used in a template or can be called like heuristic functions. For instance, heuristic_pair_t<lowest_markowitz_vertex_t, reverse_mode_vertex_t> lmrm; lmrm (v1, cg, v2); is identical with lowest_markowitz_vertex (v1, cg, vtmp); reverse_mode_vertex (vtmp, cg, v2).

See also:
use_heuristic

Definition at line 1100 of file heuristics.hpp.


Constructor & Destructor Documentation

template<class Heuristic1_t, class Heuristic2_t>
angel::heuristic_pair_t< Heuristic1_t, Heuristic2_t >::heuristic_pair_t ( Heuristic1_t  _h1,
Heuristic2_t  _h2 
) [inline]

Constructor with.

Definition at line 1106 of file heuristics.hpp.


Member Function Documentation

template<class Heuristic1_t, class Heuristic2_t>
template<class Vector_t, class Ad_graph_t>
int angel::heuristic_pair_t< Heuristic1_t, Heuristic2_t >::operator() ( const Vector_t &  v1,
const Ad_graph_t &  adg,
Vector_t &  v2 
) [inline]

Operator that behaves like one heuristic function.

Definition at line 1110 of file heuristics.hpp.

References angel::heuristic_pair_t< Heuristic1_t, Heuristic2_t >::h1, and angel::heuristic_pair_t< Heuristic1_t, Heuristic2_t >::h2.


Member Data Documentation

template<class Heuristic1_t, class Heuristic2_t>
Heuristic1_t angel::heuristic_pair_t< Heuristic1_t, Heuristic2_t >::h1 [private]

Definition at line 1102 of file heuristics.hpp.

Referenced by angel::heuristic_pair_t< Heuristic1_t, Heuristic2_t >::operator()().

template<class Heuristic1_t, class Heuristic2_t>
Heuristic2_t angel::heuristic_pair_t< Heuristic1_t, Heuristic2_t >::h2 [private]

Definition at line 1103 of file heuristics.hpp.

Referenced by angel::heuristic_pair_t< Heuristic1_t, Heuristic2_t >::operator()().


The documentation for this class was generated from the following file:
Generated on Wed Mar 11 10:35:07 2009 for angel by  doxygen 1.5.3