Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
gtl::detail::RangeLogger< IteratorT, PolicyT > Class Template Reference

#include <container_logging.h>

Public Member Functions

 RangeLogger (const IteratorT &begin, const IteratorT &end, const PolicyT &policy)
 
std::string str () const
 

Friends

std::ostream & operator<< (std::ostream &out, const RangeLogger &range)
 

Detailed Description

template<typename IteratorT, typename PolicyT>
class gtl::detail::RangeLogger< IteratorT, PolicyT >

RangeLogger is a helper class for gtl::LogRange and gtl::LogContainer; do not use it directly. This object captures iterators into the argument of the LogRange and LogContainer functions, so its lifetime should be confined to a single logging statement. Objects of this type should not be assigned to local variables.

Definition at line 201 of file container_logging.h.

Constructor & Destructor Documentation

◆ RangeLogger()

template<typename IteratorT , typename PolicyT >
gtl::detail::RangeLogger< IteratorT, PolicyT >::RangeLogger ( const IteratorT & begin,
const IteratorT & end,
const PolicyT & policy )
inline

Definition at line 203 of file container_logging.h.

Member Function Documentation

◆ str()

template<typename IteratorT , typename PolicyT >
std::string gtl::detail::RangeLogger< IteratorT, PolicyT >::str ( ) const
inline

operator<< above is generally recommended. However, some situations may require a string, so a convenience str() method is provided as well.

Definition at line 215 of file container_logging.h.

Friends And Related Symbol Documentation

◆ operator<<

template<typename IteratorT , typename PolicyT >
std::ostream & operator<< ( std::ostream & out,
const RangeLogger< IteratorT, PolicyT > & range )
friend

Definition at line 207 of file container_logging.h.


The documentation for this class was generated from the following file: