aGrUM  0.16.0
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 115 of file O3prm.h.

Constructor & Destructor Documentation

◆ O3Float() [1/4]

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

Definition at line 123 of file O3prm.cpp.

123 { GUM_CONSTRUCTOR(O3Float); }

◆ O3Float() [2/4]

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

Definition at line 125 of file O3prm.cpp.

125  :
126  __pos(pos), __value(value) {
127  GUM_CONSTRUCTOR(O3Float);
128  }
O3Position __pos
Definition: O3prm.h:133

◆ O3Float() [3/4]

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

Definition at line 130 of file O3prm.cpp.

130  :
131  __pos(src.__pos), __value(src.__value) {
132  GUM_CONS_CPY(O3Float);
133  }
O3Position __pos
Definition: O3prm.h:133

◆ O3Float() [4/4]

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

Definition at line 135 of file O3prm.cpp.

135  :
136  __pos(std::move(src.__pos)), __value(std::move(src.__value)) {
137  GUM_CONS_MOV(O3Float);
138  }
O3Position __pos
Definition: O3prm.h:133

◆ ~O3Float()

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

Definition at line 140 of file O3prm.cpp.

140 { GUM_DESTRUCTOR(O3Float); }

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 142 of file O3prm.cpp.

References __pos, and __value.

142  {
143  if (this == &src) { return *this; }
144  __pos = src.__pos;
145  __value = src.__value;
146  return *this;
147  }
O3Position __pos
Definition: O3prm.h:133

◆ operator=() [2/2]

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

Definition at line 149 of file O3prm.cpp.

References __pos, and __value.

149  {
150  if (this == &src) { return *this; }
151  __pos = std::move(src.__pos);
152  __value = std::move(src.__value);
153  return *this;
154  }
O3Position __pos
Definition: O3prm.h:133

◆ position() [1/2]

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

Definition at line 157 of file O3prm.cpp.

References __pos.

157 { return __pos; }
O3Position __pos
Definition: O3prm.h:133

◆ position() [2/2]

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

Definition at line 156 of file O3prm.cpp.

References __pos.

156 { return __pos; }
O3Position __pos
Definition: O3prm.h:133

◆ value() [1/2]

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

Definition at line 160 of file O3prm.cpp.

References __value.

160 { return __value; }

◆ value() [2/2]

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

Definition at line 159 of file O3prm.cpp.

References __value.

159 { return __value; }

Member Data Documentation

◆ __pos

O3Position gum::prm::o3prm::O3Float::__pos
private

Definition at line 133 of file O3prm.h.

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

◆ __value

float gum::prm::o3prm::O3Float::__value
private

Definition at line 134 of file O3prm.h.

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


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