1 #ifndef Rice__Address_Registration_Guard_defn__hpp_
2 #define Rice__Address_Registration_Guard_defn__hpp_
4 #include "Object_defn.hpp"
5 #include "detail/ruby.hpp"
6 #include "detail/Not_Copyable.hpp"
30 :
private detail::Not_Copyable
66 static bool exit_handler_registered;
68 static void registerExitHandler();
A guard to register a given address with the GC.
Definition: Address_Registration_Guard_defn.hpp:31
void swap(Address_Registration_Guard &other)
Swap with another Address_Registration_Guard.
~Address_Registration_Guard()
Unregister an address/Object with the GC.
VALUE * address() const
Get the address that is registered with the GC.
Address_Registration_Guard(Object *object)
Register an Object with the GC.
Address_Registration_Guard(VALUE *address)
Register an address with the GC.
The base class for all Objects.
Definition: Object_defn.hpp:25