25 if (expected->name() != candidate->name()) {
27 }
else if (expected->type() != candidate->type()) {
48 for (
size_t i = 0; i < nCols; i++) {
#define DECLARE_WORKSPACE(classname)
ITableWorkspace is an implementation of Workspace in which the data are organised in columns of same ...
virtual Column_sptr getColumn(const std::string &name)=0
Gets the shared pointer to a column by name.
virtual size_t columnCount() const =0
Number of columns in the workspace.
Variation on the TableWorkspace with a set of pre-defined columns used to store diffs on Workspaces.
static bool isMementoWorkspace(const Mantid::API::ITableWorkspace &candidate)
Determines whether a given table workspace has columns in the same order, and exactly matching those ...
MementoTableWorkspace(int nRows=0)
Constructor.
static bool expectedColumn(const Mantid::API::Column_const_sptr &expected, const Mantid::API::Column_const_sptr &candidate)
Determines whether the provided column has the same name and type as expected.
TableWorkspace is an implementation of Workspace in which the data are organised in columns of same s...
size_t columnCount() const override
Number of columns in the workspace.
API::Column_sptr addColumn(const std::string &type, const std::string &name) override
Creates a new column.
API::Column_sptr getColumn(const std::string &name) override
Gets the shared pointer to a column.
std::shared_ptr< const Column > Column_const_sptr
Helper class which provides the Collimation Length for SANS instruments.