Class COM.odi.jcpp.unsigned_intPU
java.lang.Object
|
+----COM.odi.jcpp.unsigned_intPU
- public class unsigned_intPU
- extends Object
The unsigned_intPU class is the unsafe counterpart class for the unsigned_intP
class. The unsigned_intPU class contains static methods for unsafe operations
on instances of the associated peer class, unsigned_intP. Unsafe operations
include operations such as array access and casting.
-
cast(PeerPointer)
- Creates an unsigned_intP object and uses the same linear object reference
(linear address) as the specified peer pointer object.
-
deleteArray(unsigned_intP)
- Deallocates a C++ array that contains elements of type unsigned int.
-
makeArray(Segment, int)
- Creates a C++ array in which the type of the elements is unsigned int.
-
ref(unsigned_intP, int)
- Returns a particular element from the specified C++ array.
-
set(unsigned_intP, int, int)
- Sets the array element in the specified position to the specified value.
makeArray
public static unsigned_intP makeArray(Segment s,
int size)
- Creates a C++ array in which the type of the elements is unsigned int.
ObjectStore places the array in the specified segment and creates the
specified number of elements.
- Parameters:
- s - The segment in which to allocate the array.
- size - The number of elements in the array.
- Returns:
- An unsigned_intP object whose linear address refers to the
newly created object.
deleteArray
public static void deleteArray(unsigned_intP theArray)
- Deallocates a C++ array that contains elements of type unsigned int.
- Parameters:
- theArray - The C++ array you want to delete.
ref
public static int ref(unsigned_intP theArray,
int index)
- Returns a particular element from the specified C++ array.
- Parameters:
- theArray - The array that contains the element you want.
- index - The position of the desired element in the array.
Postions begin at 0. If you want the third element, specify 2.
- Returns:
- The element at the specified position.
set
public static void set(unsigned_intP theArray,
int index,
int newValue)
- Sets the array element in the specified position to the specified value.
- Parameters:
- theArray - The array that contains the element for which you
want to specify a value.
- index - The position of the element in the array.
- newValue - The value for the element in the specified position.
cast
public static unsigned_intP cast(PeerPointer p)
- Creates an unsigned_intP object and uses the same linear object reference
(linear address) as the specified peer pointer object. Typically, this
is useful when you have a return value of type voidP and you
know it should be of type unsigned_intP.
- Parameters:
- p - The peer pointer object whose linear address you want to copy.
- Returns:
- The newly created unsigned_intP object.
Copyright © 1996, 1997, 1998 Object Design, Inc. All rights reserved.