Skip to content
Snippets Groups Projects
Commit 6fee02af authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

Add stream parameter to Problem::{print,check}

parent 23e2b7b7
No related branches found
No related tags found
1 merge request!340Resolve "Problem::check() more exhaustive"
Pipeline #5004 passed
...@@ -325,6 +325,11 @@ class Problem : public std::enable_shared_from_this<Problem> ...@@ -325,6 +325,11 @@ class Problem : public std::enable_shared_from_this<Problem>
public: public:
// Print and check --------------------------------------- // Print and check ---------------------------------------
void print(int depth, //
std::ostream& stream ,
bool constr_by, //
bool metric, //
bool state_blocks) const;
/** /**
* \brief print wolf tree * \brief print wolf tree
* \param depth : levels to show ( 0: H, T, M : 1: H:S:p, T:F, M:L ; 2: T:F:C ; 3: T:F:C:f ; 4: T:F:C:f:c ) * \param depth : levels to show ( 0: H, T, M : 1: H:S:p, T:F, M:L ; 2: T:F:C ; 3: T:F:C:f ; 4: T:F:C:f:c )
...@@ -340,11 +345,8 @@ class Problem : public std::enable_shared_from_this<Problem> ...@@ -340,11 +345,8 @@ class Problem : public std::enable_shared_from_this<Problem>
bool constr_by = false, // bool constr_by = false, //
bool metric = true, // bool metric = true, //
bool state_blocks = false) const; bool state_blocks = false) const;
std::string printToString(int depth = 4, // bool check(int verbose_level) const;
bool constr_by = false, // bool check(bool verbose, std::ostream& stream) const;
bool metric = true, //
bool state_blocks = false) const;
bool check(int verbose_level = 0) const;
}; };
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment