Mantid
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
MantidQt::CustomDialogs::Operation Struct Reference

A struct describing a binary operation Note: The constructor takes an integer where 0 = intersection, 1 = union and 2 = difference. More...

#include <SampleShapeHelpers.h>

Public Member Functions

 Operation (int op=0)
 Default constructor. More...
 
QString toString (const QString &left, const QString &right) const
 Return the string that represnts the result of this operation. More...
 

Public Attributes

int binaryop
 The stored operation. More...
 

Detailed Description

A struct describing a binary operation Note: The constructor takes an integer where 0 = intersection, 1 = union and 2 = difference.

Definition at line 72 of file SampleShapeHelpers.h.

Constructor & Destructor Documentation

◆ Operation()

MantidQt::CustomDialogs::Operation::Operation ( int  op = 0)
inline

Default constructor.

Definition at line 74 of file SampleShapeHelpers.h.

Member Function Documentation

◆ toString()

QString Operation::toString ( const QString &  left,
const QString &  right 
) const

Return the string that represnts the result of this operation.

Take the arguments given and form a string using the current algebra.

Parameters
leftLeft-hand side of binary operation
rightRight-hand side of binary operation
Returns
A string representing the result of the operation on the arguments

Definition at line 147 of file SampleShapeHelpers.cpp.

References binaryop, left, and right.

Member Data Documentation

◆ binaryop

int MantidQt::CustomDialogs::Operation::binaryop

The stored operation.

Definition at line 80 of file SampleShapeHelpers.h.

Referenced by toString().


The documentation for this struct was generated from the following files: