Esempio n. 1
0
 static PyObject* convert(const TTuple& c_tuple){
     list values;
     //add all c_tuple items to "values" list
     convert_impl( c_tuple, values, mpl::int_< 0 >(), length_type() );
     //create Python tuple from the list
     return incref( python::tuple( values ).ptr() );
 }
Esempio n. 2
0
inline int
NdbPack::Data::convert(Endian::Value to_endian)
{
  if (to_endian == Endian::Native)
    to_endian = Endian::get_endian();
  if (m_endian == to_endian)
    return 0;
  if (convert_impl(to_endian) == 0)
  {
    m_endian = to_endian;
    return 0;
  }
  return -1;
}
Esempio n. 3
0
 nir_foreach_overload(shader, overload) {
    if (overload->impl)
       convert_impl(overload->impl);
 }
Esempio n. 4
0
 static void
 convert_impl( const TTuple &c_tuple, list& values, mpl::int_< index >, mpl::int_< length > ) {
     values.append( c_tuple.template get< index >() );
     convert_impl( c_tuple, values, details::increment_index<index>(), length_type() );
 }
Esempio n. 5
0
	variant convert(const variant& v) const { if(match(v)) return v; return convert_impl(v); }