4 The class PlTerm
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • A C++ interface to SWI-Prolog
        • The class PlTerm
          • Constructors
          • Casting PlTerm to native C-types
          • Unification
          • Comparison
          • Analysing compound terms
          • Miscellaneous
          • The class PlString
          • The class PlCodeList
          • The class PlCharList
          • The class PlCompound
          • The class PlTail

4.6 Miscellaneous

int PlTerm::type()
Yields the actual type of the term as PL_term_type(). Return values are PL_VARIABLE, PL_FLOAT, PL_INTEGER, PL_ATOM, PL_STRING or PL_TERM

To avoid very confusing combinations of constructors and therefore possible undesirable effects a number of subclasses of PlTerm have been defined that provide constructors for creating special Prolog terms. These subclasses are defined below.