Top Description Fields Constructors Methods
jogamp.opengl.glu.nurbs

public Class CArrayOfArcs

extends Object
Class Inheritance

Class replacing C language pointer
Author
Tomas Hrasky

Field Summary

Modifier and TypeField and Description
private Arc[]
array

Underlaying array

private final boolean
noCheck

Don't check for array borders?

private int
pointer

Pointer to array member

Constructor Summary

AccessConstructor and Description
public
CArrayOfArcs(final Arc[]
underlaying array
array
,
final int
pointer (index) to array
pointer
)

Makes new CArray

public
CArrayOfArcs(final CArrayOfArcs
reference array
carray
)

Makes new CArray from other CArray

public
CArrayOfArcs(final Arc[]
underlaying array
ctlarray
)

Makes new CArray with pointer set to 0

Method Summary

Modifier and TypeMethod and Description
public Arc

Returns:

element at pointer
get
()

Returns element at pointer

public Arc

Returns:

element at index
get
(final int
array index
i
)

Returns array element at specified index

public Arc[]

Returns:

underlaying array
getArray
()

Returns underlaying array

public int

Returns:

pointer value
getPointer
()

Returns pointer value

public Arc

Returns:

element at relative index
getRelative
(final int
relative index
i
)

Returns array element at specified index relatively to pointer

public void
lessenPointerBy(final int
lessen by
i
)

Lessens pointer by value

public void
mm()

Lessens ponter by one (--)

public void
pp()

Increases pointer by one (++)

public void
raisePointerBy(final int
raise by
i
)

Raises pointer by value

public void
set(final Arc
desired value
f
)

Sets element at pointer

public void
setArray(final Arc[]
underlaying array
array
)

Sets underlaying array

public void
setPointer(final int
pointer value to be set
pointer
)

Sets ponter value

public void
setRelative(final int
relative index
i
,
final Arc
value to be set
value
)

Sets value of element at specified index relatively to pointer

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

arrayback to summary
private Arc[] array

Underlaying array

noCheckback to summary
private final boolean noCheck

Don't check for array borders?

pointerback to summary
private int pointer

Pointer to array member

Constructor Detail

CArrayOfArcsback to summary
public CArrayOfArcs(final Arc[] array, final int pointer)

Makes new CArray

Parameters
array:Arc[]

underlaying array

pointer:int

pointer (index) to array

CArrayOfArcsback to summary
public CArrayOfArcs(final CArrayOfArcs carray)

Makes new CArray from other CArray

Parameters
carray:CArrayOfArcs

reference array

CArrayOfArcsback to summary
public CArrayOfArcs(final Arc[] ctlarray)

Makes new CArray with pointer set to 0

Parameters
ctlarray:Arc[]

underlaying array

Method Detail

getback to summary
public Arc get()

Returns element at pointer

Returns:Arc

element at pointer

getback to summary
public Arc get(final int i)

Returns array element at specified index

Parameters
i:int

array index

Returns:Arc

element at index

getArrayback to summary
public Arc[] getArray()

Returns underlaying array

Returns:Arc[]

underlaying array

getPointerback to summary
public int getPointer()

Returns pointer value

Returns:int

pointer value

getRelativeback to summary
public Arc getRelative(final int i)

Returns array element at specified index relatively to pointer

Parameters
i:int

relative index

Returns:Arc

element at relative index

lessenPointerByback to summary
public void lessenPointerBy(final int i)

Lessens pointer by value

Parameters
i:int

lessen by

mmback to summary
public void mm()

Lessens ponter by one (--)

ppback to summary
public void pp()

Increases pointer by one (++)

raisePointerByback to summary
public void raisePointerBy(final int i)

Raises pointer by value

Parameters
i:int

raise by

setback to summary
public void set(final Arc f)

Sets element at pointer

Parameters
f:Arc

desired value

setArrayback to summary
public void setArray(final Arc[] array)

Sets underlaying array

Parameters
array:Arc[]

underlaying array

setPointerback to summary
public void setPointer(final int pointer)

Sets ponter value

Parameters
pointer:int

pointer value to be set

setRelativeback to summary
public void setRelative(final int i, final Arc value)

Sets value of element at specified index relatively to pointer

Parameters
i:int

relative index

value:Arc

value to be set