![]() |
0.01.00
|
This class implements a locator for an OpenThread Instance object. More...
#include <src/core/common/locator.hpp>
Public Member Functions | |
| Instance & | GetInstance (void) const |
| This method returns a reference to the parent OpenThread Instance. More... | |
| Ip6::Ip6 & | GetIp6 (void) const |
| This method returns a reference to the Ip6. More... | |
| ThreadNetif & | GetNetif (void) const |
| This method returns a reference to the thread network interface. More... | |
| Notifier & | GetNotifier (void) const |
| This method returns a reference to the Notifier. More... | |
Protected Member Functions | |
| InstanceLocator (Instance &aInstance) | |
| This constructor initializes the object. More... | |
This class implements a locator for an OpenThread Instance object.
The InstanceLocator is used as base class of almost all other OpenThread classes. It provides a way for an object to get to its owning/parent OpenThread Instance and other objects within the OpenTread hierarchy (e.g. the ThreadNetif or Ip6::Ip6 objects).
If multiple-instance feature is supported, the owning/parent OpenThread Instance is tracked as a reference. In the single-instance case, this class becomes an empty base class.
|
inlineprotected |
This constructor initializes the object.
| [in] | aInstance | A pointer to the otInstance. |
| Instance & ot::InstanceLocator::GetInstance | ( | void | ) | const |
This method returns a reference to the parent OpenThread Instance.
| Ip6::Ip6& ot::InstanceLocator::GetIp6 | ( | void | ) | const |
| ThreadNetif& ot::InstanceLocator::GetNetif | ( | void | ) | const |
This method returns a reference to the thread network interface.
| Notifier& ot::InstanceLocator::GetNotifier | ( | void | ) | const |