Sha256: f032b7e81c5858bf38e2039e879bfbe9486c2e921c3bd80bd6ab9c5459aba346

Contents?: true

Size: 678 Bytes

Versions: 29

Compression:

Stored size: 678 Bytes

Contents

#include "../Data_Object.hpp"

template<typename T>
Rice::Object
Rice::detail::to_ruby_<T>::
convert(T const & x)
{
  if(Data_Type<T>::is_bound())
  {
    return Rice::Data_Object<T >(new T(x), Rice::Data_Type<T >::klass());
  }
  else
  {
    std::string s("Unable to convert ");
    s += demangle(typeid(T *).name());
    throw std::invalid_argument(s.c_str());
  }
}   

template<typename T>
Rice::Object
Rice::detail::to_ruby_<T *>::
convert(T * x)
{
  if(Data_Type<T>::is_bound())
  {
    Data_Object<T> obj(x);
    return obj;
  }
  else
  {
    std::string s("Unable to convert ");
    s += demangle(typeid(T *).name());
    throw std::invalid_argument(s.c_str());
  }
}

Version data entries

29 entries across 29 versions & 5 rubygems

Version Path
rice-3.0.0 rice/detail/to_ruby.ipp
rice2-2.2.1 rice/detail/to_ruby.ipp
rice2-2.2.0 rice/detail/to_ruby.ipp
rice-2.2.0 rice/detail/to_ruby.ipp
rice-2.1.3 rice/detail/to_ruby.ipp
rice-2.1.2 rice/detail/to_ruby.ipp
rice-2.1.1 rice/detail/to_ruby.ipp
rice-2.1.0 rice/detail/to_ruby.ipp
rice-2.0.0 rice/detail/to_ruby.ipp
rice-1.7.0 rice/detail/to_ruby.ipp
rice-1.6.3 rice/detail/to_ruby.ipp
rice-1.6.2 rice/detail/to_ruby.ipp
rice-1.6.1 rice/detail/to_ruby.ipp
rice-1.6.0 rice/detail/to_ruby.ipp
rice-1.6.0.pre rice/detail/to_ruby.ipp
rice-1.5.3 rice/detail/to_ruby.ipp
rice-1.5.2 rice/detail/to_ruby.ipp
keyme-rice-1.5.1.keyme1 rice/detail/to_ruby.ipp
keyme-rice-1.5.1.keyme rice/detail/to_ruby.ipp
rice-1.5.1 rice/detail/to_ruby.ipp