Rice  1.5.2
 All Classes Files Functions Variables Typedefs Friends Pages
to_from_ruby_defn.hpp
1 #ifndef Rice__to_from_ruby_defn__hpp_
2 #define Rice__to_from_ruby_defn__hpp_
3 
4 #include "Object_defn.hpp"
5 #include "detail/from_ruby.hpp"
6 #include "detail/to_ruby.hpp"
7 
8 #include <typeinfo>
9 #include <string>
10 #include <stdexcept>
11 
12 // ---------------------------------------------------------------------
13 
15 
38 template<typename T>
39 inline
40 typename Rice::detail::from_ruby_<T>::Retval_T from_ruby(Rice::Object x)
41 {
42  return Rice::detail::from_ruby_<T>::convert(x);
43 }
44 
46 
62 template<typename T>
63 inline
64 Rice::Object to_ruby(T const & x)
65 {
66  return Rice::detail::to_ruby_<T>::convert(x);
67 }
68 
69 #endif // Rice__to_from_ruby_defn__hpp_
70 
The base class for all Objects.
Definition: Object_defn.hpp:23