A Discrete-Event Network Simulator
API
ns3::ParameterLogger Class Reference

Insert , when streaming function arguments. More...

#include "log.h"

+ Collaboration diagram for ns3::ParameterLogger:

Public Member Functions

 ParameterLogger (std::ostream &os)
 Constructor. More...
 
template<typename T >
ParameterLoggeroperator<< (T param)
 Write a function parameter on the output stream, separating parameters after the first by , strings. More...
 

Private Attributes

bool m_first
 First argument flag, doesn't get ,. More...
 
std::ostream & m_os
 Underlying output stream. More...
 

Detailed Description

Insert , when streaming function arguments.

Definition at line 416 of file log.h.

Constructor & Destructor Documentation

ns3::ParameterLogger::ParameterLogger ( std::ostream &  os)

Constructor.

Parameters
[in]osUnderlying output stream.

Definition at line 635 of file log.cc.

Member Function Documentation

template<typename T >
ParameterLogger & ns3::ParameterLogger::operator<< ( param)

Write a function parameter on the output stream, separating parameters after the first by , strings.

Parameters
[in]paramThe function parameter.
Returns
This ParameterLogger, so it's chainable.

Definition at line 442 of file log.h.

References m_first, and m_os.

Member Data Documentation

bool ns3::ParameterLogger::m_first
private

First argument flag, doesn't get ,.

Definition at line 418 of file log.h.

Referenced by operator<<().

std::ostream& ns3::ParameterLogger::m_os
private

Underlying output stream.

Definition at line 419 of file log.h.

Referenced by operator<<().


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