aGrUM 3.2.0
a C++ library for (probabilistic) graphical models
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:
[legend]

Public Member Functions

 O3Integer ()
 O3Integer (const O3Position &pos, int value)
 O3Integer (const O3Integer &src)
 O3Integer (O3Integer &&src)
 ~O3Integer ()
O3Integer & operator= (const O3Integer &src)
O3Integer & operator= (O3Integer &&src)
O3Position & position ()
const O3Position & position () const
int & value ()
int value () const

Private Attributes

O3Position _pos_
int _value_

Detailed Description

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

Definition at line 165 of file O3prm.h.

Constructor & Destructor Documentation

◆ O3Integer() [1/4]

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

Definition at line 107 of file O3prm.cpp.

107 : _pos_(), _value_(0) {
108 GUM_CONSTRUCTOR(O3Integer);
109 ;
110 }

References O3Integer(), _pos_, and _value_.

Referenced by O3Integer(), O3Integer(), O3Integer(), O3Integer(), ~O3Integer(), operator=(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ O3Integer() [2/4]

gum::prm::o3prm::O3Integer::O3Integer ( const O3Position & pos,
int value )

Definition at line 112 of file O3prm.cpp.

112 : _pos_(pos), _value_(value) {
113 GUM_CONSTRUCTOR(O3Integer);
114 }

References O3Integer(), _pos_, _value_, and value().

Here is the call graph for this function:

◆ O3Integer() [3/4]

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

Definition at line 116 of file O3prm.cpp.

116 : _pos_(src._pos_), _value_(src._value_) {
117 GUM_CONS_CPY(O3Integer);
118 }

References O3Integer(), _pos_, and _value_.

Here is the call graph for this function:

◆ O3Integer() [4/4]

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

Definition at line 120 of file O3prm.cpp.

120 :
121 _pos_(std::move(src._pos_)), _value_(std::move(src._value_)) {
122 GUM_CONS_MOV(O3Integer);
123 }

References O3Integer(), _pos_, and _value_.

Here is the call graph for this function:

◆ ~O3Integer()

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

Definition at line 125 of file O3prm.cpp.

125 {
126 GUM_DESTRUCTOR(O3Integer);
127 ;
128 }

References O3Integer().

Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 130 of file O3prm.cpp.

130 {
131 if (this == &src) { return *this; }
132 _pos_ = src._pos_;
133 _value_ = src._value_;
134 return *this;
135 }

References O3Integer(), _pos_, and _value_.

Here is the call graph for this function:

◆ operator=() [2/2]

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

Definition at line 137 of file O3prm.cpp.

137 {
138 if (this == &src) { return *this; }
139 _pos_ = std::move(src._pos_);
140 _value_ = std::move(src._value_);
141 return *this;
142 }

References O3Integer(), _pos_, and _value_.

Here is the call graph for this function:

◆ position() [1/2]

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

Definition at line 146 of file O3prm.cpp.

146{ return _pos_; }

References _pos_.

◆ position() [2/2]

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

Definition at line 144 of file O3prm.cpp.

144{ return _pos_; }

References _pos_.

◆ value() [1/2]

int & gum::prm::o3prm::O3Integer::value ( )

Definition at line 150 of file O3prm.cpp.

150{ return _value_; }

References _value_.

Referenced by O3Integer().

Here is the caller graph for this function:

◆ value() [2/2]

int gum::prm::o3prm::O3Integer::value ( ) const

Definition at line 148 of file O3prm.cpp.

148{ return _value_; }

References _value_.

Member Data Documentation

◆ _pos_

O3Position gum::prm::o3prm::O3Integer::_pos_
private

Definition at line 183 of file O3prm.h.

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

◆ _value_

int gum::prm::o3prm::O3Integer::_value_
private

Definition at line 184 of file O3prm.h.

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


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