aGrUM  0.20.2
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 122 of file O3prm.cpp.

122 { GUM_CONSTRUCTOR(O3Float); }

◆ O3Float() [2/4]

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

Definition at line 124 of file O3prm.cpp.

124  :
125  pos__(pos), value__(value) {
126  GUM_CONSTRUCTOR(O3Float);
127  }
O3Position pos__
Definition: O3prm.h:132

◆ O3Float() [3/4]

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

Definition at line 129 of file O3prm.cpp.

129  :
130  pos__(src.pos__), value__(src.value__) {
131  GUM_CONS_CPY(O3Float);
132  }
O3Position pos__
Definition: O3prm.h:132

◆ O3Float() [4/4]

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

Definition at line 134 of file O3prm.cpp.

134  :
135  pos__(std::move(src.pos__)), value__(std::move(src.value__)) {
136  GUM_CONS_MOV(O3Float);
137  }
O3Position pos__
Definition: O3prm.h:132

◆ ~O3Float()

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

Definition at line 139 of file O3prm.cpp.

139 { GUM_DESTRUCTOR(O3Float); }

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 141 of file O3prm.cpp.

141  {
142  if (this == &src) { return *this; }
143  pos__ = src.pos__;
144  value__ = src.value__;
145  return *this;
146  }
O3Position pos__
Definition: O3prm.h:132

◆ operator=() [2/2]

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

Definition at line 148 of file O3prm.cpp.

148  {
149  if (this == &src) { return *this; }
150  pos__ = std::move(src.pos__);
151  value__ = std::move(src.value__);
152  return *this;
153  }
O3Position pos__
Definition: O3prm.h:132

◆ position() [1/2]

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

Definition at line 156 of file O3prm.cpp.

156 { return pos__; }
O3Position pos__
Definition: O3prm.h:132

◆ position() [2/2]

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

Definition at line 155 of file O3prm.cpp.

155 { return pos__; }
O3Position pos__
Definition: O3prm.h:132

◆ value() [1/2]

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

Definition at line 159 of file O3prm.cpp.

159 { return value__; }

◆ value() [2/2]

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

Definition at line 158 of file O3prm.cpp.

158 { 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: