A Discrete-Event Network Simulator
API
Helpers to Specialize on bool
+ Collaboration diagram for Helpers to Specialize on bool:

Functions

template<typename T >
bool ns3::CommandLineHelper::UserItemParse (const std::string value, T &val)
 Helpers to specialize CommandLine::UserItem::Parse() More...
 
template<typename T >
std::string ns3::CommandLineHelper::GetDefault (const T &val)
 Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More...
 
template<>
std::string ns3::CommandLineHelper::GetDefault< bool > (const bool &val)
 Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More...
 
template<>
std::string ns3::CommandLineHelper::GetDefault< Time > (const Time &val)
 Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More...
 

Detailed Description

Function Documentation

◆ GetDefault()

template<typename T >
std::string ns3::CommandLineHelper::GetDefault ( const T &  val)

Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling.

Parameters
[in]valThe argument value
Returns
The string representation of value

Definition at line 721 of file command-line.h.

◆ GetDefault< bool >()

template<>
std::string ns3::CommandLineHelper::GetDefault< bool > ( const bool &  val)

Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling.

Parameters
[in]valThe argument value
Returns
The string representation of value

Definition at line 865 of file command-line.cc.

◆ GetDefault< Time >()

template<>
std::string ns3::CommandLineHelper::GetDefault< Time > ( const Time val)

Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling.

Parameters
[in]valThe argument value
Returns
The string representation of value

Definition at line 905 of file command-line.cc.

References ns3::Time::As().

+ Here is the call graph for this function:

◆ UserItemParse()

template<typename T >
bool ns3::CommandLineHelper::UserItemParse ( const std::string  value,
T &  val 
)

Helpers to specialize CommandLine::UserItem::Parse()

Parameters
[in]valueThe argument name
[out]valThe argument location
Template Parameters
T[deduced] The type being specialized
Returns
true if parsing was successful

Definition at line 737 of file command-line.h.