Module: RLTK::CG::BindingClass
- Included in:
- Builder, Context, ExecutionEngine, GenericValue, MemoryBuffer, Module, PassManager, PassRegistry, Target, TargetData, TargetMachine, Triple, Type, Value
- Defined in:
- lib/rltk/cg/bindings.rb
Overview
This module provides access to stored FFI::Pointer objects and allows a class to be passed directly into FFI methods. It also provides a pointer comparison method.
Instance Attribute Summary collapse
- #ptr ⇒ FFI::Pointer (also: #to_ptr)
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Compares one BindingClass object to another.
Instance Attribute Details
#ptr ⇒ FFI::Pointer Also known as: to_ptr
36 37 38 |
# File 'lib/rltk/cg/bindings.rb', line 36 def ptr @ptr end |
Instance Method Details
#==(other) ⇒ Boolean
Compares one BindingClass object to another.
44 45 46 |
# File 'lib/rltk/cg/bindings.rb', line 44 def ==(other) self.class == other.class and @ptr == other.ptr end |