Nemiver  0.3
Public Member Functions | List of all members
nemiver::common::SourceLoc Class Reference

#include <nmv-loc.h>

Inheritance diagram for nemiver::common::SourceLoc:
nemiver::common::Loc

Public Member Functions

 SourceLoc (const UString &a_file_path, int a_line_number)
 
 SourceLoc (const SourceLoc &a)
 
const UStringfile_path () const
 
void file_path (const UString &a)
 
int line_number () const
 
void line_number (int a)
 
- Public Member Functions inherited from nemiver::common::Loc
Kind kind () const
 
virtual ~Loc ()
 

Additional Inherited Members

- Public Types inherited from nemiver::common::Loc
enum  Kind { UNDEFINED_LOC_KIND, SOURCE_LOC_KIND, FUNCTION_LOC_KIND, ADDRESS_LOC_KIND }
 The different possible kinds of locations. More...
 
- Protected Member Functions inherited from nemiver::common::Loc
 Loc ()
 
 Loc (const Loc &a)
 
- Protected Attributes inherited from nemiver::common::Loc
Kind m_kind
 

Detailed Description

A source location.

It encapsulates a file name and a line number in that file.

Constructor & Destructor Documentation

◆ SourceLoc() [1/2]

nemiver::common::SourceLoc::SourceLoc ( const UString a_file_path,
int  a_line_number 
)
inline

◆ SourceLoc() [2/2]

nemiver::common::SourceLoc::SourceLoc ( const SourceLoc a)
inline

Member Function Documentation

◆ file_path() [1/2]

const UString& nemiver::common::SourceLoc::file_path ( ) const
inline

◆ file_path() [2/2]

void nemiver::common::SourceLoc::file_path ( const UString a)
inline

◆ line_number() [1/2]

int nemiver::common::SourceLoc::line_number ( ) const
inline

◆ line_number() [2/2]

void nemiver::common::SourceLoc::line_number ( int  a)
inline

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