top
|
up
|
prev
|
next
BuildIndexVisitor Class
Definition at line
114
of
Document.cpp
Constructors
BuildIndexVisitor
(std::unordered_map<std::u32string,
Element
*>& elementsByIdMap_)
Member Functions
void
BeginVisit
(
Element
* element)
override
Member Variables
std::unordered_map<std::u32string,
Element
*>&
elementsByIdMap
Constructor Details
BuildIndexVisitor Constructor
sngxml::dom::BuildIndexVisitor::BuildIndexVisitor(std::unordered_map<std::u32string,
Element
*>& elementsByIdMap_)
Definition at line
123
of
Document.cpp
:
123
:
elementsByIdMap
(
elementsByIdMap_
)
124
{
125
}
Declaration at line
117
of
Document.cpp
Member Function Details
BeginVisit Member Function
void
sngxml::dom::BuildIndexVisitor::BeginVisit(
Element
* element)
override
Definition at line
127
of
Document.cpp
:
128
{
129
const
std
::
u32string
&
id
=
element
->
GetAttribute
(
U"id"
)
;
130
if
(
!
id
.
empty
(
)
)
131
{
132
elementsByIdMap
[
id
]
=
element
;
133
}
134
}
Declaration at line
118
of
Document.cpp
Base class overridden functions:
sngxml::dom::Visitor::BeginVisit
Calls:
sngxml::dom::Element::GetAttribute
top
|
up
|
prev
|
next