|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object crystalspace.jbind.impl.csNativeObject crystalspace.jbind.impl.csgfx.shadervar.csShaderVariableProxyList
Sorted list of shadervariables
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csShaderVariableProxyList()
Initialize object to have initial capacity of 'icapacity' elements, and to increase storage by 'ithreshold' each time the upper bound is exceeded. |
|
csShaderVariableProxyList(csShaderVariableProxyList copy)
Copy constructor. |
|
csShaderVariableProxyList(int icapacity)
Initialize object to have initial capacity of 'icapacity' elements, and to increase storage by 'ithreshold' each time the upper bound is exceeded. |
|
csShaderVariableProxyList(int icapacity,
int ithreshold)
Initialize object to have initial capacity of 'icapacity' elements, and to increase storage by 'ithreshold' each time the upper bound is exceeded. |
|
csShaderVariableProxyList(iPointer nPointer)
|
Method Summary | |
int |
capacity()
Query vector capacity. |
boolean |
delete(csShaderVariableProxy item)
Delete the given element from vector. |
void |
deleteAll()
Clear entire vector. |
boolean |
deleteIndex(int n)
Delete element number 'n' from vector. |
void |
deleteRange(int start,
int end)
Delete a given range (inclusive). |
void |
empty()
Remove all elements. |
int |
find(csShaderVariableProxy which)
Find a element in array and return its index (or -1 if not found). |
int |
findKey(iPointer key)
Find an element based on some key. |
int |
findSortedKey(iPointer key)
Find an element based on some key, using a csShaderVariableProxyListCompareKeyFunction. |
int |
findSortedKey(iPointer key,
int candidate)
Find an element based on some key, using a csShaderVariableProxyListCompareKeyFunction. |
csShaderVariableProxy |
get(int n)
Get an element. |
csShaderVariableProxy |
getExtend(int n)
Get an item from the array. |
boolean |
insert(int n,
csShaderVariableProxy item)
Insert element 'item' before element 'n'. |
int |
insertSorted(csShaderVariableProxy item)
Insert an element at a sorted position, using a csShaderVariableProxyListCompareFunction. |
int |
insertSorted(csShaderVariableProxy item,
int equal_index)
Insert an element at a sorted position, using a csShaderVariableProxyListCompareFunction. |
protected boolean |
isNativePointerValidSafe(long pointer)
|
csShaderVariableProxy |
item(int n)
Get an element. |
int |
length()
Return the number of elements in the Array. |
protected void |
nDelete(long pointer)
|
csShaderVariableProxy |
pop()
Pop an element from tail end of array. |
void |
prepareFill()
prepareFill |
int |
push(csShaderVariableProxy what)
Push an element onto the tail end of the array. |
void |
put(int n,
csShaderVariableProxy what)
Put an element at some position. |
csShaderVariableProxyList |
section(int low,
int high)
Get the portion of the array between low and high inclusive. |
csShaderVariableProxyList |
set(csShaderVariableProxyList other)
Assignment operator. |
void |
setCapacity(int n)
Set vector capacity to approximately 'n' elements. |
void |
setLength(int n)
Set vector length to n. |
void |
setLength(int n,
csShaderVariableProxy what)
Set the actual number of items in this array. |
void |
shrinkBestFit()
Make the array just as big as it needs to be. |
void |
sort()
Sort array. |
csShaderVariableProxy |
top()
Return the top element but do not remove it. |
void |
transferTo(csShaderVariableProxyList destination)
Transfer the entire contents of one array to the other. |
void |
truncate(int n)
Truncate array to specified number of elements. |
Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, equals, finalize, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public csShaderVariableProxyList(iPointer nPointer)
nPointer
- public csShaderVariableProxyList()
public csShaderVariableProxyList(int icapacity)
icapacity
- public csShaderVariableProxyList(int icapacity, int ithreshold)
icapacity
- ithreshold
- public csShaderVariableProxyList(csShaderVariableProxyList copy)
Method Detail |
protected void nDelete(long pointer)
nDelete
in class csNativeObject
csNativeObject.nDelete(long)
protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe
in class csNativeObject
csNativeObject.isNativePointerValidSafe(long)
public csShaderVariableProxyList set(csShaderVariableProxyList other)
other
-
public int length()
public int capacity()
public void transferTo(csShaderVariableProxyList destination)
destination
- public void setLength(int n, csShaderVariableProxy what)
n
- what
- public void setLength(int n)
n
- public csShaderVariableProxy get(int n)
n
-
public csShaderVariableProxy getExtend(int n)
n
-
public csShaderVariableProxy item(int n)
n
-
public void put(int n, csShaderVariableProxy what)
n
- what
- public int findKey(iPointer key)
key
-
public int push(csShaderVariableProxy what)
what
-
public csShaderVariableProxy pop()
public csShaderVariableProxy top()
public boolean insert(int n, csShaderVariableProxy item)
n
- item
-
public csShaderVariableProxyList section(int low, int high)
low
- high
-
public int findSortedKey(iPointer key)
key
-
public int findSortedKey(iPointer key, int candidate)
key
- candidate
-
public int insertSorted(csShaderVariableProxy item)
item
-
public int insertSorted(csShaderVariableProxy item, int equal_index)
item
- equal_index
-
public int find(csShaderVariableProxy which)
which
-
public void sort()
public void deleteAll()
public void truncate(int n)
n
- public void empty()
public void setCapacity(int n)
n
- public void shrinkBestFit()
public boolean deleteIndex(int n)
n
-
public void deleteRange(int start, int end)
start
- end
- public boolean delete(csShaderVariableProxy item)
item
-
public void prepareFill()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |