A Discrete-Event Network Simulator
API
Helpers to specialize UserItem
+ Collaboration diagram for Helpers to specialize UserItem:

Functions

template<typename T >
bool ns3::CommandLineHelper::UserItemParse (const std::string &value, T &dest)
 Helpers to specialize CommandLine::UserItem::Parse() More...
 
template<typename T >
std::string ns3::CommandLineHelper::GetDefault (const std::string &defaultValue)
 Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More...
 
template<>
std::string ns3::CommandLineHelper::GetDefault< bool > (const std::string &defaultValue)
 Helper to specialize CommandLine::UserItem::GetDefault() on types needing special handling. More...
 
template<>
std::string ns3::CommandLineHelper::GetDefault< Time > (const std::string &defaultValue)
 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 std::string &  defaultValue)

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

Parameters
[in]defaultValueThe default value from the UserItem.
Returns
The string representation of value.

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

◆ GetDefault< bool >()

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

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

Parameters
[in]defaultValueThe default value from the UserItem.
Returns
The string representation of value.

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

◆ GetDefault< Time >()

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

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

Parameters
[in]defaultValueThe default value from the UserItem.
Returns
The string representation of value.

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

◆ UserItemParse()

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

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

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

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