aGrUM  0.13.2
gum::prm::o3prm::O3Integer Class Reference

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

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

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

Public Member Functions

 O3Integer ()
 
 O3Integer (const O3Position &pos, int value)
 
 O3Integer (const O3Integer &src)
 
 O3Integer (O3Integer &&src)
 
 ~O3Integer ()
 
O3Integeroperator= (const O3Integer &src)
 
O3Integeroperator= (O3Integer &&src)
 
O3Positionposition ()
 
const O3Positionposition () const
 
int & value ()
 
int value () const
 

Detailed Description

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

Definition at line 142 of file O3prm.h.

Constructor & Destructor Documentation

gum::prm::o3prm::O3Integer::O3Integer ( )

Definition at line 82 of file O3prm.cpp.

82 : __pos(), __value(0) { GUM_CONSTRUCTOR(O3Integer); }
gum::prm::o3prm::O3Integer::O3Integer ( const O3Position pos,
int  value 
)

Definition at line 84 of file O3prm.cpp.

84  :
85  __pos(pos), __value(value) {
86  GUM_CONSTRUCTOR(O3Integer);
87  }
gum::prm::o3prm::O3Integer::O3Integer ( const O3Integer src)

Definition at line 89 of file O3prm.cpp.

89  :
90  __pos(src.__pos), __value(src.__value) {
91  GUM_CONS_CPY(O3Integer);
92  }
gum::prm::o3prm::O3Integer::O3Integer ( O3Integer &&  src)

Definition at line 94 of file O3prm.cpp.

94  :
95  __pos(std::move(src.__pos)), __value(std::move(src.__value)) {
96  GUM_CONS_MOV(O3Integer);
97  }
gum::prm::o3prm::O3Integer::~O3Integer ( )

Definition at line 99 of file O3prm.cpp.

99 { GUM_DESTRUCTOR(O3Integer); }

Member Function Documentation

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

Definition at line 101 of file O3prm.cpp.

References __pos, and __value.

101  {
102  if (this == &src) { return *this; }
103  __pos = src.__pos;
104  __value = src.__value;
105  return *this;
106  }
O3Integer & gum::prm::o3prm::O3Integer::operator= ( O3Integer &&  src)

Definition at line 108 of file O3prm.cpp.

References __pos, and __value.

108  {
109  if (this == &src) { return *this; }
110  __pos = std::move(src.__pos);
111  __value = std::move(src.__value);
112  return *this;
113  }
O3Position & gum::prm::o3prm::O3Integer::position ( )

Definition at line 116 of file O3prm.cpp.

References __pos.

116 { return __pos; }
const O3Position & gum::prm::o3prm::O3Integer::position ( ) const

Definition at line 115 of file O3prm.cpp.

References __pos.

115 { return __pos; }
int & gum::prm::o3prm::O3Integer::value ( )

Definition at line 119 of file O3prm.cpp.

References __value.

119 { return __value; }
int gum::prm::o3prm::O3Integer::value ( ) const

Definition at line 118 of file O3prm.cpp.

References __value.

118 { return __value; }

Member Data Documentation

O3Position gum::prm::o3prm::O3Integer::__pos
private

Definition at line 160 of file O3prm.h.

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

int gum::prm::o3prm::O3Integer::__value
private

Definition at line 161 of file O3prm.h.

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


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