24 : m_iterator(ws->createIterator()) {
27 size_t maxDomainSizeDiv = maxDomainSize + 1;
31 for (
size_t i = 0; i < nParts - 1; ++i) {
32 size_t start = i * maxDomainSize;
33 m_domains[i] = std::make_unique<FunctionDomainMD>(ws, start, maxDomainSize);
35 size_t start = (nParts - 1) * maxDomainSize;
~CompositeDomainMD() override
Destructor.
CompositeDomainMD(const IMDWorkspace_const_sptr &ws, size_t maxDomainSize)
Create a composite domain from a IMDWorkspace.
std::vector< std::unique_ptr< FunctionDomainMD > > m_domains
smaller parts of the domain
const FunctionDomain & getDomain(size_t i) const override
Return i-th domain.
std::unique_ptr< IMDIterator > m_iterator
IMDIterator.
size_t m_totalSize
The total size of the domain.
Base class that represents the domain of a function.