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

Public Member Functions

 DomSize ()
 
 ~DomSize ()
 
void clearElementHeight ()
 
void clearElementWidth ()
 
int elementHeight () const
 
int elementWidth () const
 
bool hasElementHeight () const
 
bool hasElementWidth () const
 
void read (QXmlStreamReader &reader)
 
void setElementHeight (int a)
 
void setElementWidth (int 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

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

Private Attributes

uint m_children
 
int m_height
 
QString m_text
 
int m_width
 

Detailed Description

Definition at line 2562 of file ui4_p.h.

Member Enumeration Documentation

◆ Child

enum DomSize::Child
private
Enumerator
Width 
Height 

Definition at line 2593 of file ui4_p.h.

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

Constructor & Destructor Documentation

◆ DomSize() [1/2]

DomSize::DomSize ( )

◆ ~DomSize()

DomSize::~DomSize ( )

◆ DomSize() [2/2]

DomSize::DomSize ( const DomSize other)
private

Member Function Documentation

◆ clear()

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

◆ clearElementHeight()

void DomSize::clearElementHeight ( )

◆ clearElementWidth()

void DomSize::clearElementWidth ( )

◆ elementHeight()

int DomSize::elementHeight ( ) const
inline

Definition at line 2579 of file ui4_p.h.

2579 { return m_height; }
int m_height
Definition: ui4_p.h:2592

◆ elementWidth()

int DomSize::elementWidth ( ) const
inline

Definition at line 2574 of file ui4_p.h.

2574 { return m_width; }
int m_width
Definition: ui4_p.h:2591

◆ hasElementHeight()

bool DomSize::hasElementHeight ( ) const
inline

Definition at line 2581 of file ui4_p.h.

2581 { return m_children & Height; }
uint m_children
Definition: ui4_p.h:2590

◆ hasElementWidth()

bool DomSize::hasElementWidth ( ) const
inline

Definition at line 2576 of file ui4_p.h.

2576 { return m_children & Width; }

◆ operator=()

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

◆ read()

void DomSize::read ( QXmlStreamReader &  reader)

◆ setElementHeight()

void DomSize::setElementHeight ( int  a)

◆ setElementWidth()

void DomSize::setElementWidth ( int  a)

◆ setText()

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

Definition at line 2570 of file ui4_p.h.

2570 { m_text = s; }
QString m_text
Definition: ui4_p.h:2585

◆ text()

QString DomSize::text ( ) const
inline

Definition at line 2569 of file ui4_p.h.

2569 { return m_text; }

◆ write()

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

Member Data Documentation

◆ m_children

uint DomSize::m_children
private

Definition at line 2590 of file ui4_p.h.

◆ m_height

int DomSize::m_height
private

Definition at line 2592 of file ui4_p.h.

◆ m_text

QString DomSize::m_text
private

Definition at line 2585 of file ui4_p.h.

◆ m_width

int DomSize::m_width
private

Definition at line 2591 of file ui4_p.h.


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