aGrUM  0.16.0
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 394 of file O3prm.h.

Member Enumeration Documentation

◆ PRMType

Enumerator
NONE 
INT 
FLOAT 

Definition at line 396 of file O3prm.h.

396 { NONE, INT, FLOAT };

Constructor & Destructor Documentation

◆ O3Parameter() [1/5]

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

Definition at line 900 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 904 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 921 of file O3prm.cpp.

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

◆ O3Parameter() [5/5]

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

Definition at line 927 of file O3prm.cpp.

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

◆ ~O3Parameter()

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

Definition at line 933 of file O3prm.cpp.

933 { GUM_DESTRUCTOR(O3Parameter); }

Member Function Documentation

◆ name() [1/2]

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

Definition at line 959 of file O3prm.cpp.

References __name.

959 { return __name; }

◆ name() [2/2]

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

Definition at line 960 of file O3prm.cpp.

References __name.

960 { return __name; }

◆ operator=() [1/2]

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

Definition at line 935 of file O3prm.cpp.

References __name, __pos, __type, and __value.

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

◆ operator=() [2/2]

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

Definition at line 944 of file O3prm.cpp.

References __name, __pos, __type, and __value.

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

◆ position() [1/2]

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

Definition at line 956 of file O3prm.cpp.

References __pos.

956 { return __pos; }

◆ position() [2/2]

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

Definition at line 957 of file O3prm.cpp.

References __pos.

957 { return __pos; }

◆ type() [1/2]

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

Definition at line 953 of file O3prm.cpp.

References __type.

953 { return __type; }

◆ type() [2/2]

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

Definition at line 954 of file O3prm.cpp.

References __type.

954 { return __type; }

◆ value() [1/2]

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

Definition at line 962 of file O3prm.cpp.

References __value.

962 { return __value; }

◆ value() [2/2]

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

Definition at line 963 of file O3prm.cpp.

References __value.

963 { return __value; }

Member Data Documentation

◆ __name

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

Definition at line 427 of file O3prm.h.

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

◆ __pos

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

Definition at line 426 of file O3prm.h.

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

◆ __type

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

Definition at line 425 of file O3prm.h.

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

◆ __value

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

Definition at line 428 of file O3prm.h.

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


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