Helper to test if an array entry matches a config path specification. More...
Collaboration diagram for ns3::Config::ArrayMatcher:Public Member Functions | |
| ArrayMatcher (std::string element) | |
| Construct from a Config path specification. | |
| bool | Matches (std::size_t i) const |
| Test if a specific index matches the Config Path. | |
Private Member Functions | |
| bool | StringToUint32 (std::string str, uint32_t *value) const |
Convert a string to an uint32_t. | |
Private Attributes | |
| std::string | m_element |
| The Config path element. | |
Helper to test if an array entry matches a config path specification.
| ns3::Config::ArrayMatcher::ArrayMatcher | ( | std::string | element | ) |
Construct from a Config path specification.
| [in] | element | The Config path specification. |
Definition at line 225 of file config.cc.
References ns3::Create(), and NS_LOG_FUNCTION.
Here is the call graph for this function:| bool ns3::Config::ArrayMatcher::Matches | ( | std::size_t | i | ) | const |
Test if a specific index matches the Config Path.
| [in] | i | The index. |
true if the index matches the Config Path. Definition at line 232 of file config.cc.
References ns3::Create(), m_element, NS_LOG_DEBUG, NS_LOG_FUNCTION, StringToUint32(), and ns3::value().
Here is the call graph for this function:
|
private |
Convert a string to an uint32_t.
| [in] | str | The string. |
| [in] | value | The location to store the uint32_t. |
true if the string could be converted. Definition at line 294 of file config.cc.
References ns3::Create(), NS_LOG_FUNCTION, and ns3::value().
Referenced by Matches().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |