ESP-IDF
ot::Neighbor::AddressMatcher
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Methods
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Neighbor::AddressMatcher
ot::Neighbor::AddressMatcher class
Represents an Address Matcher used to find a neighbor (child/router) with a given MAC address also matching a given state filter.
Syntax
Show:
Summary
Declaration
from
neighbor.hpp:117
class
AddressMatcher
{
public
:
AddressMatcher
(
Mac
::
ShortAddress
aShortAddress
,
StateFilter
aStateFilter
)
:
AddressMatcher
(
aStateFilter
,
aShortAddress
,
nullptr
)
{
}
AddressMatcher
(
const
Mac
::
ExtAddress
&
aExtAddress
,
StateFilter
aStateFilter
)
:
AddressMatcher
(
aStateFilter
,
Mac
::
kShortAddrInvalid
,
&
aExtAddress
)
{
}
AddressMatcher
(
const
Mac
::
Address
&
aMacAddress
,
StateFilter
aStateFilter
)
:
AddressMatcher
(
aStateFilter
,
aMacAddress
.
IsShort
(
)
?
aMacAddress
.
GetShort
(
)
:
Mac
::
kShortAddrInvalid
,
aMacAddress
.
IsExtended
(
)
?
&
aMacAddress
.
GetExtended
(
)
:
nullptr
)
{
}
explicit
AddressMatcher
(
StateFilter
aStateFilter
)
:
AddressMatcher
(
aStateFilter
,
Mac
::
kShortAddrInvalid
,
nullptr
)
{
}
bool
Matches
(
const
Neighbor
&
aNeighbor
)
const
;
private
:
AddressMatcher
(
StateFilter
aStateFilter
,
Mac
::
ShortAddress
aShortAddress
,
const
Mac
::
ExtAddress
*
aExtAddress
)
:
mStateFilter
(
aStateFilter
)
,
mShortAddress
(
aShortAddress
)
,
mExtAddress
(
aExtAddress
)
{
}
StateFilter
mStateFilter
;
Mac
::
ShortAddress
mShortAddress
;
const
Mac
::
ExtAddress
*
mExtAddress
;
}
;
Fields
Field
Declared as
ot::Neighbor::AddressMatcher::mStateFilter
StateFilter
ot::Neighbor::AddressMatcher::mShortAddress
Mac
::
ShortAddress
ot::Neighbor::AddressMatcher::mExtAddress
const
Mac
::
ExtAddress
*
Methods
Matches() const
Indicates if a given neighbor matches the address and state filter of `AddressMatcher`.
Related Functions
Found 6 other functions taking a
AddressMatcher
argument:
Function
Description
ot::NeighborTable::FindNeighbor()
ot::NeighborTable::FindParent()
ot::Neighbor::Matches() const
Indicates whether neighbor matches a given `AddressMatcher`.
ot::ChildTable::FindChild() const
ot::NeighborTable::FindChildOrRouter()
ot::RouterTable::FindRouter() const
Examples
References
from
examples
Code
Location
Scope
Referrer
class
AddressMatcher
neighbor.hpp:117
Child
*
child
=
FindChild
(
Child
::
AddressMatcher
(
Child
::
kInStateInvalid
)
)
;
child_table.cpp:106
ot::ChildTable::GetNewChild()
const
Child
*
ChildTable
::
FindChild
(
const
Child
::
AddressMatcher
&
aMatcher
)
const
child_table.cpp:115
ot::ChildTable::FindChild() const
ot::ChildTable::FindChild() const::aMatcher
return
FindChild
(
Child
::
AddressMatcher
(
aRloc16
,
aFilter
)
)
;
child_table.cpp:135
ot::ChildTable::FindChild()
return
FindChild
(
Child
::
AddressMatcher
(
aExtAddress
,
aFilter
)
)
;
child_table.cpp:140
ot::ChildTable::FindChild()
return
FindChild
(
Child
::
AddressMatcher
(
aMacAddress
,
aFilter
)
)
;
child_table.cpp:145
ot::ChildTable::FindChild()
return
(
FindChild
(
Child
::
AddressMatcher
(
aFilter
)
)
!=
nullptr
)
;
child_table.cpp:150
ot::ChildTable::HasChildren() const
child
=
FindChild
(
Child
::
AddressMatcher
(
aRloc16
,
Child
::
kInStateValidOrRestoring
)
)
;
child_table.cpp:323
ot::ChildTable::HasMinimalChild() const
Child
*
FindChild
(
const
Child
::
AddressMatcher
&
aMatcher
)
{
return
AsNonConst
(
AsConst
(
this
)
->
FindChild
(
aMatcher
)
)
;
}
child_table.hpp:328
ot::ChildTable::FindChild()
const
Child
*
FindChild
(
const
Child
::
AddressMatcher
&
aMatcher
)
const
;
child_table.hpp:330
ot::ChildTable::FindChild() const
ot::ChildTable::FindChild() const::aMatcher
bool
Neighbor
::
AddressMatcher
::
Matches
(
const
Neighbor
&
aNeighbor
)
const
neighbor.cpp:63
ot::Neighbor::AddressMatcher::Matches() const
:
AddressMatcher
(
aStateFilter
,
aShortAddress
,
nullptr
)
neighbor.hpp:127
ot::Neighbor::AddressMatcher::AddressMatcher()
:
AddressMatcher
(
aStateFilter
,
Mac
::
kShortAddrInvalid
,
&
aExtAddress
)
neighbor.hpp:138
ot::Neighbor::AddressMatcher::AddressMatcher()
:
AddressMatcher
(
aStateFilter
,
neighbor.hpp:149
ot::Neighbor::AddressMatcher::AddressMatcher()
:
AddressMatcher
(
aStateFilter
,
Mac
::
kShortAddrInvalid
,
nullptr
)
neighbor.hpp:161
ot::Neighbor::AddressMatcher::AddressMatcher()
bool
Matches
(
const
AddressMatcher
&
aMatcher
)
const
{
return
aMatcher
.
Matches
(
*
this
)
;
}
neighbor.hpp:300
ot::Neighbor::Matches() const
ot::Neighbor::Matches() const::aMatcher
Neighbor
*
NeighborTable
::
FindParent
(
const
Neighbor
::
AddressMatcher
&
aMatcher
)
neighbor_table.cpp:46
ot::NeighborTable::FindParent()
ot::NeighborTable::FindParent()::aMatcher
return
FindParent
(
Neighbor
::
AddressMatcher
(
aShortAddress
,
aFilter
)
)
;
neighbor_table.cpp:65
ot::NeighborTable::FindParent()
return
FindParent
(
Neighbor
::
AddressMatcher
(
aExtAddress
,
aFilter
)
)
;
neighbor_table.cpp:70
ot::NeighborTable::FindParent()
return
FindParent
(
Neighbor
::
AddressMatcher
(
aMacAddress
,
aFilter
)
)
;
neighbor_table.cpp:75
ot::NeighborTable::FindParent()
Neighbor
*
NeighborTable
::
FindNeighbor
(
const
Neighbor
::
AddressMatcher
&
aMatcher
)
neighbor_table.cpp:78
ot::NeighborTable::FindNeighbor()
ot::NeighborTable::FindNeighbor()::aMatcher
neighbor
=
FindNeighbor
(
Neighbor
::
AddressMatcher
(
aShortAddress
,
aFilter
)
)
;
neighbor_table.cpp:102
ot::NeighborTable::FindNeighbor()
return
FindNeighbor
(
Neighbor
::
AddressMatcher
(
aExtAddress
,
aFilter
)
)
;
neighbor_table.cpp:110
ot::NeighborTable::FindNeighbor()
return
FindNeighbor
(
Neighbor
::
AddressMatcher
(
aMacAddress
,
aFilter
)
)
;
neighbor_table.cpp:115
ot::NeighborTable::FindNeighbor()
Neighbor
*
NeighborTable
::
FindChildOrRouter
(
const
Neighbor
::
AddressMatcher
&
aMatcher
)
neighbor_table.cpp:120
ot::NeighborTable::FindChildOrRouter()
ot::NeighborTable::FindChildOrRouter()::aMatcher
neighbor
=
FindNeighbor
(
Neighbor
::
AddressMatcher
(
macAddress
,
aFilter
)
)
;
neighbor_table.cpp:151
ot::NeighborTable::FindNeighbor()
Neighbor
*
FindParent
(
const
Neighbor
::
AddressMatcher
&
aMatcher
)
;
neighbor_table.hpp:224
ot::NeighborTable::FindParent()
ot::NeighborTable::FindParent()::aMatcher
Neighbor
*
FindNeighbor
(
const
Neighbor
::
AddressMatcher
&
aMatcher
)
;
neighbor_table.hpp:225
ot::NeighborTable::FindNeighbor()
ot::NeighborTable::FindNeighbor()::aMatcher
Neighbor
*
FindChildOrRouter
(
const
Neighbor
::
AddressMatcher
&
aMatcher
)
;
neighbor_table.hpp:227
ot::NeighborTable::FindChildOrRouter()
ot::NeighborTable::FindChildOrRouter()::aMatcher
const
Router
*
RouterTable
::
FindRouter
(
const
Router
::
AddressMatcher
&
aMatcher
)
const
router_table.cpp:254
ot::RouterTable::FindRouter() const
ot::RouterTable::FindRouter() const::aMatcher
router
=
FindRouter
(
Router
::
AddressMatcher
(
aRloc16
,
Router
::
kInStateValid
)
)
;
router_table.cpp:264
ot::RouterTable::FindNeighbor()
return
FindRouter
(
Router
::
AddressMatcher
(
aExtAddress
,
Router
::
kInStateValid
)
)
;
router_table.cpp:272
ot::RouterTable::FindNeighbor()
return
FindRouter
(
Router
::
AddressMatcher
(
aMacAddress
,
Router
::
kInStateValid
)
)
;
router_table.cpp:277
ot::RouterTable::FindNeighbor()
return
FindRouter
(
Router
::
AddressMatcher
(
aExtAddress
,
Router
::
kInStateAny
)
)
;
router_table.cpp:302
ot::RouterTable::FindRouter()
const
Router
*
FindRouter
(
const
Router
::
AddressMatcher
&
aMatcher
)
const
;
router_table.hpp:419
ot::RouterTable::FindRouter() const
ot::RouterTable::FindRouter() const::aMatcher
Router
*
FindRouter
(
const
Router
::
AddressMatcher
&
aMatcher
)
router_table.hpp:420
ot::RouterTable::FindRouter()
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
Instance
Scope
Location
Project
ot::Neighbor::Matches() const::aMatcher
ot::Neighbor::Matches() const
neighbor.hpp:300
ot::ChildTable::FindChild() const::aMatcher
ot::ChildTable::FindChild() const
child_table.hpp:330
ot::NeighborTable::FindParent()::aMatcher
ot::NeighborTable::FindParent()
neighbor_table.hpp:224
ot::NeighborTable::FindNeighbor()::aMatcher
ot::NeighborTable::FindNeighbor()
neighbor_table.hpp:225
ot::NeighborTable::FindChildOrRouter()::aMatcher
ot::NeighborTable::FindChildOrRouter()
neighbor_table.hpp:227
ot::RouterTable::FindRouter() const::aMatcher
ot::RouterTable::FindRouter() const
router_table.hpp:419
ot::ChildTable::FindChild() const::aMatcher
ot::ChildTable::FindChild() const
child_table.cpp:115
ot::NeighborTable::FindParent()::aMatcher
ot::NeighborTable::FindParent()
neighbor_table.cpp:46
ot::NeighborTable::FindNeighbor()::aMatcher
ot::NeighborTable::FindNeighbor()
neighbor_table.cpp:78
ot::NeighborTable::FindChildOrRouter()::aMatcher
ot::NeighborTable::FindChildOrRouter()
neighbor_table.cpp:120
ot::RouterTable::FindRouter() const::aMatcher
ot::RouterTable::FindRouter() const
router_table.cpp:254
Lifecycle
from
examples
All items filtered out
All items filtered out