1 #ifndef Rice__Builtin_Object_defn__hpp_
2 #define Rice__Builtin_Object_defn__hpp_
4 #include "Object_defn.hpp"
5 #include "detail/ruby.hpp"
17 template<
int Builtin_Type>
36 RObject *
get()
const {
return obj_; }
A smartpointer-like wrapper for Ruby builtin objects.
Definition: Builtin_Object_defn.hpp:20
RObject * get() const
Return a pointer to obj_.
Definition: Builtin_Object_defn.hpp:36
Builtin_Object(Builtin_Object const &other)
Make a copy of a Builtin_Object.
RObject & operator*() const
Return a reference to obj_.
Definition: Builtin_Object_defn.hpp:34
void swap(Builtin_Object< Builtin_Type > &ref)
Swap with another builtin object of the same type.
RObject * operator->() const
Return a pointer to obj_.
Definition: Builtin_Object_defn.hpp:35
Builtin_Object(Object value)
Wrap an already allocated Ruby object.
The base class for all Objects.
Definition: Object_defn.hpp:25
VALUE const volatile & value() const
Explicitly get the encapsulated VALUE.
Definition: Object_defn.hpp:56