Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkDOM::AttrIter Class Reference

#include <SkDOM.h>

Public Member Functions

 AttrIter (const SkDOM &, const Node *)
 
const char * next (const char **value)
 

Detailed Description

Definition at line 78 of file SkDOM.h.

Constructor & Destructor Documentation

◆ AttrIter()

SkDOM::AttrIter::AttrIter ( const SkDOM ,
const Node node 
)

Definition at line 159 of file SkDOM.cpp.

159 {
160 SkASSERT(node);
161 fAttr = node->attrs();
162 fStop = fAttr + node->fAttrCount;
163}
#define SkASSERT(cond)
Definition: SkAssert.h:116

Member Function Documentation

◆ next()

const char * SkDOM::AttrIter::next ( const char **  value)

Definition at line 165 of file SkDOM.cpp.

165 {
166 const char* name = nullptr;
167
168 if (fAttr < fStop) {
169 name = fAttr->fName;
170 if (value)
171 *value = fAttr->fValue;
172 fAttr += 1;
173 }
174 return name;
175}
uint8_t value
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32
const char * fValue
Definition: SkDOM.cpp:47
const char * fName
Definition: SkDOM.cpp:46

The documentation for this class was generated from the following files: