14#ifndef INTERROGATE_INTERFACE_H
15#define INTERROGATE_INTERFACE_H
58typedef int ManifestIndex;
59typedef int ElementIndex;
61typedef int FunctionIndex;
62typedef int FunctionWrapperIndex;
63typedef int MakeSeqIndex;
92EXPCL_INTERROGATEDB
void interrogate_add_search_directory(
const char *dirname);
93EXPCL_INTERROGATEDB
void interrogate_add_search_path(
const char *pathstring);
94EXPCL_INTERROGATEDB
bool interrogate_error_flag();
109EXPCL_INTERROGATEDB
int interrogate_number_of_manifests();
110EXPCL_INTERROGATEDB ManifestIndex interrogate_get_manifest(
int n);
111EXPCL_INTERROGATEDB ManifestIndex interrogate_get_manifest_by_name(
const char *manifest_name);
112EXPCL_INTERROGATEDB
const char *interrogate_manifest_name(ManifestIndex manifest);
113EXPCL_INTERROGATEDB
const char *interrogate_manifest_definition(ManifestIndex manifest);
114EXPCL_INTERROGATEDB
bool interrogate_manifest_has_type(ManifestIndex manifest);
115EXPCL_INTERROGATEDB TypeIndex interrogate_manifest_get_type(ManifestIndex manifest);
116EXPCL_INTERROGATEDB
bool interrogate_manifest_has_getter(ManifestIndex manifest);
117EXPCL_INTERROGATEDB FunctionIndex interrogate_manifest_getter(ManifestIndex manifest);
124EXPCL_INTERROGATEDB
bool interrogate_manifest_has_int_value(ManifestIndex manifest);
125EXPCL_INTERROGATEDB
int interrogate_manifest_get_int_value(ManifestIndex manifest);
134EXPCL_INTERROGATEDB
const char *interrogate_element_name(ElementIndex element);
135EXPCL_INTERROGATEDB
const char *interrogate_element_scoped_name(ElementIndex element);
136EXPCL_INTERROGATEDB
bool interrogate_element_has_comment(ElementIndex element);
137EXPCL_INTERROGATEDB
const char *interrogate_element_comment(ElementIndex element);
138EXPCL_INTERROGATEDB ElementIndex interrogate_get_element_by_name(
const char *element_name);
139EXPCL_INTERROGATEDB ElementIndex interrogate_get_element_by_scoped_name(
const char *element_name);
149EXPCL_INTERROGATEDB TypeIndex interrogate_element_type(ElementIndex element);
151EXPCL_INTERROGATEDB
bool interrogate_element_has_getter(ElementIndex element);
152EXPCL_INTERROGATEDB FunctionIndex interrogate_element_getter(ElementIndex element);
153EXPCL_INTERROGATEDB
bool interrogate_element_has_setter(ElementIndex element);
154EXPCL_INTERROGATEDB FunctionIndex interrogate_element_setter(ElementIndex element);
156EXPCL_INTERROGATEDB
bool interrogate_element_is_sequence(ElementIndex element);
157EXPCL_INTERROGATEDB
bool interrogate_element_is_mapping(ElementIndex element);
163EXPCL_INTERROGATEDB
int interrogate_number_of_globals();
164EXPCL_INTERROGATEDB ElementIndex interrogate_get_global(
int n);
175EXPCL_INTERROGATEDB
int interrogate_number_of_global_functions();
176EXPCL_INTERROGATEDB FunctionIndex interrogate_get_global_function(
int n);
183EXPCL_INTERROGATEDB
int interrogate_number_of_functions();
184EXPCL_INTERROGATEDB FunctionIndex interrogate_get_function(
int n);
191EXPCL_INTERROGATEDB
const char *interrogate_function_name(FunctionIndex function);
198EXPCL_INTERROGATEDB
const char *interrogate_function_scoped_name(FunctionIndex function);
202EXPCL_INTERROGATEDB
bool interrogate_function_has_comment(FunctionIndex function);
203EXPCL_INTERROGATEDB
const char *interrogate_function_comment(FunctionIndex function);
207EXPCL_INTERROGATEDB
const char *interrogate_function_prototype(FunctionIndex function);
211EXPCL_INTERROGATEDB
bool interrogate_function_is_method(FunctionIndex function);
212EXPCL_INTERROGATEDB TypeIndex interrogate_function_class(FunctionIndex function);
213EXPCL_INTERROGATEDB
bool interrogate_function_is_unary_op(FunctionIndex function);
214EXPCL_INTERROGATEDB
bool interrogate_function_is_operator_typecast(FunctionIndex function);
215EXPCL_INTERROGATEDB
bool interrogate_function_is_constructor(FunctionIndex function);
216EXPCL_INTERROGATEDB
bool interrogate_function_is_destructor(FunctionIndex function);
219EXPCL_INTERROGATEDB
bool interrogate_function_has_module_name(FunctionIndex function);
220EXPCL_INTERROGATEDB
const char *interrogate_function_module_name(FunctionIndex function);
223EXPCL_INTERROGATEDB
bool interrogate_function_has_library_name(FunctionIndex function);
224EXPCL_INTERROGATEDB
const char *interrogate_function_library_name(FunctionIndex function);
228EXPCL_INTERROGATEDB
bool interrogate_function_is_virtual(FunctionIndex function);
239EXPCL_INTERROGATEDB
int interrogate_function_number_of_c_wrappers(FunctionIndex function);
240EXPCL_INTERROGATEDB FunctionWrapperIndex interrogate_function_c_wrapper(FunctionIndex function,
int n);
242EXPCL_INTERROGATEDB
int interrogate_function_number_of_python_wrappers(FunctionIndex function);
243EXPCL_INTERROGATEDB FunctionWrapperIndex interrogate_function_python_wrapper(FunctionIndex function,
int n);
262EXPCL_INTERROGATEDB
const char *interrogate_wrapper_name(FunctionWrapperIndex wrapper);
266EXPCL_INTERROGATEDB
bool interrogate_wrapper_is_callable_by_name(FunctionWrapperIndex wrapper);
271EXPCL_INTERROGATEDB
bool interrogate_wrapper_has_comment(FunctionWrapperIndex wrapper);
272EXPCL_INTERROGATEDB
const char *interrogate_wrapper_comment(FunctionWrapperIndex wrapper);
281EXPCL_INTERROGATEDB
bool interrogate_wrapper_has_return_value(FunctionWrapperIndex wrapper);
282EXPCL_INTERROGATEDB TypeIndex interrogate_wrapper_return_type(FunctionWrapperIndex wrapper);
297EXPCL_INTERROGATEDB
bool interrogate_wrapper_caller_manages_return_value(FunctionWrapperIndex wrapper);
298EXPCL_INTERROGATEDB FunctionIndex interrogate_wrapper_return_value_destructor(FunctionWrapperIndex wrapper);
301EXPCL_INTERROGATEDB
int interrogate_wrapper_number_of_parameters(FunctionWrapperIndex wrapper);
302EXPCL_INTERROGATEDB TypeIndex interrogate_wrapper_parameter_type(FunctionWrapperIndex wrapper,
int n);
303EXPCL_INTERROGATEDB
bool interrogate_wrapper_parameter_has_name(FunctionWrapperIndex wrapper,
int n);
304EXPCL_INTERROGATEDB
const char *interrogate_wrapper_parameter_name(FunctionWrapperIndex wrapper,
int n);
305EXPCL_INTERROGATEDB
bool interrogate_wrapper_parameter_is_this(FunctionWrapperIndex wrapper,
int n);
306EXPCL_INTERROGATEDB
bool interrogate_wrapper_parameter_is_optional(FunctionWrapperIndex wrapper,
int n);
315EXPCL_INTERROGATEDB
bool interrogate_wrapper_has_pointer(FunctionWrapperIndex wrapper);
316EXPCL_INTERROGATEDB
void *interrogate_wrapper_pointer(FunctionWrapperIndex wrapper);
327EXPCL_INTERROGATEDB
const char *interrogate_wrapper_unique_name(FunctionWrapperIndex wrapper);
336EXPCL_INTERROGATEDB FunctionWrapperIndex interrogate_get_wrapper_by_unique_name(
const char *unique_name);
345EXPCL_INTERROGATEDB
const char *interrogate_make_seq_seq_name(MakeSeqIndex make_seq);
346EXPCL_INTERROGATEDB
const char *interrogate_make_seq_scoped_name(MakeSeqIndex make_seq);
347EXPCL_INTERROGATEDB
bool interrogate_make_seq_has_comment(ElementIndex element);
348EXPCL_INTERROGATEDB
const char *interrogate_make_seq_comment(ElementIndex element);
350EXPCL_INTERROGATEDB
const char *interrogate_make_seq_num_name(MakeSeqIndex make_seq);
352EXPCL_INTERROGATEDB
const char *interrogate_make_seq_element_name(MakeSeqIndex make_seq);
353EXPCL_INTERROGATEDB FunctionIndex interrogate_make_seq_num_getter(MakeSeqIndex make_seq);
354EXPCL_INTERROGATEDB FunctionIndex interrogate_make_seq_element_getter(MakeSeqIndex make_seq);
372EXPCL_INTERROGATEDB
int interrogate_number_of_global_types();
373EXPCL_INTERROGATEDB TypeIndex interrogate_get_global_type(
int n);
374EXPCL_INTERROGATEDB
int interrogate_number_of_types();
375EXPCL_INTERROGATEDB TypeIndex interrogate_get_type(
int n);
376EXPCL_INTERROGATEDB TypeIndex interrogate_get_type_by_name(
const char *type_name);
377EXPCL_INTERROGATEDB TypeIndex interrogate_get_type_by_scoped_name(
const char *type_name);
378EXPCL_INTERROGATEDB TypeIndex interrogate_get_type_by_true_name(
const char *type_name);
379EXPCL_INTERROGATEDB
bool interrogate_type_is_global(TypeIndex type);
380EXPCL_INTERROGATEDB
const char *interrogate_type_name(TypeIndex type);
381EXPCL_INTERROGATEDB
const char *interrogate_type_scoped_name(TypeIndex type);
382EXPCL_INTERROGATEDB
const char *interrogate_type_true_name(TypeIndex type);
390EXPCL_INTERROGATEDB
bool interrogate_type_is_nested(TypeIndex type);
391EXPCL_INTERROGATEDB TypeIndex interrogate_type_outer_class(TypeIndex type);
393EXPCL_INTERROGATEDB
bool interrogate_type_has_comment(TypeIndex type);
394EXPCL_INTERROGATEDB
const char *interrogate_type_comment(TypeIndex type);
397EXPCL_INTERROGATEDB
bool interrogate_type_has_module_name(TypeIndex type);
398EXPCL_INTERROGATEDB
const char *interrogate_type_module_name(TypeIndex type);
401EXPCL_INTERROGATEDB
bool interrogate_type_has_library_name(TypeIndex type);
402EXPCL_INTERROGATEDB
const char *interrogate_type_library_name(TypeIndex type);
409EXPCL_INTERROGATEDB
bool interrogate_type_is_atomic(TypeIndex type);
410EXPCL_INTERROGATEDB AtomicToken interrogate_type_atomic_token(TypeIndex type);
411EXPCL_INTERROGATEDB
bool interrogate_type_is_unsigned(TypeIndex type);
412EXPCL_INTERROGATEDB
bool interrogate_type_is_signed(TypeIndex type);
413EXPCL_INTERROGATEDB
bool interrogate_type_is_long(TypeIndex type);
414EXPCL_INTERROGATEDB
bool interrogate_type_is_longlong(TypeIndex type);
415EXPCL_INTERROGATEDB
bool interrogate_type_is_short(TypeIndex type);
423EXPCL_INTERROGATEDB
bool interrogate_type_is_wrapped(TypeIndex type);
424EXPCL_INTERROGATEDB
bool interrogate_type_is_pointer(TypeIndex type);
425EXPCL_INTERROGATEDB
bool interrogate_type_is_const(TypeIndex type);
426EXPCL_INTERROGATEDB
bool interrogate_type_is_typedef(TypeIndex type);
427EXPCL_INTERROGATEDB TypeIndex interrogate_type_wrapped_type(TypeIndex type);
430EXPCL_INTERROGATEDB
bool interrogate_type_is_array(TypeIndex type);
431EXPCL_INTERROGATEDB
int interrogate_type_array_size(TypeIndex type);
435EXPCL_INTERROGATEDB
bool interrogate_type_is_enum(TypeIndex type);
436EXPCL_INTERROGATEDB
bool interrogate_type_is_scoped_enum(TypeIndex type);
437EXPCL_INTERROGATEDB
int interrogate_type_number_of_enum_values(TypeIndex type);
438EXPCL_INTERROGATEDB
const char *interrogate_type_enum_value_name(TypeIndex type,
int n);
439EXPCL_INTERROGATEDB
const char *interrogate_type_enum_value_scoped_name(TypeIndex type,
int n);
440EXPCL_INTERROGATEDB
const char *interrogate_type_enum_value_comment(TypeIndex type,
int n);
441EXPCL_INTERROGATEDB
int interrogate_type_enum_value(TypeIndex type,
int n);
449EXPCL_INTERROGATEDB
bool interrogate_type_is_struct(TypeIndex type);
450EXPCL_INTERROGATEDB
bool interrogate_type_is_class(TypeIndex type);
451EXPCL_INTERROGATEDB
bool interrogate_type_is_union(TypeIndex type);
456EXPCL_INTERROGATEDB
bool interrogate_type_is_fully_defined(TypeIndex type);
461EXPCL_INTERROGATEDB
bool interrogate_type_is_unpublished(TypeIndex type);
484EXPCL_INTERROGATEDB
int interrogate_type_number_of_constructors(TypeIndex type);
485EXPCL_INTERROGATEDB FunctionIndex interrogate_type_get_constructor(TypeIndex type,
int n);
486EXPCL_INTERROGATEDB
bool interrogate_type_has_destructor(TypeIndex type);
487EXPCL_INTERROGATEDB
bool interrogate_type_destructor_is_inherited(TypeIndex type);
488EXPCL_INTERROGATEDB FunctionIndex interrogate_type_get_destructor(TypeIndex type);
491EXPCL_INTERROGATEDB
int interrogate_type_number_of_elements(TypeIndex type);
492EXPCL_INTERROGATEDB ElementIndex interrogate_type_get_element(TypeIndex type,
int n);
495EXPCL_INTERROGATEDB
int interrogate_type_number_of_methods(TypeIndex type);
496EXPCL_INTERROGATEDB FunctionIndex interrogate_type_get_method(TypeIndex type,
int n);
499EXPCL_INTERROGATEDB
int interrogate_type_number_of_make_seqs(TypeIndex type);
500EXPCL_INTERROGATEDB MakeSeqIndex interrogate_type_get_make_seq(TypeIndex type,
int n);
506EXPCL_INTERROGATEDB
int interrogate_type_number_of_casts(TypeIndex type);
507EXPCL_INTERROGATEDB FunctionIndex interrogate_type_get_cast(TypeIndex type,
int n);
511EXPCL_INTERROGATEDB
int interrogate_type_number_of_derivations(TypeIndex type);
512EXPCL_INTERROGATEDB TypeIndex interrogate_type_get_derivation(TypeIndex type,
int n);
513EXPCL_INTERROGATEDB
bool interrogate_type_is_final(TypeIndex type);
528EXPCL_INTERROGATEDB
bool interrogate_type_derivation_has_upcast(TypeIndex type,
int n);
529EXPCL_INTERROGATEDB FunctionIndex interrogate_type_get_upcast(TypeIndex type,
int n);
540EXPCL_INTERROGATEDB
bool interrogate_type_derivation_downcast_is_impossible(TypeIndex type,
int n);
541EXPCL_INTERROGATEDB
bool interrogate_type_derivation_has_downcast(TypeIndex type,
int n);
542EXPCL_INTERROGATEDB FunctionIndex interrogate_type_get_downcast(TypeIndex type,
int n);
546EXPCL_INTERROGATEDB
int interrogate_type_number_of_nested_types(TypeIndex type);
547EXPCL_INTERROGATEDB TypeIndex interrogate_type_get_nested_type(TypeIndex type,
int n);