This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <cassert> | |
#include <functional> | |
template <typename T> | |
class Injection final | |
{ | |
static T* s_ptr; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainCommand; | |
class MainSucceededCommand; | |
class MainFailedCommand; | |
class MyControllerWithStartMethod | |
{ | |
public: | |
void start() | |
{ | |
CommandBuilder<MainCommand> builder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ListView { | |
id: list | |
model: 10 | |
anchors.fill: parent | |
delegate: Rectangle { | |
implicitHeight: 50 | |
implicitWidth: list.width |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
a = 77 | |
b = 88 | |
print "a = ", a | |
print "b = ", b | |
array = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
a = 77 | |
b = 88 | |
print "a = ", a | |
print "b = ", b | |
array = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def moagents = (swarm as PreSchedulingSwarm).swarmContext.preschedulingStorage.movingObjectAgents; | |
moagents.each { | |
swarm.parallelExecutionService.submit(normalizeClosure(it)); | |
} | |
while (normalizeCounter.get() < moagents.size()) {} | |
changed |= normalizeOccured.get() | |
moagents.each { | |
swarm.parallelExecutionService.submit(closeUpClosure(it, true)); |