aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
gum::prm::o3prm::O3Label Class Reference

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

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

+ Collaboration diagram for gum::prm::o3prm::O3Label:

Public Member Functions

 O3Label ()
 
 O3Label (const O3Position &pos, const std::string &label)
 
 O3Label (const O3Label &src)
 
 O3Label (O3Label &&src)
 
 ~O3Label ()
 
O3Labeloperator= (const O3Label &src)
 
O3Labeloperator= (O3Label &&src)
 
O3Positionposition ()
 
const O3Positionposition () const
 
std::string & label ()
 
const std::string & label () const
 

Detailed Description

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

Definition at line 172 of file O3prm.h.

Constructor & Destructor Documentation

◆ O3Label() [1/4]

gum::prm::o3prm::O3Label::O3Label ( )

Definition at line 214 of file O3prm.cpp.

214  : _pos_(), _label_() {
215  GUM_CONSTRUCTOR(O3Label);
216  ;
217  }
O3Position _pos_
Definition: O3prm.h:190
std::string _label_
Definition: O3prm.h:191

◆ O3Label() [2/4]

gum::prm::o3prm::O3Label::O3Label ( const O3Position pos,
const std::string &  label 
)

Definition at line 219 of file O3prm.cpp.

219  :
220  _pos_(pos), _label_(label) {
221  GUM_CONSTRUCTOR(O3Label);
222  }
std::string & label()
Definition: O3prm.cpp:256
O3Position _pos_
Definition: O3prm.h:190
std::string _label_
Definition: O3prm.h:191

◆ O3Label() [3/4]

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

Definition at line 224 of file O3prm.cpp.

224  : _pos_(src._pos_), _label_(src._label_) {
225  GUM_CONS_CPY(O3Label);
226  }
O3Position _pos_
Definition: O3prm.h:190
std::string _label_
Definition: O3prm.h:191

◆ O3Label() [4/4]

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

Definition at line 228 of file O3prm.cpp.

228  :
229  _pos_(std::move(src._pos_)), _label_(std::move(src._label_)) {
230  GUM_CONS_MOV(O3Label);
231  }
O3Position _pos_
Definition: O3prm.h:190
std::string _label_
Definition: O3prm.h:191

◆ ~O3Label()

gum::prm::o3prm::O3Label::~O3Label ( )

Definition at line 233 of file O3prm.cpp.

233  {
234  GUM_DESTRUCTOR(O3Label);
235  ;
236  }

Member Function Documentation

◆ label() [1/2]

std::string & gum::prm::o3prm::O3Label::label ( )

Definition at line 256 of file O3prm.cpp.

256 { return _label_; }
std::string _label_
Definition: O3prm.h:191

◆ label() [2/2]

const std::string & gum::prm::o3prm::O3Label::label ( ) const

Definition at line 255 of file O3prm.cpp.

255 { return _label_; }
std::string _label_
Definition: O3prm.h:191

◆ operator=() [1/2]

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

Definition at line 238 of file O3prm.cpp.

238  {
239  if (this == &src) { return *this; }
240  _pos_ = src._pos_;
241  _label_ = src._label_;
242  return *this;
243  }
O3Position _pos_
Definition: O3prm.h:190
std::string _label_
Definition: O3prm.h:191

◆ operator=() [2/2]

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

Definition at line 245 of file O3prm.cpp.

245  {
246  if (this == &src) { return *this; }
247  _pos_ = std::move(src._pos_);
248  _label_ = std::move(src._label_);
249  return *this;
250  }
O3Position _pos_
Definition: O3prm.h:190
std::string _label_
Definition: O3prm.h:191

◆ position() [1/2]

O3Position & gum::prm::o3prm::O3Label::position ( )

Definition at line 253 of file O3prm.cpp.

253 { return _pos_; }
O3Position _pos_
Definition: O3prm.h:190

◆ position() [2/2]

const O3Position & gum::prm::o3prm::O3Label::position ( ) const

Definition at line 252 of file O3prm.cpp.

252 { return _pos_; }
O3Position _pos_
Definition: O3prm.h:190

Member Data Documentation

◆ _label_

std::string gum::prm::o3prm::O3Label::_label_
private

Definition at line 191 of file O3prm.h.

◆ _pos_

O3Position gum::prm::o3prm::O3Label::_pos_
private

Definition at line 190 of file O3prm.h.


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