com.smardec.j2native
Class Pointer

java.lang.Object
  |
  +--com.smardec.j2native.Argument
        |
        +--com.smardec.j2native.PointerArgument
              |
              +--com.smardec.j2native.TypedPointer
                    |
                    +--com.smardec.j2native.Pointer
All Implemented Interfaces:
java.lang.Cloneable, PointerType

public final class Pointer
extends TypedPointer

Pointer class represents a pointer to object in terms of C language. Pointer type is defined by its referenced object.
For example, an int pointer (int *) is a Pointer to Int.

 Int value = new Int();
 Pointer pValue = new Pointer(value); // this is int*
 


Nested Class Summary
static class Pointer.Const
          Class Pointer.Const represents a pointer to constant object
static class Pointer.OutOnly
          Class Pointer.OutOnly represents a pointer to out only object.
static class Pointer.Void
          Class Pointer.Void represents a void *.
 
Field Summary
 
Fields inherited from class com.smardec.j2native.Argument
JAVA_SIDE, NATIVE_SIDE
 
Constructor Summary
Pointer(Argument refArgument)
          Constructs a new pointer to a given object.
 
Methods inherited from class com.smardec.j2native.TypedPointer
getAt, getAt, getReferencedArgument, getValue, isNull, read, readFromStack, setReferencedArgument, setValue, update, write, writeToStack
 
Methods inherited from class com.smardec.j2native.PointerArgument
fromBytesValue, getLength, isFixedLength, toBytesValue, toBytesValue
 
Methods inherited from class com.smardec.j2native.Argument
clone, finalize, free, getAlignedLength, getResultFlags, readFromRAM, restoreFromRAM, storeToRAM, writeToRAM
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pointer

public Pointer(Argument refArgument)
Constructs a new pointer to a given object. The constructed pointer is a non-null pointer parameter that points to the given object

Parameters:
refArgument - referenced object


Copyright © 2004-2006 Smardec. All Rights Reserved.