BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Unit Class Reference

A physical unit. More...

Public Member Functions

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

Private Attributes

std::string m_name
 

Detailed Description

A physical unit.

Definition at line 27 of file Unit.h.

Constructor & Destructor Documentation

◆ Unit()

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

Definition at line 29 of file Unit.h.

29 : m_name(name) {}
std::string m_name
Definition: Unit.h:34
QString const & name(EShape k)
Definition: particles.cpp:21

Member Function Documentation

◆ getName()

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

Definition at line 31 of file Unit.h.

31 { return m_name; }

References m_name.

Referenced by RealParameter::unit().

◆ setUnit()

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

Definition at line 30 of file Unit.h.

30 { m_name = name; }

References m_name, and RealSpace::Particles::name().

Referenced by RealParameter::setUnit().

Here is the call graph for this function:

Member Data Documentation

◆ m_name

std::string Unit::m_name
private

Definition at line 34 of file Unit.h.

Referenced by getName(), and setUnit().


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