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

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

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

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

Public Member Functions

 O3Type ()
 
 O3Type (const O3Type &src)
 
 O3Type (O3Type &&src)
 
 ~O3Type ()
 
O3Typeoperator= (const O3Type &src)
 
O3Typeoperator= (O3Type &&src)
 
O3Positionposition ()
 
const O3Positionposition () const
 
O3Labelname ()
 
const O3Labelname () const
 
O3LabelsuperLabel ()
 
const O3LabelsuperLabel () const
 
LabelMaplabels ()
 
const LabelMaplabels () const
 
booldeprecated ()
 
const booldeprecated () const
 

Public Types

using LabelPair = std::pair< O3Label, O3Label >
 
using LabelMap = std::vector< LabelPair >
 

Detailed Description

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

Definition at line 202 of file O3prm.h.

Member Typedef Documentation

Definition at line 205 of file O3prm.h.

Definition at line 204 of file O3prm.h.

Constructor & Destructor Documentation

gum::prm::o3prm::O3Type::O3Type ( )

Definition at line 242 of file O3prm.cpp.

242 : __dep_flag(false) { GUM_CONSTRUCTOR(O3Type); }
gum::prm::o3prm::O3Type::O3Type ( const O3Type src)

Definition at line 244 of file O3prm.cpp.

244  :
245  __pos(src.__pos), __name(src.__name), __superLabel(src.__superLabel),
246  __labels(src.__labels), __dep_flag(src.__dep_flag) {
247  GUM_CONS_CPY(O3Type);
248  }
O3Position __pos
Definition: O3prm.h:231
O3Label __superLabel
Definition: O3prm.h:233
gum::prm::o3prm::O3Type::O3Type ( O3Type &&  src)

Definition at line 250 of file O3prm.cpp.

250  :
251  __pos(std::move(src.__pos)), __name(std::move(src.__name)),
252  __superLabel(std::move(src.__superLabel)),
253  __labels(std::move(src.__labels)),
254  __dep_flag(std::move(src.__dep_flag)) {
255  GUM_CONS_MOV(O3Type);
256  }
O3Position __pos
Definition: O3prm.h:231
O3Label __superLabel
Definition: O3prm.h:233
gum::prm::o3prm::O3Type::~O3Type ( )

Definition at line 258 of file O3prm.cpp.

258 { GUM_DESTRUCTOR(O3Type); }

Member Function Documentation

bool & gum::prm::o3prm::O3Type::deprecated ( )

Definition at line 292 of file O3prm.cpp.

References __dep_flag.

292 { return __dep_flag; }
const bool & gum::prm::o3prm::O3Type::deprecated ( ) const

Definition at line 293 of file O3prm.cpp.

References __dep_flag.

293 { return __dep_flag; }
O3Type::LabelMap & gum::prm::o3prm::O3Type::labels ( )

Definition at line 286 of file O3prm.cpp.

References __labels.

Referenced by gum::prm::o3prm::O3TypeFactory< GUM_SCALAR >::__checkLabels().

286 { return __labels; }

+ Here is the caller graph for this function:

const O3Type::LabelMap & gum::prm::o3prm::O3Type::labels ( ) const

Definition at line 287 of file O3prm.cpp.

References __labels.

287 { return __labels; }
O3Label & gum::prm::o3prm::O3Type::name ( )

Definition at line 280 of file O3prm.cpp.

References __name.

Referenced by gum::prm::o3prm::O3TypeFactory< GUM_SCALAR >::__isPrimitiveType().

280 { return __name; }

+ Here is the caller graph for this function:

const O3Label & gum::prm::o3prm::O3Type::name ( ) const

Definition at line 281 of file O3prm.cpp.

References __name.

281 { return __name; }
O3Type & gum::prm::o3prm::O3Type::operator= ( const O3Type src)

Definition at line 260 of file O3prm.cpp.

References __dep_flag, __labels, __name, __pos, and __superLabel.

260  {
261  if (this == &src) { return *this; }
262  __pos = src.__pos;
263  __name = src.__name;
264  __superLabel = src.__superLabel;
265  __labels = src.__labels;
266  __dep_flag = src.__dep_flag;
267  return *this;
268  }
O3Position __pos
Definition: O3prm.h:231
O3Label __superLabel
Definition: O3prm.h:233
O3Type & gum::prm::o3prm::O3Type::operator= ( O3Type &&  src)

Definition at line 270 of file O3prm.cpp.

References __dep_flag, __labels, __name, __pos, and __superLabel.

270  {
271  if (this == &src) { return *this; }
272  __pos = std::move(src.__pos);
273  __name = std::move(src.__name);
274  __superLabel = std::move(src.__superLabel);
275  __labels = std::move(src.__labels);
276  __dep_flag = std::move(src.__dep_flag);
277  return *this;
278  }
O3Position __pos
Definition: O3prm.h:231
O3Label __superLabel
Definition: O3prm.h:233
O3Position & gum::prm::o3prm::O3Type::position ( )

Definition at line 289 of file O3prm.cpp.

References __pos.

289 { return __pos; }
O3Position __pos
Definition: O3prm.h:231
const O3Position & gum::prm::o3prm::O3Type::position ( ) const

Definition at line 290 of file O3prm.cpp.

References __pos.

290 { return __pos; }
O3Position __pos
Definition: O3prm.h:231
O3Label & gum::prm::o3prm::O3Type::superLabel ( )

Definition at line 283 of file O3prm.cpp.

References __superLabel.

Referenced by gum::prm::o3prm::O3TypeFactory< GUM_SCALAR >::__checkLabels().

283 { return __superLabel; }
O3Label __superLabel
Definition: O3prm.h:233

+ Here is the caller graph for this function:

const O3Label & gum::prm::o3prm::O3Type::superLabel ( ) const

Definition at line 284 of file O3prm.cpp.

References __superLabel.

284 { return __superLabel; }
O3Label __superLabel
Definition: O3prm.h:233

Member Data Documentation

bool gum::prm::o3prm::O3Type::__dep_flag
private

Definition at line 235 of file O3prm.h.

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

LabelMap gum::prm::o3prm::O3Type::__labels
private

Definition at line 234 of file O3prm.h.

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

O3Label gum::prm::o3prm::O3Type::__name
private

Definition at line 232 of file O3prm.h.

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

O3Position gum::prm::o3prm::O3Type::__pos
private

Definition at line 231 of file O3prm.h.

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

O3Label gum::prm::o3prm::O3Type::__superLabel
private

Definition at line 233 of file O3prm.h.

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


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