hold a set of objects which match a specific search string. More...
#include <config.h>
 Collaboration diagram for ns3::Config::MatchContainer:Public Types | |
| typedef std::vector< Ptr < Object > >::const_iterator  | Iterator | 
Public Member Functions | |
| MatchContainer () | |
| MatchContainer (const std::vector< Ptr< Object > > &objects, const std::vector< std::string > &contexts, std::string path) | |
| MatchContainer::Iterator | Begin (void) const | 
| void | Connect (std::string name, const CallbackBase &cb) | 
| void | ConnectWithoutContext (std::string name, const CallbackBase &cb) | 
| void | Disconnect (std::string name, const CallbackBase &cb) | 
| void | DisconnectWithoutContext (std::string name, const CallbackBase &cb) | 
| MatchContainer::Iterator | End (void) const | 
| Ptr< Object > | Get (uint32_t i) const | 
| std::string | GetMatchedPath (uint32_t i) const | 
| uint32_t | GetN (void) const | 
| std::string | GetPath (void) const | 
| void | Set (std::string name, const AttributeValue &value) | 
Private Attributes | |
| std::vector< std::string > | m_contexts | 
| std::vector< Ptr< Object > > | m_objects | 
| std::string | m_path | 
hold a set of objects which match a specific search string.
This class also allows you to perform a set of configuration operations on the set of matching objects stored in the container. Specifically, it is possible to perform bulk Connects and Sets.
| typedef std::vector<Ptr<Object> >::const_iterator ns3::Config::MatchContainer::Iterator | 
| ns3::Config::MatchContainer::MatchContainer | ( | ) | 
Definition at line 37 of file config.cc.
References NS_LOG_FUNCTION.
| ns3::Config::MatchContainer::MatchContainer | ( | const std::vector< Ptr< Object > > & | objects, | 
| const std::vector< std::string > & | contexts, | ||
| std::string | path | ||
| ) | 
Definition at line 41 of file config.cc.
References NS_LOG_FUNCTION.
| MatchContainer::Iterator ns3::Config::MatchContainer::Begin | ( | void | ) | const | 
Definition at line 51 of file config.cc.
References m_objects, and NS_LOG_FUNCTION.
Referenced by ns3::RandomVariableStreamHelper::AssignStreams(), ConnectWithoutContext(), DisconnectWithoutContext(), and Set().
 Here is the caller graph for this function:| void ns3::Config::MatchContainer::Connect | ( | std::string | name, | 
| const CallbackBase & | cb | ||
| ) | 
| name | the name of the trace source to connect to | 
| cb | the sink to connect to the trace source | 
Connect the specified sink to all the objects stored in this container.
Definition at line 98 of file config.cc.
References m_contexts, m_objects, NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by ns3::ConfigImpl::Connect().
 Here is the caller graph for this function:| void ns3::Config::MatchContainer::ConnectWithoutContext | ( | std::string | name, | 
| const CallbackBase & | cb | ||
| ) | 
| name | the name of the trace source to connect to | 
| cb | the sink to connect to the trace source | 
Connect the specified sink to all the objects stored in this container.
Definition at line 110 of file config.cc.
References Begin(), End(), NS_LOG_FUNCTION, and ns3::ObjectBase::TraceConnectWithoutContext().
Referenced by ns3::ConfigImpl::ConnectWithoutContext().
 Here is the call graph for this function:
 Here is the caller graph for this function:| void ns3::Config::MatchContainer::Disconnect | ( | std::string | name, | 
| const CallbackBase & | cb | ||
| ) | 
| name | the name of the trace source to disconnect from | 
| cb | the sink to disconnect from the trace source | 
Disconnect the specified sink from all the objects stored in this container.
Definition at line 121 of file config.cc.
References m_contexts, m_objects, NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by ns3::ConfigImpl::Disconnect().
 Here is the caller graph for this function:| void ns3::Config::MatchContainer::DisconnectWithoutContext | ( | std::string | name, | 
| const CallbackBase & | cb | ||
| ) | 
| name | the name of the trace source to disconnect from | 
| cb | the sink to disconnect from the trace source | 
Disconnect the specified sink from all the objects stored in this container.
Definition at line 133 of file config.cc.
References Begin(), End(), NS_LOG_FUNCTION, and ns3::ObjectBase::TraceDisconnectWithoutContext().
Referenced by ns3::ConfigImpl::DisconnectWithoutContext().
 Here is the call graph for this function:
 Here is the caller graph for this function:| MatchContainer::Iterator ns3::Config::MatchContainer::End | ( | void | ) | const | 
Definition at line 57 of file config.cc.
References m_objects, and NS_LOG_FUNCTION.
Referenced by ns3::RandomVariableStreamHelper::AssignStreams(), ConnectWithoutContext(), DisconnectWithoutContext(), and Set().
 Here is the caller graph for this function:| i | index of item to lookup ([0,n[) | 
Definition at line 69 of file config.cc.
References m_objects, and NS_LOG_FUNCTION.
Referenced by ns3::RandomVariableStreamHelper::AssignStreams(), ns3::LteStatsCalculator::FindCellIdFromEnbRlcPath(), ns3::LteStatsCalculator::FindImsiFromEnbRlcPath(), ns3::LteStatsCalculator::FindImsiFromLteNetDevice(), ns3::LteStatsCalculator::FindImsiFromUePhy(), and ns3::RadioEnvironmentMapHelper::Install().
 Here is the caller graph for this function:| std::string ns3::Config::MatchContainer::GetMatchedPath | ( | uint32_t | i | ) | const | 
| i | index of item to lookup ([0,n[) | 
The matching patch uniquely identifies the requested object.
Definition at line 75 of file config.cc.
References m_contexts, and NS_LOG_FUNCTION.
Referenced by ns3::GnuplotHelper::PlotProbe(), and ns3::FileHelper::WriteProbe().
 Here is the caller graph for this function:| uint32_t ns3::Config::MatchContainer::GetN | ( | void | ) | const | 
Definition at line 63 of file config.cc.
References m_objects, and NS_LOG_FUNCTION.
Referenced by ns3::LteStatsCalculator::FindCellIdFromEnbRlcPath(), ns3::LteStatsCalculator::FindImsiFromEnbRlcPath(), ns3::LteStatsCalculator::FindImsiFromLteNetDevice(), ns3::LteStatsCalculator::FindImsiFromUePhy(), ns3::RadioEnvironmentMapHelper::Install(), ns3::GnuplotHelper::PlotProbe(), and ns3::FileHelper::WriteProbe().
 Here is the caller graph for this function:| std::string ns3::Config::MatchContainer::GetPath | ( | void | ) | const | 
Definition at line 81 of file config.cc.
References m_path, and NS_LOG_FUNCTION.
| void ns3::Config::MatchContainer::Set | ( | std::string | name, | 
| const AttributeValue & | value | ||
| ) | 
| name | name of attribute to set | 
| value | value to set to the attribute | 
Set the specified attribute value to all the objects stored in this container.
Definition at line 88 of file config.cc.
References Begin(), End(), NS_LOG_FUNCTION, and ns3::ObjectBase::SetAttribute().
Referenced by ns3::ConfigImpl::Set().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 214 of file config.h.
Referenced by Connect(), Disconnect(), and GetMatchedPath().
      
  | 
  private |