bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
cubeai::astar_impl Namespace Reference

Classes

struct  fcost_astar_node_compare
 
struct  id_astar_node_compare
 

Functions

template<typename MapType , typename KeyArgType , typename ValueArgType >
MapType::iterator add_or_update_map (MapType &map, const KeyArgType &k, const ValueArgType &v)
 See Scott Meyers Effective STL Item 24 for this function. If k isn't in the map efficiently add pair (k,v) otherwise efficiently update to v the value associated with k. Return an interator to the added or modified pair.
 

Function Documentation

◆ add_or_update_map()

template<typename MapType , typename KeyArgType , typename ValueArgType >
MapType::iterator cubeai::astar_impl::add_or_update_map ( MapType &  map,
const KeyArgType &  k,
const ValueArgType &  v 
)

See Scott Meyers Effective STL Item 24 for this function. If k isn't in the map efficiently add pair (k,v) otherwise efficiently update to v the value associated with k. Return an interator to the added or modified pair.