aGrUM 3.2.0
a C++ library for (probabilistic) graphical models
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 (std::string_view filename, int line, int column)
 O3Position (const O3Position &src)
 O3Position (O3Position &&src)
 ~O3Position ()
O3Position & operator= (const O3Position &src)
O3Position & operator= (O3Position &&src)
std::string & file ()
const std::string & file () const
int & line ()
int line () const
int & column ()
int column () const

Private Attributes

std::string _file_
int _line_
int _column_

Detailed Description

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

Definition at line 74 of file O3prm.h.

Constructor & Destructor Documentation

◆ O3Position() [1/4]

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

Definition at line 56 of file O3prm.cpp.

References O3Position(), _column_, _file_, and _line_.

Referenced by O3Position(), O3Position(), O3Position(), O3Position(), gum::prm::o3prm::O3PRM::O3PRM(), ~O3Position(), operator=(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ O3Position() [2/4]

gum::prm::o3prm::O3Position::O3Position ( std::string_view filename,
int line,
int column )

Definition at line 58 of file O3prm.cpp.

58 :
60 GUM_CONSTRUCTOR(O3Position);
61 }
std::string & file()
Definition O3prm.cpp:95

References O3Position(), _column_, _file_, _line_, column(), file(), and line().

Here is the call graph for this function:

◆ O3Position() [3/4]

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

Definition at line 63 of file O3prm.cpp.

63 :
64 _file_(src._file_), _line_(src._line_), _column_(src._column_) {
65 GUM_CONS_CPY(O3Position);
66 }

References O3Position(), _column_, _file_, and _line_.

Here is the call graph for this function:

◆ O3Position() [4/4]

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

Definition at line 68 of file O3prm.cpp.

68 :
69 _file_(std::move(src._file_)), _line_(std::move(src._line_)),
70 _column_(std::move(src._column_)) {
71 GUM_CONS_MOV(O3Position);
72 }

References O3Position(), _column_, _file_, and _line_.

Here is the call graph for this function:

◆ ~O3Position()

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

Definition at line 74 of file O3prm.cpp.

74 {
75 GUM_DESTRUCTOR(O3Position);
76 ;
77 }

References O3Position().

Here is the call graph for this function:

Member Function Documentation

◆ column() [1/2]

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

Definition at line 103 of file O3prm.cpp.

103{ return _column_; }

References _column_.

Referenced by O3Position().

Here is the caller graph for this function:

◆ column() [2/2]

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

Definition at line 105 of file O3prm.cpp.

105{ return _column_; }

References _column_.

◆ file() [1/2]

std::string & gum::prm::o3prm::O3Position::file ( )

Definition at line 95 of file O3prm.cpp.

95{ return _file_; }

References _file_.

Referenced by O3Position().

Here is the caller graph for this function:

◆ file() [2/2]

const std::string & gum::prm::o3prm::O3Position::file ( ) const

Definition at line 97 of file O3prm.cpp.

97{ return _file_; }

References _file_.

◆ line() [1/2]

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

Definition at line 99 of file O3prm.cpp.

99{ return _line_; }

References _line_.

Referenced by O3Position().

Here is the caller graph for this function:

◆ line() [2/2]

int gum::prm::o3prm::O3Position::line ( ) const

Definition at line 101 of file O3prm.cpp.

101{ return _line_; }

References _line_.

◆ operator=() [1/2]

O3Position & gum::prm::o3prm::O3Position::operator= ( const O3Position & src)

Definition at line 79 of file O3prm.cpp.

79 {
80 if (this == &src) { return *this; }
81 _file_ = src._file_;
82 _line_ = src._line_;
83 _column_ = src._column_;
84 return *this;
85 }

References O3Position(), _column_, _file_, and _line_.

Here is the call graph for this function:

◆ operator=() [2/2]

O3Position & gum::prm::o3prm::O3Position::operator= ( O3Position && src)

Definition at line 87 of file O3prm.cpp.

87 {
88 if (this == &src) { return *this; }
89 _file_ = std::move(src._file_);
90 _line_ = std::move(src._line_);
91 _column_ = std::move(src._column_);
92 return *this;
93 }

References O3Position(), _column_, _file_, and _line_.

Here is the call graph for this function:

Member Data Documentation

◆ _column_

int gum::prm::o3prm::O3Position::_column_
private

Definition at line 97 of file O3prm.h.

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

◆ _file_

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

Definition at line 95 of file O3prm.h.

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

◆ _line_

int gum::prm::o3prm::O3Position::_line_
private

Definition at line 96 of file O3prm.h.

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


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