Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
gtl::internal Namespace Reference

Classes

class  Equiv
 
struct  LogBase
 
struct  LogLegacyBase
 
struct  LogMultilineBase
 
struct  LogShortBase
 

Detailed Description

Several policy classes below determine how LogRangeToStream will format a range of items. A Policy class should have these methods:

Called to print an individual container element. void Log(ostream &out, const ElementT &element) const;

Called before printing the set of elements: void LogOpening(ostream &out) const;

Called after printing the set of elements: void LogClosing(ostream &out) const;

Called before printing the first element: void LogFirstSeparator(ostream &out) const;

Called before printing the remaining elements: void LogSeparator(ostream &out) const;

Returns the maximum number of elements to print: int64_t MaxElements() const;

Called to print an indication that MaximumElements() was reached: void LogEllipsis(ostream &out) const;