Inviwo  0.9.10.1
Inviwo documentation
inviwo::SourceContext Class Reference

#include <sourcecontext.h>

Public Member Functions

 SourceContext (std::string caller="", std::string file="", std::string function="", int line=0)
 
const std::string & getCaller () const
 
const std::string & getFile () const
 
const std::string & getFunction () const
 
int getLine () const
 

Detailed Description

Represents a location in source code

Constructor & Destructor Documentation

◆ SourceContext()

inviwo::SourceContext::SourceContext ( std::string  caller = "",
std::string  file = "",
std::string  function = "",
int  line = 0 
)
inline

Construct a SourceContext, this is usually not done manually, but rather one of the macros bellow is used to automatically get the right arguments. SourceContext copies its arguments, for a more lightweight version

See also
SourceLocation
Parameters
callerusually the class name of *this in the current scope.
filefilename path of the source file
functionname of the function in the current scope
lineline number in the current source file

Member Function Documentation

◆ getCaller()

const std::string& inviwo::SourceContext::getCaller ( ) const
inline

Usually the class name of *this in the current scope.

◆ getFile()

const std::string& inviwo::SourceContext::getFile ( ) const
inline

The name and path the the source file

◆ getFunction()

const std::string& inviwo::SourceContext::getFunction ( ) const
inline

Name of the function in the current scope

◆ getLine()

int inviwo::SourceContext::getLine ( ) const
inline

Line number in the current source file


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