abstract class GSL::Object

Overview

Basic class of high-level wrapping objects that holds pointers to GSL objects. Must implement #lib_free

Direct Known Subclasses

Defined in:

gsl/base/object.cr

Instance Method Summary

Instance Method Detail

def finalize #

Called by GC. frees internal object if it wasnt' manually #freed before.


[View source]
def free #

Manually free internal object. Sets #pointer to null to prevent second free


[View source]
def pointer #

pointer to internal GSL object


[View source]
def to_unsafe #

returns pointer for calling LibGSL functions


[View source]