API Documentation
Public Member Functions | List of all members
nkDebug::TestStackLevel Class Referencefinal

Holds information about a stack level. More...

Public Member Functions

 TestStackLevel () noexcept
 
 TestStackLevel (nkMemory::StringView functionName, unsigned int line) noexcept
 
nkMemory::StringView getFunctionName () const
 
unsigned int getLine () const
 
void setFunctionName (nkMemory::StringView value)
 
void setLine (unsigned int value)
 

Detailed Description

Holds information about a stack level.

Constructor & Destructor Documentation

◆ TestStackLevel() [1/2]

nkDebug::TestStackLevel::TestStackLevel ( )
noexcept

Default constructor.

◆ TestStackLevel() [2/2]

nkDebug::TestStackLevel::TestStackLevel ( nkMemory::StringView  functionName,
unsigned int  line 
)
noexcept

Parameterized constructor.

Parameters
functionNameThe name of the function at the stack level.
lineThe line at the stack level.

Member Function Documentation

◆ getFunctionName()

nkMemory::StringView nkDebug::TestStackLevel::getFunctionName ( ) const
Returns
The level's function name.

◆ getLine()

unsigned int nkDebug::TestStackLevel::getLine ( ) const

The level's source code line.

◆ setFunctionName()

void nkDebug::TestStackLevel::setFunctionName ( nkMemory::StringView  value)

Allows to set the level's function name.

Parameters
valueThe function name to set.

◆ setLine()

void nkDebug::TestStackLevel::setLine ( unsigned int  value)

Allows to set the level's source code line.

Parameters
valueThe source code line to set.

The documentation for this class was generated from the following file: