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

Public Member Functions

 DomPoint ()
 
 ~DomPoint ()
 
void clearElementX ()
 
void clearElementY ()
 
int elementX () const
 
int elementY () const
 
bool hasElementX () const
 
bool hasElementY () const
 
void read (QXmlStreamReader &reader)
 
void setElementX (int a)
 
void setElementY (int a)
 
void setText (const QString &s)
 
QString text () const
 
void write (QXmlStreamWriter &writer, const QString &tagName="") const
 

Private Types

enum  Child { X = 1 , Y = 2 }
 

Private Member Functions

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

Private Attributes

uint m_children
 
QString m_text
 
int m_x
 
int m_y
 

Detailed Description

Definition at line 2355 of file ui4_p.h.

Member Enumeration Documentation

◆ Child

enum DomPoint::Child
private
Enumerator

Definition at line 2386 of file ui4_p.h.

2386 { X = 1, Y = 2 };

Constructor & Destructor Documentation

◆ DomPoint() [1/2]

DomPoint::DomPoint ( )

◆ ~DomPoint()

DomPoint::~DomPoint ( )

◆ DomPoint() [2/2]

DomPoint::DomPoint ( const DomPoint other)
private

Member Function Documentation

◆ clear()

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

◆ clearElementX()

void DomPoint::clearElementX ( )

◆ clearElementY()

void DomPoint::clearElementY ( )

◆ elementX()

int DomPoint::elementX ( ) const
inline

Definition at line 2367 of file ui4_p.h.

2367 { return m_x; }
int m_x
Definition: ui4_p.h:2384

◆ elementY()

int DomPoint::elementY ( ) const
inline

Definition at line 2372 of file ui4_p.h.

2372 { return m_y; }
int m_y
Definition: ui4_p.h:2385

◆ hasElementX()

bool DomPoint::hasElementX ( ) const
inline

Definition at line 2369 of file ui4_p.h.

2369 { return m_children & X; }
uint m_children
Definition: ui4_p.h:2383

◆ hasElementY()

bool DomPoint::hasElementY ( ) const
inline

Definition at line 2374 of file ui4_p.h.

2374 { return m_children & Y; }

◆ operator=()

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

◆ read()

void DomPoint::read ( QXmlStreamReader &  reader)

◆ setElementX()

void DomPoint::setElementX ( int  a)

◆ setElementY()

void DomPoint::setElementY ( int  a)

◆ setText()

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

Definition at line 2363 of file ui4_p.h.

2363 { m_text = s; }
QString m_text
Definition: ui4_p.h:2378

◆ text()

QString DomPoint::text ( ) const
inline

Definition at line 2362 of file ui4_p.h.

2362 { return m_text; }

◆ write()

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

Member Data Documentation

◆ m_children

uint DomPoint::m_children
private

Definition at line 2383 of file ui4_p.h.

◆ m_text

QString DomPoint::m_text
private

Definition at line 2378 of file ui4_p.h.

◆ m_x

int DomPoint::m_x
private

Definition at line 2384 of file ui4_p.h.

◆ m_y

int DomPoint::m_y
private

Definition at line 2385 of file ui4_p.h.


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