LEMUR Packages: ompl_lemur or_lemur pr_bgl prpy_lemur
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Groups Pages
throw_map.h
Go to the documentation of this file.
1 
9 namespace pr_bgl
10 {
11 
18 template <typename key_type_, typename value_type_>
19 class throw_map
20 {
21 public:
22  typedef boost::read_write_property_map_tag category;
23  typedef key_type_ key_type;
24  typedef value_type_ value_type;
25  typedef value_type_ reference;
26 };
27 
28 template <typename key_type_, typename value_type_>
29 inline const value_type_ get(const throw_map<key_type_,value_type_> & map, const key_type_ key)
30 {
31  throw std::runtime_error("get(throw_map) called");
32 }
33 
34 template <typename key_type_, typename value_type_>
35 inline void put(const throw_map<key_type_,value_type_> & map, const key_type_ key, const value_type_ val)
36 {
37  throw std::runtime_error("put(throw_map) called");
38 }
39 
40 } // namespace pr_bgl
Throws instantly on access.
Definition: throw_map.h:19