|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bridj.AbstractBridJRuntime
org.bridj.CRuntime
org.bridj.cpp.CPPRuntime
public class CPPRuntime
C++ runtime (derives from the C runtime).
Deals with registration and lifecycle of C++ classes and methods (virtual or not).
| Nested Class Summary | |
|---|---|
static class |
CPPRuntime.CPPDestructor
|
class |
CPPRuntime.CPPTypeInfo<T extends CPPObject>
|
static class |
CPPRuntime.MemoryOperators
|
| Nested classes/interfaces inherited from class org.bridj.CRuntime |
|---|
CRuntime.CTypeInfo<T extends NativeObject>, CRuntime.MethodCallInfoBuilder |
| Nested classes/interfaces inherited from interface org.bridj.BridJRuntime |
|---|
BridJRuntime.TypeInfo<T extends NativeObject> |
| Field Summary | |
|---|---|
static int |
DEFAULT_CONSTRUCTOR
|
static int |
SKIP_CONSTRUCTOR
|
| Fields inherited from class org.bridj.CRuntime |
|---|
PROPERTY_bridj_c_defaultObjectSize |
| Constructor Summary | |
|---|---|
CPPRuntime()
|
|
| Method Summary | ||
|---|---|---|
|
getActualInstanceClass(Pointer<T> pInstance,
Type officialType)
|
|
|
getCPPTypeInfo(Type type)
|
|
static CPPRuntime |
getInstance()
|
|
CPPRuntime.MemoryOperators |
getMemoryOperators()
|
|
int |
getPositionInVirtualTable(Pointer<Pointer<?>> pVirtualTable,
Method method,
NativeLibrary library)
|
|
Object[] |
getTemplateParameters(CPPObject object,
Class<?> typeClass)
|
|
|
getTypeInfo(Type type)
|
|
int |
getVirtualMethodsCount(Class<?> type)
|
|
void |
setTemplateParameters(CPPObject object,
Class<?> typeClass,
Object[] params)
|
|
| Methods inherited from class org.bridj.CRuntime |
|---|
allocate, createCToJavaCallback, getCallbackNativeImplementer, getDefaultStructSize, getDynamicFunctionFactory, getTypeForCast, isAvailable, register, sizeOf, unregister |
| Methods inherited from class org.bridj.AbstractBridJRuntime |
|---|
getType, isOverridenSignature |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_CONSTRUCTOR
public static final int SKIP_CONSTRUCTOR
| Constructor Detail |
|---|
public CPPRuntime()
| Method Detail |
|---|
public static CPPRuntime getInstance()
public Object[] getTemplateParameters(CPPObject object,
Class<?> typeClass)
public void setTemplateParameters(CPPObject object,
Class<?> typeClass,
Object[] params)
public <T extends NativeObject> Class<? extends T> getActualInstanceClass(Pointer<T> pInstance,
Type officialType)
getActualInstanceClass in interface BridJRuntimegetActualInstanceClass in class CRuntimepublic int getVirtualMethodsCount(Class<?> type)
public CPPRuntime.MemoryOperators getMemoryOperators()
public int getPositionInVirtualTable(Pointer<Pointer<?>> pVirtualTable,
Method method,
NativeLibrary library)
public <T extends NativeObject> BridJRuntime.TypeInfo<T> getTypeInfo(Type type)
getTypeInfo in interface BridJRuntimegetTypeInfo in class CRuntimepublic <T extends CPPObject> CPPRuntime.CPPTypeInfo<T> getCPPTypeInfo(Type type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||