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

#include <GridDomain.h>

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

Public Member Functions

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< std::shared_ptr< GridDomain > > m_grids
 composition of grids More...
 

Detailed Description

Definition at line 27 of file GridDomain.h.

Member Function Documentation

◆ getGrid()

GridDomain_sptr Mantid::API::GridDomain::getGrid ( size_t  index)

get the grid at specified index

Definition at line 40 of file GridDomain.cpp.

References Mantid::Kernel::Logger::error(), Mantid::API::g_log, index, and m_grids.

◆ nDimensions()

size_t Mantid::API::GridDomain::nDimensions ( )

number of dimensions in the grid

number of dimensions of the grid

Definition at line 32 of file GridDomain.cpp.

References m_grids, and n.

◆ reScale()

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

re-scale all grids

Definition at line 50 of file GridDomain.cpp.

References m_grids.

◆ size()

size_t Mantid::API::GridDomain::size ( ) const
overridevirtual

number of grid points

number of points in the grid

Implements Mantid::API::FunctionDomain.

Reimplemented in Mantid::API::GridDomain1D.

Definition at line 23 of file GridDomain.cpp.

References m_grids, and n.

Member Data Documentation

◆ m_grids

std::vector<std::shared_ptr<GridDomain> > Mantid::API::GridDomain::m_grids
private

composition of grids

Definition at line 40 of file GridDomain.h.

Referenced by getGrid(), nDimensions(), reScale(), and size().


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