aGrUM  0.13.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

Enumerator
NONE 
INT 
FLOAT 

Definition at line 394 of file O3prm.h.

394 { NONE, INT, FLOAT };

Constructor & Destructor Documentation

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

Definition at line 898 of file O3prm.cpp.

References gum::NONE.

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

Definition at line 902 of file O3prm.cpp.

gum::prm::o3prm::O3Parameter::O3Parameter ( const O3Position pos,
const O3Label name,
const O3Float value 
)
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  }
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  }
gum::prm::o3prm::O3Parameter::~O3Parameter ( )

Definition at line 931 of file O3prm.cpp.

931 { GUM_DESTRUCTOR(O3Parameter); }

Member Function Documentation

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

Definition at line 957 of file O3prm.cpp.

References __name.

957 { return __name; }
const O3Label & gum::prm::o3prm::O3Parameter::name ( ) const

Definition at line 958 of file O3prm.cpp.

References __name.

958 { return __name; }
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  }
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  }
O3Position & gum::prm::o3prm::O3Parameter::position ( )

Definition at line 954 of file O3prm.cpp.

References __pos.

954 { return __pos; }
const O3Position & gum::prm::o3prm::O3Parameter::position ( ) const

Definition at line 955 of file O3prm.cpp.

References __pos.

955 { return __pos; }
O3Parameter::PRMType & gum::prm::o3prm::O3Parameter::type ( )

Definition at line 951 of file O3prm.cpp.

References __type.

951 { return __type; }
O3Parameter::PRMType gum::prm::o3prm::O3Parameter::type ( ) const

Definition at line 952 of file O3prm.cpp.

References __type.

952 { return __type; }
O3Float & gum::prm::o3prm::O3Parameter::value ( )

Definition at line 960 of file O3prm.cpp.

References __value.

960 { return __value; }
const O3Float & gum::prm::o3prm::O3Parameter::value ( ) const

Definition at line 961 of file O3prm.cpp.

References __value.

961 { return __value; }

Member Data Documentation

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

Definition at line 425 of file O3prm.h.

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

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

Definition at line 424 of file O3prm.h.

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

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

Definition at line 423 of file O3prm.h.

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

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: