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

Make a pair of heuristics. More...

#include <heuristics.hpp>

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 1108 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 1114 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 1118 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]
template<class Heuristic1_t , class Heuristic2_t >
Heuristic2_t angel::heuristic_pair_t< Heuristic1_t, Heuristic2_t >::h2 [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines