?? context.h
字號:
#pragma once
class CContext
{
private:
// Symbol table pointer
CSymbolTable *m_SymbolTable;
// Function table pointer
CFunctionTable *m_FunctionTable;
// Data stack
queue<float> *m_DataQueue;
// Return stack
stack<int> *m_ReturnStack;
// List of variables currently in a FOR loop
stack<forloop_t *> *m_ForList;
// Code list for the current runtime
CCode *m_Code;
// Are we running?
bool m_Running;
// Are we branching?
bool m_Branching;
public:
CContext(void);
~CContext(void);
// Set the symbol table for this current run
void SetSymbolTable(CSymbolTable * SymbolTable);
// Get the current symbol table
CSymbolTable * GetSymbolTable(void);
// Set the function table for this current run
void SetFunctionTable(CFunctionTable * FunctionTable);
// Get the function table
CFunctionTable * GetFunctionTable(void);
// Set the data queue for this current run
void SetDataQueue(queue<float> * DataQueue);
// Get the current data queue
queue<float> * GetDataQueue(void);
// Set the return stack for this run
void SetReturnStack(stack<int> * ReturnStack);
// Get the current return stack
stack<int> * GetReturnStack(void);
// Set the list of variables in FOR loops
void SetForList(stack<forloop_t *> * ForList);
// Get the current for list
stack<forloop_t *> * GetForList(void);
// Set the code list
void SetCode(CCode *Code);
// Get the code list
CCode *GetCode();
// Set the running state
void SetRunning(bool Value);
// Get the running state
bool GetRunning();
// Are we branching?
void SetBranching(bool Value);
// Are we branching?
bool GetBranching(void);
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -