Mantid
|
A composite domain for MD functions. More...
#include <CompositeDomainMD.h>
Public Member Functions | |
CompositeDomainMD (const IMDWorkspace_const_sptr &ws, size_t maxDomainSize) | |
Create a composite domain from a IMDWorkspace. More... | |
const FunctionDomain & | getDomain (size_t i) const override |
Return i-th domain. More... | |
size_t | getNParts () const override |
Return the number of parts in the domain. More... | |
size_t | size () const override |
Return the total number of arguments in the domain. More... | |
~CompositeDomainMD () override | |
Destructor. More... | |
virtual const FunctionDomain & | getDomain (size_t i) const =0 |
Return i-th domain. More... | |
virtual size_t | getNParts () const =0 |
Return the number of parts in the domain. 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... | |
Protected Attributes | |
std::vector< std::unique_ptr< FunctionDomainMD > > | m_domains |
smaller parts of the domain More... | |
std::unique_ptr< IMDIterator > | m_iterator |
IMDIterator. More... | |
size_t | m_totalSize |
The total size of the domain. More... | |
A composite domain for MD functions.
Definition at line 28 of file CompositeDomainMD.h.
Mantid::API::CompositeDomainMD::CompositeDomainMD | ( | const IMDWorkspace_const_sptr & | ws, |
size_t | maxDomainSize | ||
) |
Create a composite domain from a IMDWorkspace.
ws | :: Pointer to a workspace. |
maxDomainSize | :: The maximum size each domain can have. |
Definition at line 23 of file CompositeDomainMD.cpp.
References m_domains, m_iterator, and m_totalSize.
|
overridedefault |
Destructor.
|
overridevirtual |
Return i-th domain.
Return i-th domain reset to its start.
Implements Mantid::API::CompositeDomain.
Definition at line 45 of file CompositeDomainMD.cpp.
References m_domains.
|
inlineoverridevirtual |
Return the number of parts in the domain.
Implements Mantid::API::CompositeDomain.
Definition at line 35 of file CompositeDomainMD.h.
|
inlineoverridevirtual |
Return the total number of arguments in the domain.
Implements Mantid::API::FunctionDomain.
Definition at line 33 of file CompositeDomainMD.h.
|
mutableprotected |
smaller parts of the domain
Definition at line 42 of file CompositeDomainMD.h.
Referenced by CompositeDomainMD(), and getDomain().
|
mutableprotected |
|
protected |
The total size of the domain.
Definition at line 41 of file CompositeDomainMD.h.
Referenced by CompositeDomainMD().