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.
Public Member Functions | List of all members
Kratos::CodeLocation Class Reference

#include <code_location.h>

Collaboration diagram for Kratos::CodeLocation:

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
CodeLocationoperator= (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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CodeLocation() [1/4]

Kratos::CodeLocation::CodeLocation ( )

◆ CodeLocation() [2/4]

Kratos::CodeLocation::CodeLocation ( CodeLocation &&  rOther)
defaultnoexcept

◆ CodeLocation() [3/4]

Kratos::CodeLocation::CodeLocation ( CodeLocation const &  Other)
default

◆ CodeLocation() [4/4]

Kratos::CodeLocation::CodeLocation ( std::string const &  FileName,
std::string const &  FunctionName,
std::size_t  LineNumber 
)

Member Function Documentation

◆ CleanFileName()

std::string Kratos::CodeLocation::CleanFileName ( ) const

This function removes the path before the Kratos root.

◆ CleanFunctionName()

std::string Kratos::CodeLocation::CleanFunctionName ( ) const

This method cleans many template arguments and namespaces from the function name gives by compiler.

◆ GetFileName()

const std::string & Kratos::CodeLocation::GetFileName ( ) const

◆ GetFunctionName()

const std::string & Kratos::CodeLocation::GetFunctionName ( ) const

◆ GetLineNumber()

int Kratos::CodeLocation::GetLineNumber ( ) const

◆ operator=()

CodeLocation& Kratos::CodeLocation::operator= ( CodeLocation const &  Other)
inline

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