#include <GTXabsl2Profiler.h>
Collaboration diagram for GTXabsl2ProfilerNameTable:
Public Member Functions | |
GTXabsl2ProfilerNameTable () | |
Constructor Initializes all members with 0. | |
~GTXabsl2ProfilerNameTable () | |
Destructor Deletes the data. | |
void | init (int length_) |
Initializes the Array to a given length. | |
void | clear () |
Clears the array. | |
int | getOptionPosition (const std::string optionName) const |
Returns the Position for a given optionname Note that the function crashes if the element does not exist. | |
int | getStatePosition (const std::string optionName, const std::string state) |
Returns the Position for a given state within the option Note that the function crashes if the element does not exist. | |
void | append (const std::string optionName, const std::vector< std::string > states, const std::vector< std::string > params, int depth) |
The function appends a new GTXabsl2ProfilerNameTableEntry to the array. | |
void | setElement (int pos, GTXabsl2ProfilerNameTableEntry value) |
The function sets the value of an element in the array. | |
int | getSize () const |
The function returns the number of elements in the array. | |
GTXabsl2ProfilerNameTableEntry & | operator[] (int pos) const |
Returns the value for a given array position. | |
bool | exists (const std::string optionName, const std::string stateName) const |
Returns whether an element for the given name exists. | |
bool | existsOption (const std::string option) |
Returns whether an element for the given name exists. | |
Protected Member Functions | |
int | find (const std::string optionName, const std::string state) const |
Finds the index of an element with the given names. | |
int | findState (const std::string optionName, const std::string state) const |
Finds the index of an element with the given names. | |
int | findOption (const std::string optionName) const |
Finds the index of an element with the given names. | |
Private Attributes | |
GTXabsl2ProfilerNameTableEntry * | data |
The array. | |
int | usedSize |
The number of elements in the array. | |
int | length |
The number of elements in the array. |
|
Constructor Initializes all members with 0.
Definition at line 87 of file GTXabsl2Profiler.h. References usedSize. |
|
Destructor Deletes the data.
Definition at line 93 of file GTXabsl2Profiler.h. |
|
Initializes the Array to a given length.
Definition at line 102 of file GTXabsl2Profiler.h. References usedSize. Referenced by GTXabsl2Profiler::init(). |
|
Clears the array.
Definition at line 112 of file GTXabsl2Profiler.h. References usedSize. Referenced by GTXabsl2Profiler::importLogFile(). |
|
Returns the Position for a given optionname Note that the function crashes if the element does not exist.
Definition at line 126 of file GTXabsl2Profiler.h. References findOption(). Referenced by GTXabsl2Profiler::doDepthCount(), GTXabsl2Profiler::doProfiling(), and GTXabsl2Profiler::getDepth(). |
Here is the call graph for this function:
|
Returns the Position for a given state within the option Note that the function crashes if the element does not exist.
Definition at line 138 of file GTXabsl2Profiler.h. References findState(). Referenced by GTXabsl2Profiler::doProfiling(). |
Here is the call graph for this function:
|
The function appends a new GTXabsl2ProfilerNameTableEntry to the array.
Definition at line 149 of file GTXabsl2Profiler.h. References getSize(), and usedSize. Referenced by GTXabsl2Profiler::importLogFile(), and GTXabsl2Profiler::registerOptions(). |
Here is the call graph for this function:
|
The function sets the value of an element in the array. Note that the function crashes if the element does not exist.
Definition at line 173 of file GTXabsl2Profiler.h. |
|
The function returns the number of elements in the array.
Definition at line 182 of file GTXabsl2Profiler.h. References usedSize. Referenced by append(), find(), findOption(), findState(), GTXabsl2Profiler::getDepth(), GTXabsl2Profiler::getOptionName(), GTXabsl2Profiler::getStateName(), and GTXabsl2Profiler::writeNameTableToStream(). |
|
Returns the value for a given array position. Note that the function crashes if the required position is bigger than the size of the array. Definition at line 189 of file GTXabsl2Profiler.h. |
|
Returns whether an element for the given name exists.
Definition at line 198 of file GTXabsl2Profiler.h. References find(). Referenced by GTXabsl2Profiler::doProfiling(), and GTXabsl2Profiler::registerOptions(). |
Here is the call graph for this function:
|
Returns whether an element for the given name exists.
Definition at line 206 of file GTXabsl2Profiler.h. References findOption(). Referenced by GTXabsl2Profiler::getDepth(), and GTXabsl2Profiler::registerOptions(). |
Here is the call graph for this function:
|
Finds the index of an element with the given names.
Definition at line 215 of file GTXabsl2Profiler.h. References getSize(), GTXabsl2ProfilerNameTableEntry::optionName, and GTXabsl2ProfilerNameTableEntry::states. Referenced by exists(). |
Here is the call graph for this function:
|
Finds the index of an element with the given names.
Definition at line 234 of file GTXabsl2Profiler.h. References getSize(), GTXabsl2ProfilerNameTableEntry::optionName, and GTXabsl2ProfilerNameTableEntry::states. Referenced by getStatePosition(). |
Here is the call graph for this function:
|
Finds the index of an element with the given names.
Definition at line 253 of file GTXabsl2Profiler.h. References getSize(), and GTXabsl2ProfilerNameTableEntry::optionName. Referenced by existsOption(), and getOptionPosition(). |
Here is the call graph for this function:
|
The array.
Definition at line 78 of file GTXabsl2Profiler.h. |
|
The number of elements in the array.
Definition at line 82 of file GTXabsl2Profiler.h. Referenced by append(), clear(), getSize(), GTXabsl2ProfilerNameTable(), and init(). |
|
The number of elements in the array.
Definition at line 82 of file GTXabsl2Profiler.h. |