Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::astar::TracerTraits_< T > Struct Template Reference

#include <src/libslic3r/AStar.hpp>

Public Types

using Node = typename T::Node
 

Static Public Member Functions

template<class Fn >
static void foreach_reachable (const T &tracer, const Node &src, Fn &&fn)
 
static float distance (const T &tracer, const Node &a, const Node &b)
 
static float goal_heuristic (const T &tracer, const Node &n)
 
static size_t unique_id (const T &tracer, const Node &n)
 

Detailed Description

template<class T>
struct Slic3r::astar::TracerTraits_< T >

Member Typedef Documentation

◆ Node

template<class T >
using Slic3r::astar::TracerTraits_< T >::Node = typename T::Node

Member Function Documentation

◆ distance()

template<class T >
static float Slic3r::astar::TracerTraits_< T >::distance ( const T &  tracer,
const Node a,
const Node b 
)
inlinestatic
34 {
35 return tracer.distance(a, b);
36 }

◆ foreach_reachable()

template<class T >
template<class Fn >
static void Slic3r::astar::TracerTraits_< T >::foreach_reachable ( const T &  tracer,
const Node src,
Fn &&  fn 
)
inlinestatic
27 {
28 tracer.foreach_reachable(src, fn);
29 }

◆ goal_heuristic()

template<class T >
static float Slic3r::astar::TracerTraits_< T >::goal_heuristic ( const T &  tracer,
const Node n 
)
inlinestatic
44 {
45 return tracer.goal_heuristic(n);
46 }

◆ unique_id()

template<class T >
static size_t Slic3r::astar::TracerTraits_< T >::unique_id ( const T &  tracer,
const Node n 
)
inlinestatic
50 {
51 return tracer.unique_id(n);
52 }

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