Gather aggregation and configuration path information from registered types. More...
Public Member Functions | |
void | Gather (TypeId tid) |
Gather aggregation and configuration path information for tid. More... | |
std::vector< std::string > | Get (TypeId tid) const |
std::vector< std::string > | GetNoTypeIds (void) const |
void | Print (void) const |
Print output in "a -> b" form on std::cout. More... | |
void | RecordAggregationInfo (std::string a, std::string b) |
Record the a -> b aggregation relation. More... | |
Private Member Functions | |
void | DoGather (TypeId tid) |
Gather attribute, configuration path information for tid. More... | |
std::string | GetCurrentPath (void) const |
bool | HasAlreadyBeenProcessed (TypeId tid) const |
void | RecordOutput (TypeId tid) |
Record the current config path for tid. More... | |
Private Attributes | |
std::vector< std::pair< TypeId, TypeId > > | m_aggregates |
List of aggregation relationships. More... | |
std::vector< TypeId > | m_alreadyProcessed |
List of TypeIds we've already processed. More... | |
std::vector< std::string > | m_currentPath |
Current configuration path. More... | |
std::vector< std::string > | m_noTids |
List of type names without TypeIds, because those modules aren't enabled. More... | |
std::vector< std::pair< TypeId, std::string > > | m_output |
Configuration path for each TypeId. More... | |
Gather aggregation and configuration path information from registered types.
Definition at line 970 of file print-introspected-doxygen.cc.
|
private |
Gather attribute, configuration path information for tid.
tid | [in] the TypeId to gather information from |
Definition at line 1183 of file print-introspected-doxygen.cc.
References ns3::TypeId::AttributeInformation::checker, ns3::TypeId::GetAttribute(), ns3::TypeId::GetAttributeN(), ns3::ObjectPtrContainerChecker::GetItemTypeId(), ns3::TypeId::GetName(), ns3::PointerChecker::GetPointeeTypeId(), ns3::TypeId::GetRegistered(), ns3::TypeId::GetRegisteredN(), ns3::TypeId::IsChildOf(), ns3::TypeId::AttributeInformation::name, NS_LOG_FUNCTION, and ns3::PeekPointer().
void StaticInformation::Gather | ( | TypeId | tid | ) |
Gather aggregation and configuration path information for tid.
tid | [in] the TypeId to gather information from |
Definition at line 1174 of file print-introspected-doxygen.cc.
References NS_LOG_FUNCTION, and Uniquefy().
Referenced by GetTypicalAggregations().
std::vector< std::string > StaticInformation::Get | ( | TypeId | tid | ) | const |
tid | [in] the TypeId to return information for |
Definition at line 1126 of file print-introspected-doxygen.cc.
References NS_LOG_FUNCTION.
Referenced by PrintConfigPaths().
|
private |
Definition at line 1089 of file print-introspected-doxygen.cc.
References NS_LOG_FUNCTION.
std::vector< std::string > StaticInformation::GetNoTypeIds | ( | void | ) | const |
Definition at line 1165 of file print-introspected-doxygen.cc.
References NS_LOG_FUNCTION, and Uniquefy().
Referenced by GetNameMap().
|
private |
tid | [in] the TypeId to check. |
Definition at line 1111 of file print-introspected-doxygen.cc.
References NS_LOG_FUNCTION.
void StaticInformation::Print | ( | void | ) | const |
Print output in "a -> b" form on std::cout.
Definition at line 1077 of file print-introspected-doxygen.cc.
References NS_LOG_FUNCTION.
void StaticInformation::RecordAggregationInfo | ( | std::string | a, |
std::string | b | ||
) |
Record the a -> b aggregation relation.
a | [in] the source(?) TypeId name |
b | [in] the destination(?) TypeId name |
Definition at line 1054 of file print-introspected-doxygen.cc.
References ns3::TypeId::LookupByNameFailSafe(), and NS_LOG_FUNCTION.
Referenced by GetTypicalAggregations().
|
private |
Record the current config path for tid.
tid | [in] the TypeId to record. |
Definition at line 1103 of file print-introspected-doxygen.cc.
References NS_LOG_FUNCTION.
List of aggregation relationships.
Definition at line 1041 of file print-introspected-doxygen.cc.
|
private |
List of TypeIds we've already processed.
Definition at line 1037 of file print-introspected-doxygen.cc.
|
private |
Current configuration path.
Definition at line 1033 of file print-introspected-doxygen.cc.
|
mutableprivate |
List of type names without TypeIds, because those modules aren't enabled.
This is mutable because GetNoTypeIds sorts and uniquifies this list before returning it.
Definition at line 1048 of file print-introspected-doxygen.cc.
|
private |
Configuration path for each TypeId.
Definition at line 1029 of file print-introspected-doxygen.cc.