more informative print for LinearInequality showing its active/inactive state

release/4.3a0
thduynguyen 2014-12-13 01:04:46 -05:00
parent c4b574774a
commit 48b08bd58e
1 changed files with 4 additions and 1 deletions

View File

@ -91,7 +91,10 @@ public:
/** print */ /** print */
virtual void print(const std::string& s = "", const KeyFormatter& formatter = virtual void print(const std::string& s = "", const KeyFormatter& formatter =
DefaultKeyFormatter) const { DefaultKeyFormatter) const {
Base::print(s, formatter); if (active())
Base::print(s + " Active", formatter);
else
Base::print(s + " Inactive", formatter);
} }
/** Clone this LinearInequality */ /** Clone this LinearInequality */