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

Public Member Functions

 DomSizeF ()
 
 ~DomSizeF ()
 
void clearElementHeight ()
 
void clearElementWidth ()
 
double elementHeight () const
 
double elementWidth () const
 
bool hasElementHeight () const
 
bool hasElementWidth () const
 
void read (QXmlStreamReader &reader)
 
void setElementHeight (double a)
 
void setElementWidth (double a)
 
void setText (const QString &s)
 
QString text () const
 
void write (QXmlStreamWriter &writer, const QString &tagName="") const
 

Private Types

enum  Child { Width = 1 , Height = 2 }
 

Private Member Functions

 DomSizeF (const DomSizeF &other)
 
void clear (bool clear_all=true)
 
void operator= (const DomSizeF &other)
 

Private Attributes

uint m_children
 
double m_height
 
QString m_text
 
double m_width
 

Detailed Description

Definition at line 3119 of file ui4_p.h.

Member Enumeration Documentation

◆ Child

enum DomSizeF::Child
private
Enumerator
Width 
Height 

Definition at line 3150 of file ui4_p.h.

3150 { Width = 1, Height = 2 };
@ Height
Definition: ui4_p.h:3150
@ Width
Definition: ui4_p.h:3150

Constructor & Destructor Documentation

◆ DomSizeF() [1/2]

DomSizeF::DomSizeF ( )

◆ ~DomSizeF()

DomSizeF::~DomSizeF ( )

◆ DomSizeF() [2/2]

DomSizeF::DomSizeF ( const DomSizeF other)
private

Member Function Documentation

◆ clear()

void DomSizeF::clear ( bool  clear_all = true)
private

◆ clearElementHeight()

void DomSizeF::clearElementHeight ( )

◆ clearElementWidth()

void DomSizeF::clearElementWidth ( )

◆ elementHeight()

double DomSizeF::elementHeight ( ) const
inline

Definition at line 3136 of file ui4_p.h.

3136 { return m_height; }
double m_height
Definition: ui4_p.h:3149

◆ elementWidth()

double DomSizeF::elementWidth ( ) const
inline

Definition at line 3131 of file ui4_p.h.

3131 { return m_width; }
double m_width
Definition: ui4_p.h:3148

◆ hasElementHeight()

bool DomSizeF::hasElementHeight ( ) const
inline

Definition at line 3138 of file ui4_p.h.

3138 { return m_children & Height; }
uint m_children
Definition: ui4_p.h:3147

◆ hasElementWidth()

bool DomSizeF::hasElementWidth ( ) const
inline

Definition at line 3133 of file ui4_p.h.

3133 { return m_children & Width; }

◆ operator=()

void DomSizeF::operator= ( const DomSizeF other)
private

◆ read()

void DomSizeF::read ( QXmlStreamReader &  reader)

◆ setElementHeight()

void DomSizeF::setElementHeight ( double  a)

◆ setElementWidth()

void DomSizeF::setElementWidth ( double  a)

◆ setText()

void DomSizeF::setText ( const QString &  s)
inline

Definition at line 3127 of file ui4_p.h.

3127 { m_text = s; }
QString m_text
Definition: ui4_p.h:3142

◆ text()

QString DomSizeF::text ( ) const
inline

Definition at line 3126 of file ui4_p.h.

3126 { return m_text; }

◆ write()

void DomSizeF::write ( QXmlStreamWriter &  writer,
const QString &  tagName = "" 
) const

Member Data Documentation

◆ m_children

uint DomSizeF::m_children
private

Definition at line 3147 of file ui4_p.h.

◆ m_height

double DomSizeF::m_height
private

Definition at line 3149 of file ui4_p.h.

◆ m_text

QString DomSizeF::m_text
private

Definition at line 3142 of file ui4_p.h.

◆ m_width

double DomSizeF::m_width
private

Definition at line 3148 of file ui4_p.h.


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