C# Класс SbsSW.SwiPlCs.libpl

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
NoToString bool
TermRefCount ulong

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
InternalError ( string cause, Exception exception ) : void
Is64Bit ( ) : bool
LoadLibPl ( ) : void
LoadUnmanagedPrologLibrary ( string fileName ) : SafeLibraryHandle
PL_abort_hook ( PL_abort_hook_t ah ) : void
PL_abort_unhook ( PL_abort_hook_t ah ) : int
PL_agc_hook ( PL_agc_hook_t newhook ) : PL_agc_hook_t
PL_atom_chars ( uint t_atom ) : String
PL_atom_wchars ( uint t_atom ) : String
PL_chars_to_term ( string chars, uint term ) : int
PL_cleanup ( int status ) : int
PL_close_foreign_frame ( uint fid_t ) : void
PL_close_query ( uint qid ) : void
PL_compare ( uint term1, uint term2 ) : int
PL_cons_functor_v ( uint term, uint functor_t, uint term_a0 ) : void
PL_copy_term_ref ( uint term_t ) : uint
PL_create_engine ( IntPtr attr ) : IntPtr
PL_cut_query ( uint qid ) : void
PL_destroy_engine ( IntPtr engine ) : int
PL_discard_foreign_frame ( uint fid_t ) : void
PL_erase ( uint record_t ) : void
PL_exception ( uint qid ) : uint
PL_foreign_context ( IntPtr control ) : int

long PL_foreign_context(control_t) Extracts the context from the context argument. In the call type is PL_FIRST_CALL the context value is 0L. Otherwise it is the value returned by the last PL_retry() associated with this goal (both if the call type is PL_REDO as PL_CUTTED).

PL_foreign_context_address ( IntPtr control ) : IntPtr

void * PL_foreign_context_address(control_t) Extracts an address as passed in by PL_retry_address().

PL_foreign_control ( IntPtr control ) : FRG

int PL_foreign_control(control_t) Extracts the type of call from the control argument. The return values are described above. Note: that the function should be prepared to handle the PL_CUTTED case and Note: should be aware that the other arguments are not valid in this case.

PL_get_arg ( int index, uint t, uint a ) : int
PL_get_atom ( uint term, uint &atom_t ) : int
PL_get_chars ( uint term, string &s, uint flags ) : int
PL_get_float ( uint term, double &i ) : int
PL_get_int64 ( uint term, long &i ) : int
PL_get_integer ( uint term, int &i ) : int
PL_get_intptr ( uint term, IntPtr &i ) : int
PL_get_list ( uint term_t_l, uint term_t_h, uint term_t_t ) : int
PL_get_long ( uint term, long &i ) : int
PL_get_name_arity ( uint t, uint &name, int &arity ) : int
PL_get_nil ( uint term_t ) : int
PL_get_pointer ( uint term, IntPtr &i ) : int
PL_halt ( int i ) : int
PL_initialise ( int argc, String argv ) : int
PL_is_atom ( uint term_t ) : int
PL_is_atomic ( uint term_t ) : int
PL_is_attvar ( uint termRef ) : int
PL_is_blob ( uint termRef, [ type ) : int
PL_is_compound ( uint term_t ) : int
PL_is_float ( uint term_t ) : int
PL_is_ground ( uint term_t ) : int
PL_is_initialised ( IntPtr argc, IntPtr argv ) : int
PL_is_initialised ( int &argc, String &argv ) : int

Does NOT work correct if engine is_initialised int PL_is_initialised(int *argc, char ***argv)

PL_is_integer ( uint term_t ) : int
PL_is_list ( uint term_t ) : int
PL_is_number ( uint term_t ) : int
PL_is_string ( uint term_t ) : int
PL_is_variable ( uint term_t ) : int
PL_new_atom ( string text ) : uint
PL_new_atom_wchars ( int len, string text ) : uint
PL_new_functor ( uint atom_a, int a ) : uint
PL_new_term_ref ( ) : uint
PL_new_term_refs ( int n ) : uint
PL_next_solution ( uint qid_t ) : int
PL_on_halt ( SwiOnHalt oh, void closure ) : void
PL_open_foreign_frame ( ) : uint
PL_open_query ( IntPtr module, int flags, IntPtr pred, uint term ) : uint
PL_predicate ( string name, int arity, string module ) : IntPtr
PL_put_atom ( uint term, uint atom_handle ) : void
PL_put_atom_chars ( uint term, string chars ) : void
PL_put_float ( uint term, double i ) : void
PL_put_integer ( uint term, long i ) : void
PL_put_list ( uint term_t ) : void
PL_put_list_chars ( uint term_t, string chars ) : void
PL_put_list_codes ( uint term_t, string chars ) : void
PL_put_string_chars ( uint term_t, string chars ) : void
PL_put_string_nchars ( uint term_t, int len, string chars ) : void
PL_put_term ( uint t1, uint t2 ) : void
PL_query ( uint query_type ) : uint
PL_raise_exception ( uint exception_term ) : int
PL_record ( uint term_t ) : uint
PL_recorded ( uint record_t, [ term_t ) : void
PL_register_foreign_in_module ( string module, string name, int arity, Delegate function, int flags ) : int
PL_retry ( int control ) : void

void PL_retry(long) The foreign function succeeds while leaving a choice point. On backtracking over this goal the foreign function will be called again, but the control argument now indicates it is a `Redo' call and the macro PL_foreign_context() will return the handle passed via PL_retry(). This handle is a 30 bits signed value (two bits are used for status indication).

PL_retry_address ( IntPtr control ) : void

void PL_retry_address(void *) As PL_retry(), but ensures an address as returned by malloc() is correctly recovered by PL_foreign_context_address().

PL_rewind_foreign_frame ( uint fid_t ) : void
PL_set_engine ( IntPtr engine, IntPtr &old ) : int
PL_term_type ( uint t ) : int
PL_thread_at_exit ( Delegate function, IntPtr closure, int global ) : int
PL_thread_attach_engine ( IntPtr attr ) : int
PL_thread_destroy_engine ( ) : int
PL_thread_self ( ) : int
PL_toplevel ( ) : int
PL_unify ( uint t1, uint t2 ) : int
PL_unify_atom_chars ( uint t1, string atom ) : int
PL_unify_float ( uint t1, double n ) : int
PL_unify_integer ( uint t1, Int32 n ) : int
PL_unify_integer ( uint t1, Int64 n ) : int
PL_unify_intptr ( uint term, IntPtr intptr ) : int
PL_unify_list ( uint term_t_l, uint term_t_h, uint term_t_t ) : int
PL_unify_list_chars ( uint t1, string atom ) : int
PL_unify_nil ( uint term_t ) : int
PL_unify_stream ( uint term_t, IntPtr iostream ) : int
PL_unify_string_chars ( uint t1, string atom ) : int
PL_warning ( string text ) : int
PL_write_term ( IntPtr iostream, uint term_t, int precedence, int flags ) : int
S__getiob ( ) : IntPtr
SetStreamFunction ( Streams streamType, StreamsFunction functionType, Delegate function ) : void
Slinesize ( ) : int
Snew ( ) : IntPtr

UnLoadUnmanagedLibrary ( ) : void

Описание методов

InternalError() публичный статический Метод

public static InternalError ( string cause, Exception exception ) : void
cause string
exception System.Exception
Результат void

Is64Bit() публичный статический Метод

public static Is64Bit ( ) : bool
Результат bool

LoadLibPl() публичный статический Метод

public static LoadLibPl ( ) : void
Результат void

LoadUnmanagedPrologLibrary() публичный статический Метод

public static LoadUnmanagedPrologLibrary ( string fileName ) : SafeLibraryHandle
fileName string
Результат SafeLibraryHandle

PL_abort_hook() публичный статический Метод

public static PL_abort_hook ( PL_abort_hook_t ah ) : void
ah PL_abort_hook_t
Результат void

PL_abort_unhook() публичный статический Метод

public static PL_abort_unhook ( PL_abort_hook_t ah ) : int
ah PL_abort_hook_t
Результат int

PL_agc_hook() публичный статический Метод

public static PL_agc_hook ( PL_agc_hook_t newhook ) : PL_agc_hook_t
newhook PL_agc_hook_t
Результат PL_agc_hook_t

PL_atom_chars() публичный статический Метод

public static PL_atom_chars ( uint t_atom ) : String
t_atom uint
Результат String

PL_atom_wchars() публичный статический Метод

public static PL_atom_wchars ( uint t_atom ) : String
t_atom uint
Результат String

PL_chars_to_term() публичный статический Метод

public static PL_chars_to_term ( string chars, uint term ) : int
chars string
term uint
Результат int

PL_cleanup() публичный статический Метод

public static PL_cleanup ( int status ) : int
status int
Результат int

PL_close_foreign_frame() публичный статический Метод

public static PL_close_foreign_frame ( uint fid_t ) : void
fid_t uint
Результат void

PL_close_query() публичный статический Метод

public static PL_close_query ( uint qid ) : void
qid uint
Результат void

PL_compare() публичный статический Метод

public static PL_compare ( uint term1, uint term2 ) : int
term1 uint
term2 uint
Результат int

PL_cons_functor_v() публичный статический Метод

public static PL_cons_functor_v ( uint term, uint functor_t, uint term_a0 ) : void
term uint
functor_t uint
term_a0 uint
Результат void

PL_copy_term_ref() публичный статический Метод

public static PL_copy_term_ref ( uint term_t ) : uint
term_t uint
Результат uint

PL_create_engine() публичный статический Метод

public static PL_create_engine ( IntPtr attr ) : IntPtr
attr System.IntPtr
Результат System.IntPtr

PL_cut_query() публичный статический Метод

public static PL_cut_query ( uint qid ) : void
qid uint
Результат void

PL_destroy_engine() публичный статический Метод

public static PL_destroy_engine ( IntPtr engine ) : int
engine System.IntPtr
Результат int

PL_discard_foreign_frame() публичный статический Метод

public static PL_discard_foreign_frame ( uint fid_t ) : void
fid_t uint
Результат void

PL_erase() публичный статический Метод

public static PL_erase ( uint record_t ) : void
record_t uint
Результат void

PL_exception() публичный статический Метод

public static PL_exception ( uint qid ) : uint
qid uint
Результат uint

PL_foreign_context() публичный статический Метод

long PL_foreign_context(control_t) Extracts the context from the context argument. In the call type is PL_FIRST_CALL the context value is 0L. Otherwise it is the value returned by the last PL_retry() associated with this goal (both if the call type is PL_REDO as PL_CUTTED).
public static PL_foreign_context ( IntPtr control ) : int
control System.IntPtr
Результат int

PL_foreign_context_address() публичный статический Метод

void * PL_foreign_context_address(control_t) Extracts an address as passed in by PL_retry_address().
public static PL_foreign_context_address ( IntPtr control ) : IntPtr
control System.IntPtr
Результат System.IntPtr

PL_foreign_control() публичный статический Метод

int PL_foreign_control(control_t) Extracts the type of call from the control argument. The return values are described above. Note: that the function should be prepared to handle the PL_CUTTED case and Note: should be aware that the other arguments are not valid in this case.
public static PL_foreign_control ( IntPtr control ) : FRG
control System.IntPtr
Результат FRG

PL_get_arg() публичный статический Метод

public static PL_get_arg ( int index, uint t, uint a ) : int
index int
t uint
a uint
Результат int

PL_get_atom() публичный статический Метод

public static PL_get_atom ( uint term, uint &atom_t ) : int
term uint
atom_t uint
Результат int

PL_get_chars() публичный статический Метод

public static PL_get_chars ( uint term, string &s, uint flags ) : int
term uint
s string
flags uint
Результат int

PL_get_float() публичный статический Метод

public static PL_get_float ( uint term, double &i ) : int
term uint
i double
Результат int

PL_get_int64() публичный статический Метод

public static PL_get_int64 ( uint term, long &i ) : int
term uint
i long
Результат int

PL_get_integer() публичный статический Метод

public static PL_get_integer ( uint term, int &i ) : int
term uint
i int
Результат int

PL_get_intptr() публичный статический Метод

public static PL_get_intptr ( uint term, IntPtr &i ) : int
term uint
i System.IntPtr
Результат int

PL_get_list() публичный статический Метод

public static PL_get_list ( uint term_t_l, uint term_t_h, uint term_t_t ) : int
term_t_l uint
term_t_h uint
term_t_t uint
Результат int

PL_get_long() публичный статический Метод

public static PL_get_long ( uint term, long &i ) : int
term uint
i long
Результат int

PL_get_name_arity() публичный статический Метод

public static PL_get_name_arity ( uint t, uint &name, int &arity ) : int
t uint
name uint
arity int
Результат int

PL_get_nil() публичный статический Метод

public static PL_get_nil ( uint term_t ) : int
term_t uint
Результат int

PL_get_pointer() публичный статический Метод

public static PL_get_pointer ( uint term, IntPtr &i ) : int
term uint
i System.IntPtr
Результат int

PL_halt() публичный статический Метод

public static PL_halt ( int i ) : int
i int
Результат int

PL_initialise() публичный статический Метод

public static PL_initialise ( int argc, String argv ) : int
argc int
argv String
Результат int

PL_is_atom() публичный статический Метод

public static PL_is_atom ( uint term_t ) : int
term_t uint
Результат int

PL_is_atomic() публичный статический Метод

public static PL_is_atomic ( uint term_t ) : int
term_t uint
Результат int

PL_is_attvar() публичный статический Метод

public static PL_is_attvar ( uint termRef ) : int
termRef uint
Результат int

PL_is_blob() публичный статический Метод

public static PL_is_blob ( uint termRef, [ type ) : int
termRef uint
type [
Результат int

PL_is_compound() публичный статический Метод

public static PL_is_compound ( uint term_t ) : int
term_t uint
Результат int

PL_is_float() публичный статический Метод

public static PL_is_float ( uint term_t ) : int
term_t uint
Результат int

PL_is_ground() публичный статический Метод

public static PL_is_ground ( uint term_t ) : int
term_t uint
Результат int

PL_is_initialised() публичный статический Метод

public static PL_is_initialised ( IntPtr argc, IntPtr argv ) : int
argc IntPtr
argv IntPtr
Результат int

PL_is_initialised() публичный статический Метод

Does NOT work correct if engine is_initialised int PL_is_initialised(int *argc, char ***argv)
public static PL_is_initialised ( int &argc, String &argv ) : int
argc int
argv String
Результат int

PL_is_integer() публичный статический Метод

public static PL_is_integer ( uint term_t ) : int
term_t uint
Результат int

PL_is_list() публичный статический Метод

public static PL_is_list ( uint term_t ) : int
term_t uint
Результат int

PL_is_number() публичный статический Метод

public static PL_is_number ( uint term_t ) : int
term_t uint
Результат int

PL_is_string() публичный статический Метод

public static PL_is_string ( uint term_t ) : int
term_t uint
Результат int

PL_is_variable() публичный статический Метод

public static PL_is_variable ( uint term_t ) : int
term_t uint
Результат int

PL_new_atom() публичный статический Метод

public static PL_new_atom ( string text ) : uint
text string
Результат uint

PL_new_atom_wchars() публичный статический Метод

public static PL_new_atom_wchars ( int len, string text ) : uint
len int
text string
Результат uint

PL_new_functor() публичный статический Метод

public static PL_new_functor ( uint atom_a, int a ) : uint
atom_a uint
a int
Результат uint

PL_new_term_ref() публичный статический Метод

public static PL_new_term_ref ( ) : uint
Результат uint

PL_new_term_refs() публичный статический Метод

public static PL_new_term_refs ( int n ) : uint
n int
Результат uint

PL_next_solution() публичный статический Метод

public static PL_next_solution ( uint qid_t ) : int
qid_t uint
Результат int

PL_on_halt() публичный статический Метод

public static PL_on_halt ( SwiOnHalt oh, void closure ) : void
oh SwiOnHalt
closure void
Результат void

PL_open_foreign_frame() публичный статический Метод

public static PL_open_foreign_frame ( ) : uint
Результат uint

PL_open_query() публичный статический Метод

public static PL_open_query ( IntPtr module, int flags, IntPtr pred, uint term ) : uint
module IntPtr
flags int
pred IntPtr
term uint
Результат uint

PL_predicate() публичный статический Метод

public static PL_predicate ( string name, int arity, string module ) : IntPtr
name string
arity int
module string
Результат IntPtr

PL_put_atom() публичный статический Метод

public static PL_put_atom ( uint term, uint atom_handle ) : void
term uint
atom_handle uint
Результат void

PL_put_atom_chars() публичный статический Метод

public static PL_put_atom_chars ( uint term, string chars ) : void
term uint
chars string
Результат void

PL_put_float() публичный статический Метод

public static PL_put_float ( uint term, double i ) : void
term uint
i double
Результат void

PL_put_integer() публичный статический Метод

public static PL_put_integer ( uint term, long i ) : void
term uint
i long
Результат void

PL_put_list() публичный статический Метод

public static PL_put_list ( uint term_t ) : void
term_t uint
Результат void

PL_put_list_chars() публичный статический Метод

public static PL_put_list_chars ( uint term_t, string chars ) : void
term_t uint
chars string
Результат void

PL_put_list_codes() публичный статический Метод

public static PL_put_list_codes ( uint term_t, string chars ) : void
term_t uint
chars string
Результат void

PL_put_string_chars() публичный статический Метод

public static PL_put_string_chars ( uint term_t, string chars ) : void
term_t uint
chars string
Результат void

PL_put_string_nchars() публичный статический Метод

public static PL_put_string_nchars ( uint term_t, int len, string chars ) : void
term_t uint
len int
chars string
Результат void

PL_put_term() публичный статический Метод

public static PL_put_term ( uint t1, uint t2 ) : void
t1 uint
t2 uint
Результат void

PL_query() публичный статический Метод

public static PL_query ( uint query_type ) : uint
query_type uint
Результат uint

PL_raise_exception() публичный статический Метод

public static PL_raise_exception ( uint exception_term ) : int
exception_term uint
Результат int

PL_record() публичный статический Метод

public static PL_record ( uint term_t ) : uint
term_t uint
Результат uint

PL_recorded() публичный статический Метод

public static PL_recorded ( uint record_t, [ term_t ) : void
record_t uint
term_t [
Результат void

PL_register_foreign_in_module() публичный статический Метод

public static PL_register_foreign_in_module ( string module, string name, int arity, Delegate function, int flags ) : int
module string
name string
arity int
function Delegate
flags int
Результат int

PL_retry() публичный статический Метод

void PL_retry(long) The foreign function succeeds while leaving a choice point. On backtracking over this goal the foreign function will be called again, but the control argument now indicates it is a `Redo' call and the macro PL_foreign_context() will return the handle passed via PL_retry(). This handle is a 30 bits signed value (two bits are used for status indication).
public static PL_retry ( int control ) : void
control int
Результат void

PL_retry_address() публичный статический Метод

void PL_retry_address(void *) As PL_retry(), but ensures an address as returned by malloc() is correctly recovered by PL_foreign_context_address().
public static PL_retry_address ( IntPtr control ) : void
control IntPtr
Результат void

PL_rewind_foreign_frame() публичный статический Метод

public static PL_rewind_foreign_frame ( uint fid_t ) : void
fid_t uint
Результат void

PL_set_engine() публичный статический Метод

public static PL_set_engine ( IntPtr engine, IntPtr &old ) : int
engine IntPtr
old IntPtr
Результат int

PL_term_type() публичный статический Метод

public static PL_term_type ( uint t ) : int
t uint
Результат int

PL_thread_at_exit() публичный статический Метод

public static PL_thread_at_exit ( Delegate function, IntPtr closure, int global ) : int
function Delegate
closure IntPtr
global int
Результат int

PL_thread_attach_engine() публичный статический Метод

public static PL_thread_attach_engine ( IntPtr attr ) : int
attr IntPtr
Результат int

PL_thread_destroy_engine() публичный статический Метод

public static PL_thread_destroy_engine ( ) : int
Результат int

PL_thread_self() публичный статический Метод

public static PL_thread_self ( ) : int
Результат int

PL_toplevel() публичный статический Метод

public static PL_toplevel ( ) : int
Результат int

PL_unify() публичный статический Метод

public static PL_unify ( uint t1, uint t2 ) : int
t1 uint
t2 uint
Результат int

PL_unify_atom_chars() публичный статический Метод

public static PL_unify_atom_chars ( uint t1, string atom ) : int
t1 uint
atom string
Результат int

PL_unify_float() публичный статический Метод

public static PL_unify_float ( uint t1, double n ) : int
t1 uint
n double
Результат int

PL_unify_integer() публичный статический Метод

public static PL_unify_integer ( uint t1, Int32 n ) : int
t1 uint
n Int32
Результат int

PL_unify_integer() публичный статический Метод

public static PL_unify_integer ( uint t1, Int64 n ) : int
t1 uint
n Int64
Результат int

PL_unify_intptr() публичный статический Метод

public static PL_unify_intptr ( uint term, IntPtr intptr ) : int
term uint
intptr IntPtr
Результат int

PL_unify_list() публичный статический Метод

public static PL_unify_list ( uint term_t_l, uint term_t_h, uint term_t_t ) : int
term_t_l uint
term_t_h uint
term_t_t uint
Результат int

PL_unify_list_chars() публичный статический Метод

public static PL_unify_list_chars ( uint t1, string atom ) : int
t1 uint
atom string
Результат int

PL_unify_nil() публичный статический Метод

public static PL_unify_nil ( uint term_t ) : int
term_t uint
Результат int

PL_unify_stream() публичный статический Метод

public static PL_unify_stream ( uint term_t, IntPtr iostream ) : int
term_t uint
iostream IntPtr
Результат int

PL_unify_string_chars() публичный статический Метод

public static PL_unify_string_chars ( uint t1, string atom ) : int
t1 uint
atom string
Результат int

PL_warning() публичный статический Метод

public static PL_warning ( string text ) : int
text string
Результат int

PL_write_term() публичный статический Метод

public static PL_write_term ( IntPtr iostream, uint term_t, int precedence, int flags ) : int
iostream IntPtr
term_t uint
precedence int
flags int
Результат int

S__getiob() публичный статический Метод

public static S__getiob ( ) : IntPtr
Результат IntPtr

SetStreamFunction() публичный статический Метод

public static SetStreamFunction ( Streams streamType, StreamsFunction functionType, Delegate function ) : void
streamType Streams
functionType StreamsFunction
function Delegate
Результат void

Slinesize() публичный статический Метод

public static Slinesize ( ) : int
Результат int

Snew() публичный статический Метод

public static Snew ( ) : IntPtr
Результат IntPtr

UnLoadUnmanagedLibrary() публичный статический Метод

public static UnLoadUnmanagedLibrary ( ) : void
Результат void

Описание свойств

NoToString публичное статическое свойство

public static bool NoToString
Результат bool

TermRefCount публичное статическое свойство

public static ulong TermRefCount
Результат ulong