Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
Mantid::API::FunctionDomain1DView Class Reference

1D domain - a wrapper around an array of doubles. More...

#include <FunctionDomain1D.h>

Inheritance diagram for Mantid::API::FunctionDomain1DView:
Mantid::API::FunctionDomain1D Mantid::API::FunctionDomain

Public Member Functions

 FunctionDomain1DView (const double *x, size_t n)
 Creates a FunctionDomain1DView pointing to an array of doubles of size n. More...
 
- Public Member Functions inherited from Mantid::API::FunctionDomain1D
 FunctionDomain1D (const FunctionDomain1D &right)=delete
 copying is not allowed. More...
 
int getPeakRadius () const
 Get the peak radius. More...
 
const double * getPointerAt (size_t i) const
 Get a pointer to i-th value. More...
 
FunctionDomain1Doperator= (const FunctionDomain1D &)=delete
 copying is not allowed. More...
 
double operator[] (size_t i) const
 Get an x value. More...
 
void setPeakRadius (int radius)
 Set a peak radius to pass to peak functions. More...
 
size_t size () const override
 Return the number of arguments in the domain. More...
 
std::vector< double > toVector () const
 Convert to a vector. More...
 
- Public Member Functions inherited from Mantid::API::FunctionDomain
virtual void reset () const
 Reset the the domain so it can be reused. More...
 
virtual size_t size () const =0
 Return the number of points in the domain. More...
 
virtual ~FunctionDomain ()=default
 Virtual destructor. More...
 

Private Member Functions

 FunctionDomain1DView (const FunctionDomain1DView &)
 Private copy constructor - copying is not allowed. More...
 
FunctionDomain1DViewoperator= (const FunctionDomain1DView &)
 Private copy assignment operator - copying is not allowed. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Mantid::API::FunctionDomain1D
 FunctionDomain1D (const double *x, size_t n)
 Protected constructor, shouldn't be created directly. More...
 
void resetData (const double *x, size_t n)
 Reset the pointer and size of the domain. More...
 

Detailed Description

1D domain - a wrapper around an array of doubles.

Definition at line 98 of file FunctionDomain1D.h.

Constructor & Destructor Documentation

◆ FunctionDomain1DView() [1/2]

Mantid::API::FunctionDomain1DView::FunctionDomain1DView ( const double *  x,
size_t  n 
)
inline

Creates a FunctionDomain1DView pointing to an array of doubles of size n.

Parameters
x:: The start of the array.
n:: The size of the array.

Definition at line 105 of file FunctionDomain1D.h.

References Mantid::Geometry::x.

◆ FunctionDomain1DView() [2/2]

Mantid::API::FunctionDomain1DView::FunctionDomain1DView ( const FunctionDomain1DView )
private

Private copy constructor - copying is not allowed.

Member Function Documentation

◆ operator=()

FunctionDomain1DView & Mantid::API::FunctionDomain1DView::operator= ( const FunctionDomain1DView )
private

Private copy assignment operator - copying is not allowed.


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