aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
gum::prm::o3prm::O3Instance Class Reference

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

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

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

Public Member Functions

 O3Instance ()
 
 O3Instance (const O3Instance &src)
 
 O3Instance (O3Instance &&src)
 
 ~O3Instance ()
 
O3Instanceoperator= (const O3Instance &src)
 
O3Instanceoperator= (O3Instance &&src)
 
O3Labeltype ()
 
const O3Labeltype () const
 
O3Labelname ()
 
const O3Labelname () const
 
O3Integersize ()
 
const O3Integersize () const
 
O3InstanceParameterListparameters ()
 
const O3InstanceParameterListparameters () const
 

Public Types

using O3InstanceParameterList = std::vector< O3InstanceParameter >
 

Detailed Description

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

Definition at line 788 of file O3prm.h.

Member Typedef Documentation

◆ O3InstanceParameterList

Definition at line 790 of file O3prm.h.

Constructor & Destructor Documentation

◆ O3Instance() [1/3]

gum::prm::o3prm::O3Instance::O3Instance ( )

Definition at line 1225 of file O3prm.cpp.

1225  {
1226  GUM_CONSTRUCTOR(O3Instance);
1227  ;
1228  }

◆ O3Instance() [2/3]

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

Definition at line 1230 of file O3prm.cpp.

1230  :
1231  _type_(src._type_), _name_(src._name_), _size_(src._size_),
1232  _parameters_(src._parameters_) {
1233  GUM_CONS_CPY(O3Instance);
1234  }
O3InstanceParameterList _parameters_
Definition: O3prm.h:816

◆ O3Instance() [3/3]

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

Definition at line 1236 of file O3prm.cpp.

1236  :
1237  _type_(std::move(src._type_)), _name_(std::move(src._name_)),
1238  _size_(std::move(src._size_)), _parameters_(std::move(src._parameters_)) {
1239  GUM_CONS_MOV(O3Instance);
1240  }
O3InstanceParameterList _parameters_
Definition: O3prm.h:816

◆ ~O3Instance()

gum::prm::o3prm::O3Instance::~O3Instance ( )

Definition at line 1242 of file O3prm.cpp.

1242  {
1243  GUM_DESTRUCTOR(O3Instance);
1244  ;
1245  }

Member Function Documentation

◆ name() [1/2]

O3Label & gum::prm::o3prm::O3Instance::name ( )

Definition at line 1271 of file O3prm.cpp.

1271 { return _name_; }

◆ name() [2/2]

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

Definition at line 1269 of file O3prm.cpp.

1269 { return _name_; }

◆ operator=() [1/2]

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

Definition at line 1247 of file O3prm.cpp.

1247  {
1248  if (this == &src) { return *this; }
1249  _type_ = src._type_;
1250  _name_ = src._name_;
1251  _size_ = src._size_;
1252  _parameters_ = src._parameters_;
1253  return *this;
1254  }
O3InstanceParameterList _parameters_
Definition: O3prm.h:816

◆ operator=() [2/2]

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

Definition at line 1256 of file O3prm.cpp.

1256  {
1257  if (this == &src) { return *this; }
1258  _type_ = std::move(src._type_);
1259  _name_ = std::move(src._name_);
1260  _size_ = std::move(src._size_);
1261  _parameters_ = std::move(src._parameters_);
1262  return *this;
1263  }
O3InstanceParameterList _parameters_
Definition: O3prm.h:816

◆ parameters() [1/2]

O3Instance::O3InstanceParameterList & gum::prm::o3prm::O3Instance::parameters ( )

Definition at line 1281 of file O3prm.cpp.

1281 { return _parameters_; }
O3InstanceParameterList _parameters_
Definition: O3prm.h:816

◆ parameters() [2/2]

const O3Instance::O3InstanceParameterList & gum::prm::o3prm::O3Instance::parameters ( ) const

Definition at line 1277 of file O3prm.cpp.

1277  {
1278  return _parameters_;
1279  }
O3InstanceParameterList _parameters_
Definition: O3prm.h:816

◆ size() [1/2]

O3Integer & gum::prm::o3prm::O3Instance::size ( )

Definition at line 1275 of file O3prm.cpp.

1275 { return _size_; }

◆ size() [2/2]

const O3Integer & gum::prm::o3prm::O3Instance::size ( ) const

Definition at line 1273 of file O3prm.cpp.

1273 { return _size_; }

◆ type() [1/2]

O3Label & gum::prm::o3prm::O3Instance::type ( )

Definition at line 1267 of file O3prm.cpp.

1267 { return _type_; }

◆ type() [2/2]

const O3Label & gum::prm::o3prm::O3Instance::type ( ) const

Definition at line 1265 of file O3prm.cpp.

1265 { return _type_; }

Member Data Documentation

◆ _name_

O3Label gum::prm::o3prm::O3Instance::_name_
private

Definition at line 814 of file O3prm.h.

◆ _parameters_

O3InstanceParameterList gum::prm::o3prm::O3Instance::_parameters_
private

Definition at line 816 of file O3prm.h.

◆ _size_

O3Integer gum::prm::o3prm::O3Instance::_size_
private

Definition at line 815 of file O3prm.h.

◆ _type_

O3Label gum::prm::o3prm::O3Instance::_type_
private

Definition at line 813 of file O3prm.h.


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