Mantid
|
Represent a domain of a very general type. More...
#include <FunctionDomainGeneral.h>
Public Member Functions | |
void | addColumn (const std::shared_ptr< Column > &column) |
Add a new column. All columns must have the same size. More... | |
size_t | columnCount () const |
Get the number of columns. More... | |
std::shared_ptr< Column > | getColumn (size_t i) const |
Get i-th column. More... | |
size_t | size () const override |
Return the number of arguments 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... | |
Private Attributes | |
std::vector< std::shared_ptr< Column > > | m_columns |
Columns containing function arguments. More... | |
Represent a domain of a very general type.
Definition at line 21 of file FunctionDomainGeneral.h.
void Mantid::API::FunctionDomainGeneral::addColumn | ( | const std::shared_ptr< Column > & | column | ) |
Add a new column. All columns must have the same size.
Definition at line 22 of file FunctionDomainGeneral.cpp.
size_t Mantid::API::FunctionDomainGeneral::columnCount | ( | ) | const |
Get the number of columns.
Definition at line 19 of file FunctionDomainGeneral.cpp.
References m_columns.
std::shared_ptr< Column > Mantid::API::FunctionDomainGeneral::getColumn | ( | size_t | i | ) | const |
Get i-th column.
i | :: Index of a column to get. |
Definition at line 36 of file FunctionDomainGeneral.cpp.
References m_columns.
|
overridevirtual |
Return the number of arguments in the domain.
Implements Mantid::API::FunctionDomain.
Definition at line 16 of file FunctionDomainGeneral.cpp.
References m_columns.
Referenced by addColumn().
|
private |
Columns containing function arguments.
Definition at line 34 of file FunctionDomainGeneral.h.
Referenced by addColumn(), columnCount(), getColumn(), and size().