Connect++ 0.7.0
A fast, readable connection prover for first-order logic.
Loading...
Searching...
No Matches
add_fof_formula Struct Reference

More complex semantic action for FOF formulas. More...

#include <TPTPParser.hpp>

Public Member Functions

void operator() (qi::unused_type, qi::unused_type, qi::unused_type) const
 

Detailed Description

More complex semantic action for FOF formulas.

Functions etc to make a FOF formula.

Definition at line 619 of file TPTPParser.hpp.

Member Function Documentation

◆ operator()()

void add_fof_formula::operator() ( qi::unused_type ,
qi::unused_type ,
qi::unused_type  ) const

Definition at line 1397 of file TPTPParser.cpp.

1398 {
1399 if (include_this_item) {
1400 all_formulas.push_back(current_formula);
1401 formula_roles.push_back(current_formula_role);
1402 formula_names.push_back(current_formula_name);
1403 records_p->add_fof_file_record(current_formula_name,
1404 current_formula_role,
1405 current_formula.to_tptp_string(),
1406 include_file_name);
1407 if (current_formula_role == string("conjecture"))
1408 conjecture_found = true;
1409#ifdef DEBUGOUTPUT
1410 cout << current_formula.to_string() << endl;
1411#endif
1412 }
1413 current_formula_role = "";
1414 }
string to_tptp_string(bool=false) const
Convert a FOF into a nice-looking string in the TPTP format.
Definition FOF.cpp:1345
string to_string() const
Convert a FOF into a nice-looking string.
Definition FOF.cpp:1267

The documentation for this struct was generated from the following files: