|
Mantid
|
An implementation of CompositeDomain. More...
#include <JointDomain.h>
Public Member Functions | |
| void | addDomain (const FunctionDomain_sptr &domain) |
| Add a new domain. 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 number of points in the domain. 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< FunctionDomain_sptr > | m_domains |
| Vector with member domains. More... | |
| void Mantid::API::JointDomain::addDomain | ( | const FunctionDomain_sptr & | domain | ) |
Add a new domain.
| domain | :: A shared pointer to a domain. |
Definition at line 31 of file JointDomain.cpp.
References m_domains.
|
overridevirtual |
Return i-th domain.
| i | :: An index of a domain. |
Implements Mantid::API::CompositeDomain.
Definition at line 25 of file JointDomain.cpp.
References m_domains.
|
overridevirtual |
Return the number of parts in the domain.
Implements Mantid::API::CompositeDomain.
Definition at line 21 of file JointDomain.cpp.
References m_domains.
|
overridevirtual |
Return the number of points in the domain.
Return the overall size the domain which is a sum of sizes of the member domains.
Implements Mantid::API::FunctionDomain.
Definition at line 16 of file JointDomain.cpp.
|
protected |
Vector with member domains.
Definition at line 38 of file JointDomain.h.
Referenced by addDomain(), getDomain(), getNParts(), and size().