aGrUM  0.13.2
gum::prm::o3prm::O3Position Class Reference

The O3Position is part of the AST of the O3PRM language. More...

#include <agrum/PRM/o3prm/O3prm.h>

Public Member Functions

 O3Position ()
 
 O3Position (const std::string &filename, int line, int column)
 
 O3Position (const O3Position &src)
 
 O3Position (O3Position &&src)
 
 ~O3Position ()
 
O3Positionoperator= (const O3Position &src)
 
O3Positionoperator= (O3Position &&src)
 
std::string & file ()
 
const std::string & file () const
 
int & line ()
 
int line () const
 
int & column ()
 
int column () const
 

Detailed Description

The O3Position is part of the AST of the O3PRM language.

Definition at line 51 of file O3prm.h.

Constructor & Destructor Documentation

gum::prm::o3prm::O3Position::O3Position ( )

Definition at line 35 of file O3prm.cpp.

35  : __file(""), __line(0), __column(0) {
36  GUM_CONSTRUCTOR(O3Position);
37  }
std::string __file
Definition: O3prm.h:72
gum::prm::o3prm::O3Position::O3Position ( const std::string &  filename,
int  line,
int  column 
)

Definition at line 39 of file O3prm.cpp.

gum::prm::o3prm::O3Position::O3Position ( const O3Position src)

Definition at line 44 of file O3prm.cpp.

44  :
45  __file(src.__file), __line(src.__line), __column(src.__column) {
46  GUM_CONS_CPY(O3Position);
47  }
std::string __file
Definition: O3prm.h:72
gum::prm::o3prm::O3Position::O3Position ( O3Position &&  src)

Definition at line 49 of file O3prm.cpp.

49  :
50  __file(std::move(src.__file)), __line(std::move(src.__line)),
51  __column(std::move(src.__column)) {
52  GUM_CONS_MOV(O3Position);
53  }
std::string __file
Definition: O3prm.h:72
gum::prm::o3prm::O3Position::~O3Position ( )

Definition at line 55 of file O3prm.cpp.

55 { GUM_DESTRUCTOR(O3Position); }

Member Function Documentation

int & gum::prm::o3prm::O3Position::column ( )

Definition at line 79 of file O3prm.cpp.

References __column.

79 { return __column; }
int gum::prm::o3prm::O3Position::column ( ) const

Definition at line 80 of file O3prm.cpp.

References __column.

80 { return __column; }
std::string & gum::prm::o3prm::O3Position::file ( )

Definition at line 73 of file O3prm.cpp.

References __file.

73 { return __file; }
std::string __file
Definition: O3prm.h:72
const std::string & gum::prm::o3prm::O3Position::file ( ) const

Definition at line 74 of file O3prm.cpp.

References __file.

74 { return __file; }
std::string __file
Definition: O3prm.h:72
int & gum::prm::o3prm::O3Position::line ( )

Definition at line 76 of file O3prm.cpp.

References __line.

76 { return __line; }
int gum::prm::o3prm::O3Position::line ( ) const

Definition at line 77 of file O3prm.cpp.

References __line.

77 { return __line; }
O3Position & gum::prm::o3prm::O3Position::operator= ( const O3Position src)

Definition at line 57 of file O3prm.cpp.

References __column, __file, and __line.

57  {
58  if (this == &src) { return *this; }
59  __file = src.__file;
60  __line = src.__line;
61  __column = src.__column;
62  return *this;
63  }
std::string __file
Definition: O3prm.h:72
O3Position & gum::prm::o3prm::O3Position::operator= ( O3Position &&  src)

Definition at line 65 of file O3prm.cpp.

References __column, __file, and __line.

65  {
66  if (this == &src) { return *this; }
67  __file = std::move(src.__file);
68  __line = std::move(src.__line);
69  __column = std::move(src.__column);
70  return *this;
71  }
std::string __file
Definition: O3prm.h:72

Member Data Documentation

int gum::prm::o3prm::O3Position::__column
private

Definition at line 74 of file O3prm.h.

Referenced by column(), and operator=().

std::string gum::prm::o3prm::O3Position::__file
private

Definition at line 72 of file O3prm.h.

Referenced by file(), and operator=().

int gum::prm::o3prm::O3Position::__line
private

Definition at line 73 of file O3prm.h.

Referenced by line(), and operator=().


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