ESP-IDF
ot::BorderRouter::RoutingManager::RxRaTracker::Iterator
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Methods
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::BorderRouter::RoutingManager::RxRaTracker::Iterator
ot::BorderRouter::RoutingManager::RxRaTracker::Iterator class
Syntax
Show:
Summary
Declaration
from
routing_manager.hpp:949
class
Iterator
:
public
PrefixTableIterator
{
public
:
enum
Type
:
uint8_t
{
kUnspecified
,
kRouterIterator
,
kPrefixIterator
,
kPeerBrIterator
,
}
;
enum
EntryType
:
uint8_t
{
kOnLinkPrefix
,
kRoutePrefix
,
}
;
void
Init
(
const
Entry
<
Router
>
*
aRoutersHead
,
uint32_t
aUptime
)
;
Error
AdvanceToNextRouter
(
Type
aType
)
;
Error
AdvanceToNextEntry
(
void
)
;
uint32_t
GetInitUptime
(
void
)
const
{
return
mData0
;
}
TimeMilli
GetInitTime
(
void
)
const
{
return
TimeMilli
(
mData1
)
;
}
Type
GetType
(
void
)
const
{
return
static_cast
<
Type
>
(
mData2
)
;
}
const
Entry
<
Router
>
*
GetRouter
(
void
)
const
{
return
static_cast
<
const
Entry
<
Router
>
*
>
(
mPtr1
)
;
}
EntryType
GetEntryType
(
void
)
const
{
return
static_cast
<
EntryType
>
(
mData3
)
;
}
template
<
class
PrefixType
>
const
Entry
<
PrefixType
>
*
GetEntry
(
void
)
const
{
return
static_cast
<
const
Entry
<
PrefixType
>
*
>
(
mPtr2
)
;
}
#if
OPENTHREAD_CONFIG_BORDER_ROUTING_TRACK_PEER_BR_INFO_ENABLE
using
PeerBr
=
NetDataPeerBrTracker
::
PeerBr
;
Error
AdvanceToNextPeerBr
(
const
PeerBr
*
aPeerBrsHead
)
;
const
PeerBr
*
GetPeerBrEntry
(
void
)
const
{
return
static_cast
<
const
PeerBr
*
>
(
mPtr2
)
;
}
#endif
private
:
void
SetRouter
(
const
Entry
<
Router
>
*
aRouter
)
{
mPtr1
=
aRouter
;
}
void
SetInitUptime
(
uint32_t
aUptime
)
{
mData0
=
aUptime
;
}
void
SetInitTime
(
void
)
{
mData1
=
TimerMilli
::
GetNow
(
)
.
GetValue
(
)
;
}
void
SetEntry
(
const
void
*
aEntry
)
{
mPtr2
=
aEntry
;
}
bool
HasEntry
(
void
)
const
{
return
mPtr2
!=
nullptr
;
}
void
SetEntryType
(
EntryType
aType
)
{
mData3
=
aType
;
}
void
SetType
(
Type
aType
)
{
mData2
=
aType
;
}
}
;
Methods
Init()
AdvanceToNextRouter()
AdvanceToNextEntry()
GetInitUptime() const
GetInitTime() const
GetType() const
GetRouter() const
GetEntryType() const
GetEntry() const
AdvanceToNextPeerBr()
GetPeerBrEntry() const
SetRouter()
SetInitUptime()
SetInitTime()
SetEntry()
HasEntry() const
SetEntryType()
SetType()
Examples
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out