/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version: 1.3.21
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


Class name: DoubleVector extends: SwigProxy fields: swigCPtrForDoubleVector, swigCMemoryOwn {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    swigCMemoryOwn := newCMemoryOwn.
    swigCPtrForDoubleVector := newCPtr.
  ]

  Method [ getCPtrForDoubleVector
    ^swigCPtrForDoubleVector
  ]


  Function [ new
    self noDefaultConstructorError
  ]

  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForDoubleVector ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      LorisNI lorisNI_delete_DoubleVector: swigCPtrForDoubleVector.
    ].
    swigCPtrForDoubleVector := 0.
  ]

  Function[ getCPtr: obj
     obj isNil ifTrue:[^0].
     ^obj getCPtrForDoubleVector
  ]

  Method [ size 
    ^LorisNI lorisNI_DoubleVector_size: swigCPtrForDoubleVector 
  ]

  Method [ clear 
    LorisNI lorisNI_DoubleVector_clear: swigCPtrForDoubleVector 
  ]

  Method [ pop_back 
    LorisNI lorisNI_DoubleVector_pop_back: swigCPtrForDoubleVector 
  ]

  Method [ resize: new_size 
    LorisNI lorisNI_DoubleVector_resize__SWIG_0: swigCPtrForDoubleVector with: new_size
  ]

  Function [ size: size value: value
    ^self fromPointer: (LorisNI lorisNI_new_DoubleVector: size, value) memoryOwn: true
  ]

  Method [ push_back: x 
    LorisNI lorisNI_DoubleVector_push_back: swigCPtrForDoubleVector with: x
  ]

  Method [ front 
    ^LorisNI lorisNI_DoubleVector_front: swigCPtrForDoubleVector 
  ]

  Method [ back 
    ^LorisNI lorisNI_DoubleVector_back: swigCPtrForDoubleVector 
  ]

  Method [ assign: n x: x 
    LorisNI lorisNI_DoubleVector_assign: swigCPtrForDoubleVector with: n with: x
  ]

  Method [ resize: new_size x: x 
    LorisNI lorisNI_DoubleVector_resize__SWIG_1: swigCPtrForDoubleVector with: new_size with: x
  ]

  Method [ reserve: n 
    LorisNI lorisNI_DoubleVector_reserve: swigCPtrForDoubleVector with: n
  ]

  Method [ capacity 
    ^LorisNI lorisNI_DoubleVector_capacity: swigCPtrForDoubleVector 
  ]

}
