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

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

#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::Exception_Safe_Builtin_Wrapper< T, Ruby_Type >

A wrapper for builtin data types (such as RArray or RString), but throws C++ exceptions instead of Ruby exceptions.


Member Function Documentation

template<typename T, int Ruby_Type>
T* Exc_Ruby::Exception_Safe_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 C++ exception is thrown.


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