KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
#include <code_location.h>
Public Member Functions | |
CodeLocation () | |
CodeLocation (CodeLocation &&rOther) noexcept=default | |
CodeLocation (CodeLocation const &Other)=default | |
CodeLocation (std::string const &FileName, std::string const &FunctionName, std::size_t LineNumber) | |
Private Operators | |
CodeLocation & | operator= (CodeLocation const &Other) |
Operations | |
std::string | CleanFileName () const |
This function removes the path before the Kratos root. More... | |
std::string | CleanFunctionName () const |
This method cleans many template arguments and namespaces from the function name gives by compiler. More... | |
Access | |
const std::string & | GetFileName () const |
const std::string & | GetFunctionName () const |
int | GetLineNumber () const |
This class keeps a code location consist of filename, function name and line number. It also provides methods to get cleaned version of filename and function name.
Kratos::CodeLocation::CodeLocation | ( | ) |
|
defaultnoexcept |
|
default |
Kratos::CodeLocation::CodeLocation | ( | std::string const & | FileName, |
std::string const & | FunctionName, | ||
std::size_t | LineNumber | ||
) |
std::string Kratos::CodeLocation::CleanFileName | ( | ) | const |
This function removes the path before the Kratos root.
std::string Kratos::CodeLocation::CleanFunctionName | ( | ) | const |
This method cleans many template arguments and namespaces from the function name gives by compiler.
const std::string & Kratos::CodeLocation::GetFileName | ( | ) | const |
const std::string & Kratos::CodeLocation::GetFunctionName | ( | ) | const |
int Kratos::CodeLocation::GetLineNumber | ( | ) | const |
|
inline |