public class

ElementVector

extends Object
java.lang.Object
   ↳ org.neshan.vectorelements.ElementVector

Summary

Public Constructors
ElementVector(long cPtr, boolean cMemoryOwn)
ElementVector()
یک وکتور خالی می سازد
ElementVector(long n)
یک وکتور با اندازه n می سازد
Public Methods
void add(Element x)
long capacity()
اندازه وکتور
void clear()
داد‌ه‌های وکتور را خالی می کند
synchronized void delete()
Element get(int i)
static long getCPtr(ElementVector obj)
boolean isEmpty()
مشخص می کند که وکتور خالی هست یا نه
void reserve(long n)
داد‌ه‌های وکتور را برعکس می کند
void set(int i, Element val)
داده‌ی iام وکتور را ست می کند.
long size()
long swigGetRawPtr()
Returns the raw pointer to the object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ElementVector (long cPtr, boolean cMemoryOwn)

public ElementVector ()

یک وکتور خالی می سازد

public ElementVector (long n)

یک وکتور با اندازه n می سازد

Public Methods

public void add (Element x)

public long capacity ()

اندازه وکتور

public void clear ()

داد‌ه‌های وکتور را خالی می کند

public synchronized void delete ()

public Element get (int i)

public static long getCPtr (ElementVector obj)

public boolean isEmpty ()

مشخص می کند که وکتور خالی هست یا نه

public void reserve (long n)

داد‌ه‌های وکتور را برعکس می کند

public void set (int i, Element val)

داده‌ی iام وکتور را ست می کند. در صورت بیشتر بودن i از اندازه وکتور خطا رخ می دهد.

public long size ()

public long swigGetRawPtr ()

Returns the raw pointer to the object. This is used internally by the SDK.

Returns
  • The internal pointer of the object.