#include <ToolUtils.h>
Definition at line 171 of file ToolUtils.h.
◆ TopoTestNode()
ToolUtils::TopoTestNode::TopoTestNode |
( |
int |
id | ) |
|
|
inline |
◆ AllocNodes()
Definition at line 229 of file ToolUtils.h.
229 {
231
232 for (
int i = 0;
i < num; ++
i) {
234 }
235 }
void reserve_exact(int n)
◆ check()
bool ToolUtils::TopoTestNode::check |
( |
| ) |
|
|
inline |
Definition at line 191 of file ToolUtils.h.
191 {
192 if (!fWasOutput) {
193 return false;
194 }
195
196 for (
int i = 0;
i < fDependencies.size(); ++
i) {
197 if (!fDependencies[
i]->fWasOutput) {
198 return false;
199 }
200
201 if (fOutputPos < fDependencies[
i]->
outputPos()) {
202 return false;
203 }
204 }
205
206 return true;
207 }
◆ Dependency()
Definition at line 221 of file ToolUtils.h.
221 {
222 return node->fDependencies[index];
223 }
◆ dependsOn()
void ToolUtils::TopoTestNode::dependsOn |
( |
TopoTestNode * |
src | ) |
|
|
inline |
◆ GetID()
static uint32_t ToolUtils::TopoTestNode::GetID |
( |
TopoTestNode * |
node | ) |
|
|
inlinestatic |
◆ GetIndex()
static uint32_t ToolUtils::TopoTestNode::GetIndex |
( |
TopoTestNode * |
node | ) |
|
|
inlinestatic |
Definition at line 219 of file ToolUtils.h.
219{ return node->outputPos(); }
◆ GetTarget()
static uint32_t ToolUtils::TopoTestNode::GetTarget |
( |
TopoTestNode * |
node, |
|
|
int |
i |
|
) |
| |
|
inlinestatic |
Definition at line 225 of file ToolUtils.h.
225{
return node->fTargets[
i]; }
◆ id()
int ToolUtils::TopoTestNode::id |
( |
| ) |
const |
|
inline |
◆ IsTempMarked()
static bool ToolUtils::TopoTestNode::IsTempMarked |
( |
TopoTestNode * |
node | ) |
|
|
inlinestatic |
Definition at line 212 of file ToolUtils.h.
212{ return node->fTempMark; }
◆ NumDependencies()
Definition at line 220 of file ToolUtils.h.
220{ return node->fDependencies.size(); }
◆ NumTargets()
Definition at line 224 of file ToolUtils.h.
224{ return node->fTargets.size(); }
◆ Output()
static void ToolUtils::TopoTestNode::Output |
( |
TopoTestNode * |
node, |
|
|
uint32_t |
outputPos |
|
) |
| |
|
inlinestatic |
Definition at line 213 of file ToolUtils.h.
213 {
216 node->fWasOutput = true;
217 }
◆ outputPos()
uint32_t ToolUtils::TopoTestNode::outputPos |
( |
| ) |
const |
|
inline |
Definition at line 185 of file ToolUtils.h.
185 {
187 return fOutputPos;
188 }
◆ reset()
void ToolUtils::TopoTestNode::reset |
( |
| ) |
|
|
inline |
Definition at line 179 of file ToolUtils.h.
179 {
180 fOutputPos = 0;
181 fTempMark = false;
182 fWasOutput = false;
183 }
◆ ResetTempMark()
static void ToolUtils::TopoTestNode::ResetTempMark |
( |
TopoTestNode * |
node | ) |
|
|
inlinestatic |
Definition at line 211 of file ToolUtils.h.
211{ node->fTempMark = false; }
◆ SetTempMark()
static void ToolUtils::TopoTestNode::SetTempMark |
( |
TopoTestNode * |
node | ) |
|
|
inlinestatic |
Definition at line 210 of file ToolUtils.h.
210{ node->fTempMark = true; }
◆ Shuffle()
Definition at line 247 of file ToolUtils.h.
247 {
248 for (
size_t i = graph.
size() - 1;
i > 0; --
i) {
250
251 graph[
i].swap(graph[
swap]);
252 }
253 }
void swap(sk_sp< T > &a, sk_sp< T > &b)
constexpr size_t size() const
◆ SK_DECLARE_INTERNAL_LLIST_INTERFACE()
ToolUtils::TopoTestNode::SK_DECLARE_INTERNAL_LLIST_INTERFACE |
( |
TopoTestNode |
| ) |
|
◆ targets()
void ToolUtils::TopoTestNode::targets |
( |
uint32_t |
target | ) |
|
|
inline |
◆ WasOutput()
static bool ToolUtils::TopoTestNode::WasOutput |
( |
TopoTestNode * |
node | ) |
|
|
inlinestatic |
Definition at line 218 of file ToolUtils.h.
218{ return node->fWasOutput; }
The documentation for this class was generated from the following file: