wavelength 1.0.0
Loading...
Searching...
No Matches
scheduler.h File Reference
#include <memory>
#include <set>
#include "os/binstream.h"
#include "os/command.h"
#include "os/commandid.h"
#include "os/ptr.h"
#include "os/schedulerclock.h"
#include "os/string.h"
Include dependency graph for scheduler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Scheduler
 Queue of commands that run when the song clock reaches their tick. More...
class  Scheduler::CommandInfo
 One queued run of a command. More...
class  Scheduler::CancelPred
 Test that selects the runs Cancel() withdraws. More...
class  Scheduler::ByCommand
 Test that selects the runs of one command. More...
class  Scheduler::Recorder
 Writer of the recordable runs to a file of a memory card, in parts. More...
class  Scheduler::Playbacker
 Reader of a recording that queues its runs on a scheduler. More...

Functions

BinStream & operator<< (BinStream &stream, Command *pCommand)
 Write a command to a recording: 1, its serial identifier, and what Command::Save() writes, or 0 for no command.
BinStream & operator>> (BinStream &stream, Command *&pCommand)
 Read a command operator<<() wrote, building it through Factory<Command>.

Variables

Scheduler TheSongScheduler
 The scheduler of the song clock.
Scheduler TheMetaScheduler
 The scheduler of the front end clock, which times the menu music.

Function Documentation

◆ operator<<()

BinStream & operator<< ( BinStream & stream,
Command * pCommand )

Write a command to a recording: 1, its serial identifier, and what Command::Save() writes, or 0 for no command.

Parameters
streamThe stream.
pCommandThe command, or null.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x00282d48
Ghidra address:
PAL: 0x0028c620

◆ operator>>()

BinStream & operator>> ( BinStream & stream,
Command *& pCommand )

Read a command operator<<() wrote, building it through Factory<Command>.

A first byte other than 0 or 1 reports a warning and leaves pCommand unchanged.

Parameters
streamThe stream.
pCommandReceives the command, or null.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x00282e20
Ghidra address:
PAL: 0x0028c6e0

Variable Documentation

◆ TheSongScheduler

Scheduler TheSongScheduler
extern

The scheduler of the song clock.

Ghidra address:
NTSC-U/C: 0x00436218

◆ TheMetaScheduler

Scheduler TheMetaScheduler
extern

The scheduler of the front end clock, which times the menu music.

The name is inferred.

Ghidra address:
NTSC-U/C: 0x00436910