All input/output operators are confined to this namespace. More...
All input/output operators are confined to this namespace.
This is done so that the library's input/output operators do not interfere with those the user might want to define. In fact, it is highly unlikely that any predefined I/O operator will suit the needs of a client application. On the other hand, those applications for which the PPL I/O operator are enough can easily obtain access to them. For example, a directive like
using namespace Parma_Polyhedra_Library::IO_Operators;
would suffice for most uses. In more complex situations, such as
const Constraint_System& cs = ...; copy(cs.begin(), cs.end(), ostream_iterator<Constraint>(cout, "\n"));
the Parma_Polyhedra_Library namespace must be suitably extended. This can be done as follows:
namespace Parma_Polyhedra_Library { // Import all the output operators into the main PPL namespace. using IO_Operators::operator<<; }
| std::ostream& Parma_Polyhedra_Library::IO_Operators::operator<< | ( | std::ostream & | os, | |
| const PIP_Tree_Node::Artificial_Parameter & | x | |||
| ) | [related] |
Definition at line 347 of file PIP_Tree.cc.
References Parma_Polyhedra_Library::PIP_Tree_Node::Artificial_Parameter::denominator().
| std::ostream& Parma_Polyhedra_Library::IO_Operators::operator<< | ( | std::ostream & | os, | |
| const PIP_Tree_Node & | x | |||
| ) | [related] |
Definition at line 341 of file PIP_Tree.cc.
References Parma_Polyhedra_Library::PIP_Tree_Node::print().
1.6.3