aGrUM 3.2.0
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:
[legend]

Public Types

using O3InstanceParameterList = std::vector< O3InstanceParameter >

Public Member Functions

 O3Instance ()
 O3Instance (const O3Instance &src)
 O3Instance (O3Instance &&src)
 ~O3Instance ()
O3Instance & operator= (const O3Instance &src)
O3Instance & operator= (O3Instance &&src)
O3Label & type ()
const O3Label & type () const
O3Label & name ()
const O3Label & name () const
O3Integer & size ()
const O3Integer & size () const
O3InstanceParameterList & parameters ()
const O3InstanceParameterList & parameters () const

Private Attributes

O3Label _type_
O3Label _name_
O3Integer _size_
O3InstanceParameterList _parameters_

Detailed Description

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

Definition at line 813 of file O3prm.h.

Member Typedef Documentation

◆ O3InstanceParameterList

Definition at line 815 of file O3prm.h.

Constructor & Destructor Documentation

◆ O3Instance() [1/3]

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

Definition at line 1296 of file O3prm.cpp.

1296 {
1297 GUM_CONSTRUCTOR(O3Instance);
1298 ;
1299 }

References O3Instance().

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

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

◆ O3Instance() [2/3]

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

Definition at line 1301 of file O3prm.cpp.

1301 :
1302 _type_(src._type_), _name_(src._name_), _size_(src._size_),
1303 _parameters_(src._parameters_) {
1304 GUM_CONS_CPY(O3Instance);
1305 }
O3InstanceParameterList _parameters_
Definition O3prm.h:841

References O3Instance(), _name_, _parameters_, _size_, and _type_.

Here is the call graph for this function:

◆ O3Instance() [3/3]

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

Definition at line 1307 of file O3prm.cpp.

1307 :
1308 _type_(std::move(src._type_)), _name_(std::move(src._name_)),
1309 _size_(std::move(src._size_)), _parameters_(std::move(src._parameters_)) {
1310 GUM_CONS_MOV(O3Instance);
1311 }

References O3Instance(), _name_, _parameters_, _size_, and _type_.

Here is the call graph for this function:

◆ ~O3Instance()

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

Definition at line 1313 of file O3prm.cpp.

1313 {
1314 GUM_DESTRUCTOR(O3Instance);
1315 ;
1316 }

References O3Instance().

Here is the call graph for this function:

Member Function Documentation

◆ name() [1/2]

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

Definition at line 1342 of file O3prm.cpp.

1342{ return _name_; }

References _name_.

◆ name() [2/2]

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

Definition at line 1340 of file O3prm.cpp.

1340{ return _name_; }

References _name_.

◆ operator=() [1/2]

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

Definition at line 1318 of file O3prm.cpp.

1318 {
1319 if (this == &src) { return *this; }
1320 _type_ = src._type_;
1321 _name_ = src._name_;
1322 _size_ = src._size_;
1323 _parameters_ = src._parameters_;
1324 return *this;
1325 }

References O3Instance(), _name_, _parameters_, _size_, and _type_.

Here is the call graph for this function:

◆ operator=() [2/2]

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

Definition at line 1327 of file O3prm.cpp.

1327 {
1328 if (this == &src) { return *this; }
1329 _type_ = std::move(src._type_);
1330 _name_ = std::move(src._name_);
1331 _size_ = std::move(src._size_);
1332 _parameters_ = std::move(src._parameters_);
1333 return *this;
1334 }

References O3Instance(), _name_, _parameters_, _size_, and _type_.

Here is the call graph for this function:

◆ parameters() [1/2]

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

Definition at line 1352 of file O3prm.cpp.

1352{ return _parameters_; }

References _parameters_.

Referenced by gum::prm::o3prm::O3SystemFactory< GUM_SCALAR >::_checkParameters_().

Here is the caller graph for this function:

◆ parameters() [2/2]

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

Definition at line 1348 of file O3prm.cpp.

1348 {
1349 return _parameters_;
1350 }

References _parameters_.

◆ size() [1/2]

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

Definition at line 1346 of file O3prm.cpp.

1346{ return _size_; }

References _size_.

◆ size() [2/2]

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

Definition at line 1344 of file O3prm.cpp.

1344{ return _size_; }

References _size_.

◆ type() [1/2]

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

Definition at line 1338 of file O3prm.cpp.

1338{ return _type_; }

References _type_.

◆ type() [2/2]

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

Definition at line 1336 of file O3prm.cpp.

1336{ return _type_; }

References _type_.

Member Data Documentation

◆ _name_

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

Definition at line 839 of file O3prm.h.

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

◆ _parameters_

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

Definition at line 841 of file O3prm.h.

Referenced by O3Instance(), O3Instance(), operator=(), operator=(), parameters(), and parameters().

◆ _size_

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

Definition at line 840 of file O3prm.h.

Referenced by O3Instance(), O3Instance(), operator=(), operator=(), size(), and size().

◆ _type_

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

Definition at line 838 of file O3prm.h.

Referenced by O3Instance(), O3Instance(), operator=(), operator=(), type(), and type().


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