BenchGen
BenchGen is a tool for generating benchmarks to stress-test a computing system.
|
#include <generatorVariable.h>
Public Member Functions | |
GeneratorSortedList () | |
GeneratorSortedList (int id) | |
~GeneratorSortedList () | |
std::vector< std::string > | new_ (bool inFunction=false) override |
Creates a new variable. | |
std::vector< std::string > | insert () override |
Generates code to perform an insertion operation on the variable. | |
std::vector< std::string > | remove () override |
Generates code to perform a removal operation on the variable. | |
std::vector< std::string > | contains (bool shouldReturn=false) override |
Generates code to perform a contains operation on the variable. | |
std::vector< std::string > | free () override |
Generates code to free or release resources associated with the variable. | |
std::vector< std::string > | genIncludes () override |
Generates necessary include statements for the variable. | |
std::vector< std::string > | genGlobalVars () override |
Generates global variable declarations for the variable type. | |
std::vector< std::string > | genParams (std::string paramName, std::vector< GeneratorVariable * > varsParams) override |
Generates parameter handling code for functions using this variable type. | |
![]() | |
virtual | ~GeneratorVariable () |
Additional Inherited Members | |
![]() | |
int | id |
std::string | name |
std::string | typeString |
|
inline |
GeneratorSortedList::GeneratorSortedList | ( | int | id | ) |
GeneratorSortedList::~GeneratorSortedList | ( | ) |
|
overridevirtual |
Generates code to perform a contains operation on the variable.
The behavior of this method varies depending on the type of the variable.
shouldReturn | Indicates whether the method should generate code that returns a value based on the condition. |
Implements GeneratorVariable.
|
overridevirtual |
Generates code to free or release resources associated with the variable.
This method generates code to clean up or release resources held by the variable, if necessary. The specific actions taken depend on the type of the variable and how resources are managed.
Implements GeneratorVariable.
|
overridevirtual |
Generates global variable declarations for the variable type.
This method returns a vector of strings representing the typedefs and struct definitions necessary for the specific variable type.
Implements GeneratorVariable.
|
overridevirtual |
Generates necessary include statements for the variable.
This method returns a vector of strings containing the required include directives for working with the variable type.
Implements GeneratorVariable.
|
overridevirtual |
Generates parameter handling code for functions using this variable type.
This method generates code to handle parameters when functions utilize this variable type. It includes initialization and assignment for the parameters.
paramName | The name of the parameter. |
varsParams | List of variables to be used as parameters. |
Implements GeneratorVariable.
|
overridevirtual |
Generates code to perform an insertion operation on the variable.
The exact behavior of this method depends on the type of the variable.
Implements GeneratorVariable.
|
overridevirtual |
Creates a new variable.
This method generates code to initialize a new variable. The exact implementation depends on the specific type of the variable.
inFunction | Indicates whether the variable is created within a function context. |
Implements GeneratorVariable.
|
overridevirtual |
Generates code to perform a removal operation on the variable.
The behavior of this method varies depending on the type of the variable.
Implements GeneratorVariable.