Lines Matching refs:swig
41 namespace swig {
48 return RTEST( rb_yield( swig::from< T >(v) ) );
100 typename Sequence::size_type ii = swig::check_index(i, size);
101 typename Sequence::size_type jj = swig::slice_index(j, size);
118 typename Sequence::size_type ii = swig::check_index(i, size, true);
119 typename Sequence::size_type jj = swig::slice_index(j, size);
142 typename Sequence::size_type ii = swig::check_index(i, size, true);
143 typename Sequence::size_type jj = swig::slice_index(j, size);
161 namespace swig
183 return swig::as<T>(item, true);
189 %type_error(swig::type_name<T>());
200 rb_ary_set(_seq, _index, swig::from< T >(v));
403 if (!swig::check<value_type>(item)) {
431 $result = SWIG_NewPointerObj(swig::make_const_iterator(%static_cast($1,const $type &),
433 swig::ConstIterator::descriptor(),SWIG_POINTER_OWN);
438 $result = SWIG_NewPointerObj(swig::make_nonconst_iterator(%static_cast($1,const $type &),
440 swig::Iterator::descriptor(),SWIG_POINTER_OWN);
446 rb_ary_push($result, SWIG_NewPointerObj(swig::make_const_iterator(%static_cast($1,const $type &).first),
447 swig::ConstIterator::descriptor(),SWIG_POINTER_OWN));
448 rb_ary_push($result, SWIG_NewPointerObj(swig::make_const_iterator(%static_cast($1,const $type &).second),
449 swig::ConstIterator::descriptor(),SWIG_POINTER_OWN));
458 rb_ary_push($result, SWIG_NewPointerObj(swig::make_const_iterator(%static_cast($1,const $type &).first),
459 swig::ConstIterator::descriptor(),SWIG_POINTER_OWN));
460 rb_ary_push($result, SWIG_NewPointerObj(swig::make_const_iterator(%static_cast($1,const $type &).second),
461 swig::ConstIterator::descriptor(),SWIG_POINTER_OWN));
466 const_iterator(swig::ConstIterator *iter = 0, int res),
467 const_reverse_iterator(swig::ConstIterator *iter = 0, int res) {
469 swig::ConstIterator::descriptor(), 0);
473 swig::ConstIterator_T<$type > *iter_t = dynamic_cast<swig::ConstIterator_T<$type > *>(iter);
483 iterator(swig::Iterator *iter = 0, int res),
484 reverse_iterator(swig::Iterator *iter = 0, int res) {
485 res = SWIG_ConvertPtr($input, %as_voidptrptr(&iter), swig::Iterator::descriptor(), 0);
489 swig::Iterator_T<$type > *iter_t = dynamic_cast<swig::Iterator_T<$type > *>(iter);
500 swig::ConstIterator *iter = 0;
502 swig::ConstIterator::descriptor(), 0);
503 $1 = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::ConstIterator_T<$type > *>(iter) != 0));
508 swig::ConstIterator *iter = 0;
510 swig::Iterator::descriptor(), 0);
511 $1 = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::Iterator_T<$type > *>(iter) != 0));
519 // swig::Iterator* iterator(VALUE* RUBY_SELF) {
520 // return swig::make_nonconst_iterator($self->begin(), $self->begin(),
524 // swig::ConstIterator* const_iterator(VALUE* RUBY_SELF) {
525 // return swig::make_const_iterator($self->begin(), $self->begin(),
564 const char *type_name = swig::type_name< Sequence >();
572 tmp = swig::from< Sequence::value_type >( *i );
588 tmp = swig::from< Sequence::value_type >( *i );
602 tmp = swig::from< Sequence::value_type >( *i );
636 r = swig::from< const Sequence* >( swig
655 r = swig::from< Sequence::value_type >(*i);
672 VALUE v = swig::from< Sequence::value_type >(*i);
683 Sequence::iterator at = swig::getpos(self, i);
684 r = swig::from< Sequence::value_type >( *(at) );
715 return swig::from< Sequence::value_type >( x );
732 swig::yield< Sequence::value_type >() );
747 swig::yield< Sequence::value_type >() ), $self->end() );
767 r = swig::from< Sequence::value_type >( *(swig::cgetpos(self, i)) );
783 r = swig::from< const Sequence* >( swig::getslice(self, i, j) );
794 r = swig::from< Sequence::value_type >( *(swig::cgetpos(self, i)) );
831 return swig::from< Sequence* >( swig::getslice(self, s, e+1) );
841 *(swig::getpos(self,i)) = x;
843 return swig::from< Sequence::value_type >( x );
859 swig::setslice(self, i, j, v);
860 r = swig::from< const Sequence* >( &v );
886 return swig::from< Sequence::value_type >( x );
897 std::size_t i = swig::check_index( pos, len, true );
903 Sequence::value_type val = swig::as<Sequence::value_type>( elem, true );
915 val = swig::as<Sequence::value_type>( elem );
924 swig::type_name<Sequence::value_type>(),
944 Sequence::value_type val = swig::as<Sequence::value_type>( elem, true );
951 swig::type_name<Sequence::value_type>(),
972 namespace swig {
1013 swig::type_info<sequence>(),0) == SWIG_OK) {
1025 struct traits_asptr_stdseq< Seq, swig::GC_VALUE > {
1027 typedef swig::GC_VALUE value_type;
1053 swig::type_info<sequence>(),0) == SWIG_OK) {
1071 swig_type_info *desc = swig::type_info<sequence>();
1082 rb_ary_push(obj, swig::from< value_type >(*it));