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

#include <GridDomain1D.h>

Inheritance diagram for Mantid::API::GridDomain1D:
Mantid::API::GridDomain Mantid::API::FunctionDomain

Public Member Functions

std::vector< double > & getPoints ()
 
void initialize (const double startX, const double endX, const size_t n, const std::string &scaling)
 initialize More...
 
size_t nDimensions ()
 number of dimensions in the grid More...
 
void reScale (const std::string &scaling)
 
size_t size () const override
 number of grid point s More...
 
- Public Member Functions inherited from Mantid::API::GridDomain
std::shared_ptr< GridDomaingetGrid (size_t index)
 get the grid at specified index More...
 
size_t nDimensions ()
 number of dimensions in the grid More...
 
void reScale (const std::string &scaling)
 re-scale all grids More...
 
size_t size () const override
 number of grid points 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 Attributes

std::vector< double > m_points
 
std::string m_scaling
 

Detailed Description

Definition at line 26 of file GridDomain1D.h.

Member Function Documentation

◆ getPoints()

std::vector< double > & Mantid::API::GridDomain1D::getPoints ( )
inline

Definition at line 35 of file GridDomain1D.h.

◆ initialize()

void Mantid::API::GridDomain1D::initialize ( const double  startX,
const double  endX,
const size_t  n,
const std::string &  scaling 
)

initialize

Definition at line 18 of file GridDomain1D.cpp.

References m_points, n, and reScale().

◆ nDimensions()

size_t Mantid::API::GridDomain1D::nDimensions ( )
inline

number of dimensions in the grid

Definition at line 33 of file GridDomain1D.h.

◆ reScale()

void Mantid::API::GridDomain1D::reScale ( const std::string &  scaling)

Definition at line 25 of file GridDomain1D.cpp.

References Mantid::Kernel::SingletonHolder< T >::Instance(), m_points, and m_scaling.

Referenced by initialize().

◆ size()

size_t Mantid::API::GridDomain1D::size ( ) const
inlineoverridevirtual

number of grid point s

Reimplemented from Mantid::API::GridDomain.

Definition at line 31 of file GridDomain1D.h.

Member Data Documentation

◆ m_points

std::vector<double> Mantid::API::GridDomain1D::m_points
private

Definition at line 39 of file GridDomain1D.h.

Referenced by initialize(), and reScale().

◆ m_scaling

std::string Mantid::API::GridDomain1D::m_scaling
private

Definition at line 38 of file GridDomain1D.h.

Referenced by reScale().


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