ADTF
Loading...
Searching...
No Matches
ddl::dd::datamodel::Unit::RefUnit Class Reference

datamodel for the refUnit More...

#include <datamodel_units.h>

Public Member Functions

 RefUnit ()
 default CTOR
 
 RefUnit (const RefUnit &)=default
 copy CTOR
 
 RefUnit (RefUnit &&)=default
 move CTOR
 
RefUnitoperator= (const RefUnit &)=default
 copy assignment operator
 
RefUnitoperator= (RefUnit &&)=default
 move assignment operator
 
 RefUnit (std::string unit_name, int32_t power, std::string prefix_name)
 CTOR.
 
bool operator== (const RefUnit &other) const
 equality operator.
 
bool operator!= (const RefUnit &other) const
 non equality operator.
 
const std::string & getUnitName () const
 Get the Unit Name.
 
int32_t getPower () const
 Get the Power.
 
const std::string & getPrefixName () const
 Get the Prefix Name.
 

Detailed Description

datamodel for the refUnit

Constructor & Destructor Documentation

◆ RefUnit()

ddl::dd::datamodel::Unit::RefUnit::RefUnit ( std::string unit_name,
int32_t power,
std::string prefix_name )

CTOR.

Parameters
unit_namethe refunit name (must be a base unit!)
powerthe power of the refunit
prefix_namethe prefix name (must be a unit prefix)

Member Function Documentation

◆ getPower()

int32_t ddl::dd::datamodel::Unit::RefUnit::getPower ( ) const

Get the Power.

Returns
int32_t

◆ getPrefixName()

const std::string & ddl::dd::datamodel::Unit::RefUnit::getPrefixName ( ) const

Get the Prefix Name.

Returns
const std::string&

◆ getUnitName()

const std::string & ddl::dd::datamodel::Unit::RefUnit::getUnitName ( ) const

Get the Unit Name.

Returns
const std::string&

◆ operator!=()

bool ddl::dd::datamodel::Unit::RefUnit::operator!= ( const RefUnit & other) const

non equality operator.

Parameters
otherthe other refunit to compare this refunit to.
Returns
false the refunit are equal.
true the refunit are not equal.

◆ operator=() [1/2]

RefUnit & ddl::dd::datamodel::Unit::RefUnit::operator= ( const RefUnit & )
default

copy assignment operator

Returns
RefUnit&

◆ operator=() [2/2]

RefUnit & ddl::dd::datamodel::Unit::RefUnit::operator= ( RefUnit && )
default

move assignment operator

Returns
RefUnit&

◆ operator==()

bool ddl::dd::datamodel::Unit::RefUnit::operator== ( const RefUnit & other) const

equality operator.

Parameters
otherthe other refunit to compare this refunit to.
Returns
true the refunit are equal.
false the refunit are not equal.

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