~ubuntu-branches/ubuntu/oneiric/swig1.3/oneiric

« back to all changes in this revision

Viewing changes to Lib/octave/std_carray.i

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2009-11-15 14:00:28 UTC
  • mfrom: (1.2.9 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091115140028-me7amr2rie8zz1xn
Tags: 1.3.40-2ubuntu1
* Merge from Debian testing (LP: #356529), remaining changes:
  - Drop libchicken-dev from the build-depends (it's in universe)
  - Remove Pike from package description and from configure flags
  - drop "--without-mzscheme", we don't have it in our build-depends
  - use php-config5
  - Clean Runtime/ as well.
  - debian/rules (clean): Remove Lib/ocaml/swigp4.ml.
* debian/rules: Remove hardcoded python version.
* Remove upper limit for python from Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
%extend std::carray {
19
19
  %fragment(SWIG_Traits_frag(std::carray<_Type, _Size >), "header",
20
 
            fragment="PySwigIterator_T",
 
20
            fragment="SwigPyIterator_T",
21
21
            fragment=SWIG_Traits_frag(_Type),
22
22
            fragment="StdCarrayTraits") {
23
23
    namespace swig {
36
36
 
37
37
  %typemap(out,noblock=1) iterator, const_iterator {
38
38
    $result = SWIG_NewPointerObj(swig::make_output_iterator((const $type &)$1),
39
 
                                 swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
 
39
                                 swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
40
40
  }
41
41
  
42
42
  inline size_t __len__() const { return self->size(); }
46
46
  inline void __setitem__(size_t i, const _Type& v) { (*self)[i] = v; }
47
47
 
48
48
  
49
 
  swig::PySwigIterator* __iter__(PyObject **PYTHON_SELF) {
 
49
  swig::SwigPyIterator* __iter__(PyObject **PYTHON_SELF) {
50
50
    return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
51
51
  }
52
52
}