2.5.2 Summary of files
The following files are provided:
SWI-cpp2.hInclude this file to get the C++ API. It automatically includesSWI-cpp2-plx.hbut does not includeSWI-cpp2.cpp.SWI-cpp2.cppContains the implementations of some methods and functions. It must be compiled as-is or included in the foreign predicate's source file. Alternatively, it can be included with each include ofSWI-cpp2.hwith this macro definition:#define _SWI_CPP2_CPP_inline inlineSWI-cpp2-plx.hContains the wrapper functions for the most of the functions inSWI-Prolog.h. This file is not intended to be used by itself, but is#included bySWI-cpp2.h.SWI-cpp2-atommap.hContains a utility class for mapping atom-to-atom or atom-to-term.test_cpp.cpp,test_cpp.plContains various tests, including some longer sequences of code that can help in understanding how the C++ API is intended to be used. In addition, there aretest_ffi.cpp,test_ffi.pl, which often have the same tests written in C, without the C++ API.