Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
Node Class Reference

import <dart.idl;

Inheritance diagram for Node:
SkRefCnt SkRefCntBase Element MathMLElement

Public Member Functions

Node cloneNode ([Default=Undefined] optional boolean deep)
 
char id () const
 
int indexInSort () const
 
bool visited () const
 
void validate (skiatest::Reporter *reporter) const
 
int numDependents () const
 
Nodedependent (int index) const
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Static Public Member Functions

static bool CompareIndicesGT (Node *const &a, Node *const &b)
 

Public Attributes

readonly attribute Element nextElementSibling
 
readonly attribute Element previousElementSibling
 

Friends

class Graph
 

Detailed Description

Definition at line 29 of file dart.idl.

Member Function Documentation

◆ cloneNode()

Node Node::cloneNode ( [Default=Undefined] optional boolean  deep)

◆ CompareIndicesGT()

static bool Node::CompareIndicesGT ( Node *const &  a,
Node *const &  b 
)
inlinestatic

Definition at line 58 of file IncrTopoSortTest.cpp.

58 {
59 return a->indexInSort() > b->indexInSort();
60 }
static bool b
struct MyStruct a[10]

◆ dependent()

Node * Node::dependent ( int  index) const
inline

Definition at line 63 of file IncrTopoSortTest.cpp.

63 {
64 SkASSERT(0 <= index && index < fNodesThatDependOnMe.size());
65 return fNodesThatDependOnMe[index];
66 }
#define SkASSERT(cond)
Definition SkAssert.h:116
int size() const
Definition SkTDArray.h:138

◆ id()

char Node::id ( ) const
inline

Definition at line 25 of file IncrTopoSortTest.cpp.

25{ return fID; }

◆ indexInSort()

int Node::indexInSort ( ) const
inline

Definition at line 26 of file IncrTopoSortTest.cpp.

26{ SkASSERT(fIndexInSort >= 0); return fIndexInSort; }

◆ numDependents()

int Node::numDependents ( ) const
inline

Definition at line 62 of file IncrTopoSortTest.cpp.

62{ return fNodesThatDependOnMe.size(); }

◆ validate()

void Node::validate ( skiatest::Reporter reporter) const
inline

Definition at line 48 of file IncrTopoSortTest.cpp.

48 {
49 for (Node* dependedOn : fNodesIDependOn) {
50 REPORTER_ASSERT(reporter, dependedOn->indexInSort() < this->indexInSort());
51 }
52 for (Node* dependent : fNodesThatDependOnMe) {
54 }
55 REPORTER_ASSERT(reporter, !fVisited); // this flag should only be true w/in depEdges()
56 }
reporter
#define REPORTER_ASSERT(r, cond,...)
Definition Test.h:286
Definition dart.idl:29
Node * dependent(int index) const
int indexInSort() const

◆ visited()

bool Node::visited ( ) const
inline

Definition at line 27 of file IncrTopoSortTest.cpp.

27{ return fVisited; }

Friends And Related Symbol Documentation

◆ Graph

friend class Graph
friend

Definition at line 69 of file IncrTopoSortTest.cpp.

Member Data Documentation

◆ nextElementSibling

readonly attribute Element Node::nextElementSibling

Definition at line 31 of file dart.idl.

◆ previousElementSibling

readonly attribute Element Node::previousElementSibling

Definition at line 32 of file dart.idl.


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