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

An implementation of CompositeDomain. More...

#include <JointDomain.h>

Inheritance diagram for Mantid::API::JointDomain:
Mantid::API::CompositeDomain Mantid::API::FunctionDomain

Public Member Functions

void addDomain (const FunctionDomain_sptr &domain)
 Add a new domain. More...
 
const FunctionDomaingetDomain (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 FunctionDomaingetDomain (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_sptrm_domains
 Vector with member domains. More...
 

Detailed Description

An implementation of CompositeDomain.

Author
Roman Tolchenov, Tessella plc
Date
15/11/2011

Definition at line 26 of file JointDomain.h.

Member Function Documentation

◆ addDomain()

void Mantid::API::JointDomain::addDomain ( const FunctionDomain_sptr domain)

Add a new domain.

Parameters
domain:: A shared pointer to a domain.

Definition at line 31 of file JointDomain.cpp.

References m_domains.

◆ getDomain()

const FunctionDomain & Mantid::API::JointDomain::getDomain ( size_t  i) const
overridevirtual

Return i-th domain.

Parameters
i:: An index of a domain.

Implements Mantid::API::CompositeDomain.

Definition at line 25 of file JointDomain.cpp.

References m_domains.

◆ getNParts()

size_t Mantid::API::JointDomain::getNParts ( ) const
overridevirtual

Return the number of parts in the domain.

Implements Mantid::API::CompositeDomain.

Definition at line 21 of file JointDomain.cpp.

References m_domains.

◆ size()

size_t Mantid::API::JointDomain::size ( ) const
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.

References m_domains, and n.

Member Data Documentation

◆ m_domains

std::vector<FunctionDomain_sptr> Mantid::API::JointDomain::m_domains
protected

Vector with member domains.

Definition at line 38 of file JointDomain.h.

Referenced by addDomain(), getDomain(), getNParts(), and size().


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