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

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

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

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

Public Member Functions

 O3Float ()
 
 O3Float (const O3Position &pos, float value)
 
 O3Float (const O3Float &src)
 
 O3Float (O3Float &&src)
 
 ~O3Float ()
 
O3Floatoperator= (const O3Float &src)
 
O3Floatoperator= (O3Float &&src)
 
O3Positionposition ()
 
const O3Positionposition () const
 
float & value ()
 
float value () const
 

Detailed Description

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

Definition at line 114 of file O3prm.h.

Constructor & Destructor Documentation

◆ O3Float() [1/4]

gum::prm::o3prm::O3Float::O3Float ( )

Definition at line 127 of file O3prm.cpp.

127  {
128  GUM_CONSTRUCTOR(O3Float);
129  ;
130  }

◆ O3Float() [2/4]

gum::prm::o3prm::O3Float::O3Float ( const O3Position pos,
float  value 
)

Definition at line 132 of file O3prm.cpp.

132  : _pos_(pos), _value_(value) {
133  GUM_CONSTRUCTOR(O3Float);
134  }
O3Position _pos_
Definition: O3prm.h:132

◆ O3Float() [3/4]

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

Definition at line 136 of file O3prm.cpp.

136  : _pos_(src._pos_), _value_(src._value_) {
137  GUM_CONS_CPY(O3Float);
138  }
O3Position _pos_
Definition: O3prm.h:132

◆ O3Float() [4/4]

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

Definition at line 140 of file O3prm.cpp.

140  :
141  _pos_(std::move(src._pos_)), _value_(std::move(src._value_)) {
142  GUM_CONS_MOV(O3Float);
143  }
O3Position _pos_
Definition: O3prm.h:132

◆ ~O3Float()

gum::prm::o3prm::O3Float::~O3Float ( )

Definition at line 145 of file O3prm.cpp.

145  {
146  GUM_DESTRUCTOR(O3Float);
147  ;
148  }

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 150 of file O3prm.cpp.

150  {
151  if (this == &src) { return *this; }
152  _pos_ = src._pos_;
153  _value_ = src._value_;
154  return *this;
155  }
O3Position _pos_
Definition: O3prm.h:132

◆ operator=() [2/2]

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

Definition at line 157 of file O3prm.cpp.

157  {
158  if (this == &src) { return *this; }
159  _pos_ = std::move(src._pos_);
160  _value_ = std::move(src._value_);
161  return *this;
162  }
O3Position _pos_
Definition: O3prm.h:132

◆ position() [1/2]

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

Definition at line 165 of file O3prm.cpp.

165 { return _pos_; }
O3Position _pos_
Definition: O3prm.h:132

◆ position() [2/2]

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

Definition at line 164 of file O3prm.cpp.

164 { return _pos_; }
O3Position _pos_
Definition: O3prm.h:132

◆ value() [1/2]

float & gum::prm::o3prm::O3Float::value ( )

Definition at line 168 of file O3prm.cpp.

168 { return _value_; }

◆ value() [2/2]

float gum::prm::o3prm::O3Float::value ( ) const

Definition at line 167 of file O3prm.cpp.

167 { return _value_; }

Member Data Documentation

◆ _pos_

O3Position gum::prm::o3prm::O3Float::_pos_
private

Definition at line 132 of file O3prm.h.

◆ _value_

float gum::prm::o3prm::O3Float::_value_
private

Definition at line 133 of file O3prm.h.


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