BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Unit Class Reference
Collaboration diagram for Unit:

Public Member Functions

 Unit (const std::string &name="")
 
void setUnit (const std::string &name)
 
const std::string & getName () const
 

Private Attributes

std::string m_name
 

Detailed Description

A physical unit.

Definition at line 22 of file Unit.h.

Constructor & Destructor Documentation

◆ Unit()

Unit::Unit ( const std::string &  name = "")
inlineexplicit

Definition at line 25 of file Unit.h.

25 : m_name(name) {}
std::string m_name
Definition: Unit.h:30

Member Function Documentation

◆ setUnit()

void Unit::setUnit ( const std::string &  name)
inline

Definition at line 26 of file Unit.h.

26 { m_name = name; }

References m_name.

Referenced by RealParameter::setUnit().

◆ getName()

const std::string& Unit::getName ( ) const
inline

Definition at line 27 of file Unit.h.

27 { return m_name; }

References m_name.

Referenced by RealParameter::unit().

Member Data Documentation

◆ m_name

std::string Unit::m_name
private

Definition at line 30 of file Unit.h.

Referenced by getName(), and setUnit().


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