Mantid
|
Structure to represent grouping information. More...
#include <GroupingLoader.h>
Public Member Functions | |
Grouping ()=default | |
Default constructor. More... | |
Grouping (const ITableWorkspace_sptr &table) | |
Construct a Grouping from a table. More... | |
ITableWorkspace_sptr | toTable () const |
Convert to grouping table. More... | |
~Grouping () | |
Destructor. More... | |
Public Attributes | |
std::string | defaultName |
std::string | description |
std::vector< std::string > | groupNames |
std::vector< std::string > | groups |
std::vector< double > | pairAlphas |
std::vector< std::string > | pairNames |
std::vector< std::pair< size_t, size_t > > | pairs |
Structure to represent grouping information.
Definition at line 17 of file GroupingLoader.h.
|
default |
Default constructor.
|
default |
Destructor.
Define destructor here because the type is complete.
Mantid::API::Grouping::Grouping | ( | const ITableWorkspace_sptr & | table | ) |
Construct a Grouping from a table.
table | :: [input] Table to construct from |
Definition at line 224 of file GroupingLoader.cpp.
References groupNames, groups, pairAlphas, pairNames, pairs, std::to_string(), and Mantid::Kernel::Strings::toString().
ITableWorkspace_sptr Mantid::API::Grouping::toTable | ( | ) | const |
Convert to grouping table.
Converts a grouping information to a grouping table.
Discard all the information not stored in a table - group names, pairing, description.
Definition at line 252 of file GroupingLoader.cpp.
References groups, Mantid::Kernel::SingletonHolder< T >::Instance(), and Mantid::Kernel::Strings::parseRange().
std::string Mantid::API::Grouping::defaultName |
Definition at line 27 of file GroupingLoader.h.
Referenced by MuonGroupingXMLHelper::groupingToXML(), and Mantid::API::GroupingLoader::loadGroupingFromXML().
std::string Mantid::API::Grouping::description |
Definition at line 26 of file GroupingLoader.h.
Referenced by MuonGroupingXMLHelper::groupingToXML(), and Mantid::API::GroupingLoader::loadGroupingFromXML().
std::vector<std::string> Mantid::API::Grouping::groupNames |
Definition at line 19 of file GroupingLoader.h.
Referenced by MuonGroupingXMLHelper::createXMLwithPairsAndGroups(), Grouping(), MuonGroupingXMLHelper::groupingToXML(), and Mantid::API::GroupingLoader::loadGroupingFromXML().
std::vector<std::string> Mantid::API::Grouping::groups |
Definition at line 20 of file GroupingLoader.h.
Referenced by MuonGroupingXMLHelper::createXMLwithPairsAndGroups(), Grouping(), MuonGroupingXMLHelper::groupingToXML(), Mantid::API::GroupingLoader::loadGroupingFromXML(), and toTable().
std::vector<double> Mantid::API::Grouping::pairAlphas |
Definition at line 24 of file GroupingLoader.h.
Referenced by MuonGroupingXMLHelper::createXMLwithPairsAndGroups(), Grouping(), MuonGroupingXMLHelper::groupingToXML(), and Mantid::API::GroupingLoader::loadGroupingFromXML().
std::vector<std::string> Mantid::API::Grouping::pairNames |
Definition at line 22 of file GroupingLoader.h.
Referenced by MuonGroupingXMLHelper::createXMLwithPairsAndGroups(), Grouping(), MuonGroupingXMLHelper::groupingToXML(), and Mantid::API::GroupingLoader::loadGroupingFromXML().
std::vector<std::pair<size_t, size_t> > Mantid::API::Grouping::pairs |
Definition at line 23 of file GroupingLoader.h.
Referenced by MuonGroupingXMLHelper::createXMLwithPairsAndGroups(), Grouping(), MuonGroupingXMLHelper::groupingToXML(), and Mantid::API::GroupingLoader::loadGroupingFromXML().