|
@@ -238,15 +238,27 @@ struct Module { |
|
|
int64_t getId() { |
|
|
int64_t getId() { |
|
|
return id; |
|
|
return id; |
|
|
} |
|
|
} |
|
|
|
|
|
int getNumParams() { |
|
|
|
|
|
return params.size(); |
|
|
|
|
|
} |
|
|
Param& getParam(int index) { |
|
|
Param& getParam(int index) { |
|
|
return params[index]; |
|
|
return params[index]; |
|
|
} |
|
|
} |
|
|
|
|
|
int getNumInputs() { |
|
|
|
|
|
return inputs.size(); |
|
|
|
|
|
} |
|
|
Input& getInput(int index) { |
|
|
Input& getInput(int index) { |
|
|
return inputs[index]; |
|
|
return inputs[index]; |
|
|
} |
|
|
} |
|
|
|
|
|
int getNumOutputs() { |
|
|
|
|
|
return outputs.size(); |
|
|
|
|
|
} |
|
|
Output& getOutput(int index) { |
|
|
Output& getOutput(int index) { |
|
|
return outputs[index]; |
|
|
return outputs[index]; |
|
|
} |
|
|
} |
|
|
|
|
|
int getNumLights() { |
|
|
|
|
|
return lights.size(); |
|
|
|
|
|
} |
|
|
Light& getLight(int index) { |
|
|
Light& getLight(int index) { |
|
|
return lights[index]; |
|
|
return lights[index]; |
|
|
} |
|
|
} |
|
|