Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

Exc_Ruby::Fast_Builtin_Wrapper< T, Ruby_Type > Struct Template Reference

A wrapper for builtin data types (such as RArray or RString). More...

#include <ruby_reference.hpp>

List of all members.

Public Types

typedef void(* Ruby_Data_Func )(T *obj)
 A function that takes a T* and returns void.


Static Public Member Functions

VALUE wrap (VALUE klass, Ruby_Data_Func mark, Ruby_Data_Func free, T *obj)
 Takes an instance of a builtin ruby type and wraps it.

T * unwrap (VALUE value)


Detailed Description

template<typename T, int Ruby_Type>
struct Exc_Ruby::Fast_Builtin_Wrapper< T, Ruby_Type >

A wrapper for builtin data types (such as RArray or RString).


Member Function Documentation

template<typename T, int Ruby_Type>
T* Exc_Ruby::Fast_Builtin_Wrapper< T, Ruby_Type >::unwrap VALUE  value  )  [static]
 

Takes Ruby object holding an instance of a builtin ruby type and unwraps it to a structure. If the object is of the wrong type, a Ruby exception is raised.


The documentation for this struct was generated from the following file:
Generated on Sat Jan 1 12:02:26 2005 for Exceptional Ruby by doxygen 1.3.6