aGrUM  0.14.2
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:

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 ()
 
O3Parameteroperator= (const O3Parameter &src)
 
O3Parameteroperator= (O3Parameter &&src)
 
PRMTypetype ()
 
PRMType type () const
 
O3Positionposition ()
 
const O3Positionposition () const
 
O3Labelname ()
 
const O3Labelname () const
 
O3Floatvalue ()
 
const O3Floatvalue () const
 

Public Types

enum  PRMType { PRMType::NONE, PRMType::INT, PRMType::FLOAT }
 

Detailed Description

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

Definition at line 392 of file O3prm.h.

Member Enumeration Documentation

◆ PRMType

Enumerator
NONE 
INT 
FLOAT 

Definition at line 394 of file O3prm.h.

394 { NONE, INT, FLOAT };

Constructor & Destructor Documentation

◆ O3Parameter() [1/5]

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

Definition at line 898 of file O3prm.cpp.

References gum::NONE.

◆ O3Parameter() [2/5]

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

Definition at line 902 of file O3prm.cpp.

◆ O3Parameter() [3/5]

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

◆ O3Parameter() [4/5]

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

Definition at line 919 of file O3prm.cpp.

919  :
920  __type(src.__type), __pos(src.__pos), __name(src.__name),
921  __value(src.__value) {
922  GUM_CONS_CPY(O3Parameter);
923  }

◆ O3Parameter() [5/5]

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

Definition at line 925 of file O3prm.cpp.

925  :
926  __type(std::move(src.__type)), __pos(std::move(src.__pos)),
927  __name(std::move(src.__name)), __value(std::move(src.__value)) {
928  GUM_CONS_MOV(O3Parameter);
929  }

◆ ~O3Parameter()

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

Definition at line 931 of file O3prm.cpp.

931 { GUM_DESTRUCTOR(O3Parameter); }

Member Function Documentation

◆ name() [1/2]

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

Definition at line 957 of file O3prm.cpp.

References __name.

957 { return __name; }

◆ name() [2/2]

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

Definition at line 958 of file O3prm.cpp.

References __name.

958 { return __name; }

◆ operator=() [1/2]

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

Definition at line 933 of file O3prm.cpp.

References __name, __pos, __type, and __value.

933  {
934  if (this == &src) { return *this; }
935  __type = src.__type;
936  __pos = src.__pos;
937  __name = src.__name;
938  __value = src.__value;
939  return *this;
940  }

◆ operator=() [2/2]

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

Definition at line 942 of file O3prm.cpp.

References __name, __pos, __type, and __value.

942  {
943  if (this == &src) { return *this; }
944  __type = std::move(src.__type);
945  __pos = std::move(src.__pos);
946  __name = std::move(src.__name);
947  __value = std::move(src.__value);
948  return *this;
949  }

◆ position() [1/2]

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

Definition at line 954 of file O3prm.cpp.

References __pos.

954 { return __pos; }

◆ position() [2/2]

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

Definition at line 955 of file O3prm.cpp.

References __pos.

955 { return __pos; }

◆ type() [1/2]

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

Definition at line 951 of file O3prm.cpp.

References __type.

951 { return __type; }

◆ type() [2/2]

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

Definition at line 952 of file O3prm.cpp.

References __type.

952 { return __type; }

◆ value() [1/2]

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

Definition at line 960 of file O3prm.cpp.

References __value.

960 { return __value; }

◆ value() [2/2]

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

Definition at line 961 of file O3prm.cpp.

References __value.

961 { return __value; }

Member Data Documentation

◆ __name

O3Label gum::prm::o3prm::O3Parameter::__name
private

Definition at line 425 of file O3prm.h.

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

◆ __pos

O3Position gum::prm::o3prm::O3Parameter::__pos
private

Definition at line 424 of file O3prm.h.

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

◆ __type

PRMType gum::prm::o3prm::O3Parameter::__type
private

Definition at line 423 of file O3prm.h.

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

◆ __value

O3Float gum::prm::o3prm::O3Parameter::__value
private

Definition at line 426 of file O3prm.h.

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


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