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
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