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

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

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

Collaboration diagram for gum::prm::o3prm::O3Parameter:
[legend]

Public Types

enum class  PRMType { NONE , INT , FLOAT }

Public Member Functions

 O3Parameter ()
 O3Parameter (const O3Position &pos, const O3Label &name, const O3Integer &value)
 O3Parameter (const O3Position &pos, const O3Label &name, const O3Float &value)
 O3Parameter (const O3Parameter &src)
 O3Parameter (O3Parameter &&src)
 ~O3Parameter ()
O3Parameter & operator= (const O3Parameter &src)
O3Parameter & operator= (O3Parameter &&src)
PRMType & type ()
PRMType type () const
O3Position & position ()
const O3Position & position () const
O3Label & name ()
const O3Label & name () const
O3Float & value ()
const O3Float & value () const

Private Attributes

PRMType _type_
O3Position _pos_
O3Label _name_
O3Float _value_

Detailed Description

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

Definition at line 415 of file O3prm.h.

Member Enumeration Documentation

◆ PRMType

Enumerator
NONE 
INT 
FLOAT 

Definition at line 417 of file O3prm.h.

417{ NONE, INT, FLOAT };

Constructor & Destructor Documentation

◆ O3Parameter() [1/5]

gum::prm::o3prm::O3Parameter::O3Parameter ( )

Definition at line 984 of file O3prm.cpp.

References O3Parameter(), _type_, and gum::NONE.

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

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

◆ O3Parameter() [2/5]

gum::prm::o3prm::O3Parameter::O3Parameter ( const O3Position & pos,
const O3Label & name,
const O3Integer & value )

Definition at line 988 of file O3prm.cpp.

References O3Parameter(), _name_, _pos_, _type_, _value_, name(), position(), and value().

Here is the call graph for this function:

◆ O3Parameter() [3/5]

gum::prm::o3prm::O3Parameter::O3Parameter ( const O3Position & pos,
const O3Label & name,
const O3Float & value )

Definition at line 994 of file O3prm.cpp.

References O3Parameter(), _name_, _pos_, _type_, _value_, name(), and value().

Here is the call graph for this function:

◆ O3Parameter() [4/5]

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

Definition at line 999 of file O3prm.cpp.

999 :
1000 _type_(src._type_), _pos_(src._pos_), _name_(src._name_), _value_(src._value_) {
1001 GUM_CONS_CPY(O3Parameter);
1002 }

References O3Parameter(), _name_, _pos_, _type_, and _value_.

Here is the call graph for this function:

◆ O3Parameter() [5/5]

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

Definition at line 1004 of file O3prm.cpp.

1004 :
1005 _type_(std::move(src._type_)), _pos_(std::move(src._pos_)), _name_(std::move(src._name_)),
1006 _value_(std::move(src._value_)) {
1007 GUM_CONS_MOV(O3Parameter);
1008 }

References O3Parameter(), _name_, _pos_, _type_, and _value_.

Here is the call graph for this function:

◆ ~O3Parameter()

gum::prm::o3prm::O3Parameter::~O3Parameter ( )

Definition at line 1010 of file O3prm.cpp.

1010 {
1011 GUM_DESTRUCTOR(O3Parameter);
1012 ;
1013 }

References O3Parameter().

Here is the call graph for this function:

Member Function Documentation

◆ name() [1/2]

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

Definition at line 1041 of file O3prm.cpp.

1041{ return _name_; }

References _name_.

Referenced by O3Parameter(), and O3Parameter().

Here is the caller graph for this function:

◆ name() [2/2]

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

Definition at line 1043 of file O3prm.cpp.

1043{ return _name_; }

References _name_.

◆ operator=() [1/2]

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

Definition at line 1015 of file O3prm.cpp.

1015 {
1016 if (this == &src) { return *this; }
1017 _type_ = src._type_;
1018 _pos_ = src._pos_;
1019 _name_ = src._name_;
1020 _value_ = src._value_;
1021 return *this;
1022 }

References O3Parameter(), _name_, _pos_, _type_, and _value_.

Here is the call graph for this function:

◆ operator=() [2/2]

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

Definition at line 1024 of file O3prm.cpp.

1024 {
1025 if (this == &src) { return *this; }
1026 _type_ = std::move(src._type_);
1027 _pos_ = std::move(src._pos_);
1028 _name_ = std::move(src._name_);
1029 _value_ = std::move(src._value_);
1030 return *this;
1031 }

References O3Parameter(), _name_, _pos_, _type_, and _value_.

Here is the call graph for this function:

◆ position() [1/2]

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

Definition at line 1037 of file O3prm.cpp.

1037{ return _pos_; }

References _pos_.

Referenced by O3Parameter().

Here is the caller graph for this function:

◆ position() [2/2]

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

Definition at line 1039 of file O3prm.cpp.

1039{ return _pos_; }

References _pos_.

◆ type() [1/2]

O3Parameter::PRMType & gum::prm::o3prm::O3Parameter::type ( )

Definition at line 1033 of file O3prm.cpp.

1033{ return _type_; }

References _type_.

◆ type() [2/2]

O3Parameter::PRMType gum::prm::o3prm::O3Parameter::type ( ) const

Definition at line 1035 of file O3prm.cpp.

1035{ return _type_; }

References _type_.

◆ value() [1/2]

O3Float & gum::prm::o3prm::O3Parameter::value ( )

Definition at line 1045 of file O3prm.cpp.

1045{ return _value_; }

References _value_.

Referenced by O3Parameter(), and O3Parameter().

Here is the caller graph for this function:

◆ value() [2/2]

const O3Float & gum::prm::o3prm::O3Parameter::value ( ) const

Definition at line 1047 of file O3prm.cpp.

1047{ return _value_; }

References _value_.

Member Data Documentation

◆ _name_

O3Label gum::prm::o3prm::O3Parameter::_name_
private

Definition at line 444 of file O3prm.h.

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

◆ _pos_

O3Position gum::prm::o3prm::O3Parameter::_pos_
private

◆ _type_

PRMType gum::prm::o3prm::O3Parameter::_type_
private

◆ _value_

O3Float gum::prm::o3prm::O3Parameter::_value_
private

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