alision | e2a38e1 | 2013-04-25 14:20:20 -0400 | [diff] [blame] | 1 | /* ---------------------------------------------------------------------------- |
| 2 | * This file was automatically generated by SWIG (http://www.swig.org). |
| 3 | * Version 2.0.8 |
| 4 | * |
| 5 | * Do not make changes to this file unless you know what you are doing--modify |
| 6 | * the SWIG interface file instead. |
| 7 | * ----------------------------------------------------------------------------- */ |
| 8 | |
| 9 | package com.savoirfairelinux.sflphone.service; |
| 10 | |
| 11 | public class VectMap { |
| 12 | private long swigCPtr; |
| 13 | protected boolean swigCMemOwn; |
| 14 | |
| 15 | protected VectMap(long cPtr, boolean cMemoryOwn) { |
| 16 | swigCMemOwn = cMemoryOwn; |
| 17 | swigCPtr = cPtr; |
| 18 | } |
| 19 | |
| 20 | protected static long getCPtr(VectMap obj) { |
| 21 | return (obj == null) ? 0 : obj.swigCPtr; |
| 22 | } |
| 23 | |
| 24 | protected void finalize() { |
| 25 | delete(); |
| 26 | } |
| 27 | |
| 28 | public synchronized void delete() { |
| 29 | if (swigCPtr != 0) { |
| 30 | if (swigCMemOwn) { |
| 31 | swigCMemOwn = false; |
| 32 | SFLPhoneserviceJNI.delete_VectMap(swigCPtr); |
| 33 | } |
| 34 | swigCPtr = 0; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | public VectMap() { |
| 39 | this(SFLPhoneserviceJNI.new_VectMap__SWIG_0(), true); |
| 40 | } |
| 41 | |
| 42 | public VectMap(long n) { |
| 43 | this(SFLPhoneserviceJNI.new_VectMap__SWIG_1(n), true); |
| 44 | } |
| 45 | |
| 46 | public long size() { |
| 47 | return SFLPhoneserviceJNI.VectMap_size(swigCPtr, this); |
| 48 | } |
| 49 | |
| 50 | public long capacity() { |
| 51 | return SFLPhoneserviceJNI.VectMap_capacity(swigCPtr, this); |
| 52 | } |
| 53 | |
| 54 | public void reserve(long n) { |
| 55 | SFLPhoneserviceJNI.VectMap_reserve(swigCPtr, this, n); |
| 56 | } |
| 57 | |
| 58 | public boolean isEmpty() { |
| 59 | return SFLPhoneserviceJNI.VectMap_isEmpty(swigCPtr, this); |
| 60 | } |
| 61 | |
| 62 | public void clear() { |
| 63 | SFLPhoneserviceJNI.VectMap_clear(swigCPtr, this); |
| 64 | } |
| 65 | |
| 66 | public void add(StringMap x) { |
| 67 | SFLPhoneserviceJNI.VectMap_add(swigCPtr, this, StringMap.getCPtr(x), x); |
| 68 | } |
| 69 | |
| 70 | public StringMap get(int i) { |
| 71 | return new StringMap(SFLPhoneserviceJNI.VectMap_get(swigCPtr, this, i), false); |
| 72 | } |
| 73 | |
| 74 | public void set(int i, StringMap val) { |
| 75 | SFLPhoneserviceJNI.VectMap_set(swigCPtr, this, i, StringMap.getCPtr(val), val); |
| 76 | } |
| 77 | |
| 78 | } |