Insert ,
when streaming function arguments.
More...
#include "log.h"
Insert ,
when streaming function arguments.
Definition at line 457 of file log.h.
◆ ParameterLogger()
ns3::ParameterLogger::ParameterLogger |
( |
std::ostream & |
os | ) |
|
Constructor.
- Parameters
-
[in] | os | Underlying output stream. |
Definition at line 653 of file log.cc.
◆ operator<<() [1/2]
Write a function parameter on the output stream, separating parameters after the first by ,
strings.
- Parameters
-
[in] | param | The function parameter. |
- Returns
- This ParameterLogger, so it's chainable.
Definition at line 492 of file log.h.
References m_first, and m_os.
◆ operator<<() [2/2]
template<typename T >
ParameterLogger & ns3::ParameterLogger::operator<< |
( |
std::vector< T > |
vector | ) |
|
Overload for vectors, to print each element.
- Parameters
-
[in] | vector | The vector of parameters |
- Returns
- This ParameterLogger, so it's chainable.
Definition at line 508 of file log.h.
◆ m_first
bool ns3::ParameterLogger::m_first |
|
private |
First argument flag, doesn't get ,
.
Definition at line 459 of file log.h.
Referenced by operator<<().
◆ m_os
std::ostream& ns3::ParameterLogger::m_os |
|
private |
The documentation for this class was generated from the following files: