Mantid
|
#include <MDGeometryXMLBuilder.h>
Public Member Functions | |
void | addManyOrdinaryDimensions (const VecIMDDimension_sptr &manyDims) const |
Add many ordinary dimensions. More... | |
bool | addOrdinaryDimension (IMDDimension_const_sptr dimensionToAdd) const |
Add a dimension that is neither considered x, y, z or t. More... | |
bool | addTDimension (const IMDDimension_const_sptr &dimension) const |
Add t dimension. More... | |
bool | addXDimension (const IMDDimension_const_sptr &dimension) const |
Add x dimension. More... | |
bool | addYDimension (const IMDDimension_const_sptr &dimension) const |
Add y dimension. More... | |
bool | addZDimension (const IMDDimension_const_sptr &dimension) const |
Add z dimension. More... | |
const std::string & | create () const |
Create the xml. More... | |
bool | hasIntegratedTDimension () const |
Determine whether an integrated t dimension has been provided. More... | |
bool | hasTDimension () const |
Determine whether a valid t dimension has been provided. More... | |
bool | hasXDimension () const |
Determine if a valid x dimension has been provided. More... | |
bool | hasYDimension () const |
Determine whether a valid y dimension has been provided. More... | |
bool | hasZDimension () const |
Determine whether a valid z dimension has been provided. More... | |
MDGeometryBuilderXML () | |
Constructor. More... | |
MDGeometryBuilderXML (const MDGeometryBuilderXML &) | |
Copy constructor. More... | |
MDGeometryBuilderXML & | operator= (const MDGeometryBuilderXML &) |
Assignment Operator. More... | |
~MDGeometryBuilderXML () | |
Destructor. More... | |
Private Types | |
using | DimensionContainerType = std::vector< IMDDimension_const_sptr > |
Private Member Functions | |
void | applyPolicyChecking (const IMDDimension &dimensionToAdd) const |
Instantiate and apply the checking policy. More... | |
Private Attributes | |
bool | m_changed |
Flag indicating that some change in the inputs has occured. More... | |
std::string | m_lastResult |
Variable suports lazy calculation. More... | |
IMDDimension_const_sptr | m_spTDimension |
IMDDimension_const_sptr | m_spXDimension |
IMDDimension_const_sptr | m_spYDimension |
IMDDimension_const_sptr | m_spZDimension |
DimensionContainerType | m_vecDimensions |
Definition at line 30 of file MDGeometryXMLBuilder.h.
|
private |
Definition at line 82 of file MDGeometryXMLBuilder.h.
Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::MDGeometryBuilderXML |
Constructor.
Definition at line 267 of file MDGeometryXMLBuilder.cpp.
|
default |
Destructor.
References Mantid::DataObjects::create().
Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::MDGeometryBuilderXML | ( | const MDGeometryBuilderXML< CheckDimensionPolicy > & | other | ) |
Copy constructor.
Definition at line 58 of file MDGeometryXMLBuilder.cpp.
void Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::addManyOrdinaryDimensions | ( | const VecIMDDimension_sptr & | manyDims | ) | const |
Add many ordinary dimensions.
manyDims | :: Collection of dimensions to add as ordinary dimensions. |
Definition at line 51 of file MDGeometryXMLBuilder.cpp.
bool Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::addOrdinaryDimension | ( | IMDDimension_const_sptr | dimensionToAdd | ) | const |
Add a dimension that is neither considered x, y, z or t.
Add an ordinary dimension.
dimensionToAdd | :: The dimension to add to the geometry. |
Definition at line 30 of file MDGeometryXMLBuilder.cpp.
Referenced by Mantid::API::MDGeometry::getGeometryXML().
bool Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::addTDimension | ( | const IMDDimension_const_sptr & | dimension | ) | const |
Add t dimension.
Add an t dimension.
dimension | :: The dimension to add to the geometry. |
Definition at line 152 of file MDGeometryXMLBuilder.cpp.
Referenced by Mantid::API::MDGeometry::getGeometryXML().
bool Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::addXDimension | ( | const IMDDimension_const_sptr & | dimension | ) | const |
Add x dimension.
Add an x dimension.
dimension | :: The dimension to add to the geometry. |
Definition at line 96 of file MDGeometryXMLBuilder.cpp.
Referenced by Mantid::API::MDGeometry::getGeometryXML().
bool Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::addYDimension | ( | const IMDDimension_const_sptr & | dimension | ) | const |
Add y dimension.
Add an y dimension.
dimension | :: The dimension to add to the geometry. |
Definition at line 115 of file MDGeometryXMLBuilder.cpp.
Referenced by Mantid::API::MDGeometry::getGeometryXML().
bool Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::addZDimension | ( | const IMDDimension_const_sptr & | dimension | ) | const |
Add z dimension.
Add an z dimension.
dimension | :: The dimension to add to the geometry. |
Definition at line 134 of file MDGeometryXMLBuilder.cpp.
Referenced by Mantid::API::MDGeometry::getGeometryXML().
|
private |
Instantiate and apply the checking policy.
Check that the addition of dimensions conforms to the defined policy.
dimensionToAdd | :: The dimension to add to the geometry. |
Definition at line 85 of file MDGeometryXMLBuilder.cpp.
const std::string & Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::create |
Create the xml.
Builder creational method.
Processes added dimensions. creates xml string.
Definition at line 169 of file MDGeometryXMLBuilder.cpp.
Referenced by Mantid::API::MDGeometry::getGeometryXML().
bool Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::hasIntegratedTDimension |
Determine whether an integrated t dimension has been provided.
Definition at line 259 of file MDGeometryXMLBuilder.cpp.
bool Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::hasTDimension |
Determine whether a valid t dimension has been provided.
Definition at line 254 of file MDGeometryXMLBuilder.cpp.
bool Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::hasXDimension |
Determine if a valid x dimension has been provided.
Definition at line 242 of file MDGeometryXMLBuilder.cpp.
bool Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::hasYDimension |
Determine whether a valid y dimension has been provided.
Definition at line 246 of file MDGeometryXMLBuilder.cpp.
bool Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::hasZDimension |
Determine whether a valid z dimension has been provided.
Definition at line 250 of file MDGeometryXMLBuilder.cpp.
MDGeometryBuilderXML< CheckDimensionPolicy > & Mantid::Geometry::MDGeometryBuilderXML< CheckDimensionPolicy >::operator= | ( | const MDGeometryBuilderXML< CheckDimensionPolicy > & | other | ) |
Assignment Operator.
Definition at line 66 of file MDGeometryXMLBuilder.cpp.
|
mutableprivate |
Flag indicating that some change in the inputs has occured.
Triggers full recreation.
Definition at line 99 of file MDGeometryXMLBuilder.h.
|
mutableprivate |
Variable suports lazy calculation.
Definition at line 102 of file MDGeometryXMLBuilder.h.
|
mutableprivate |
Definition at line 92 of file MDGeometryXMLBuilder.h.
|
mutableprivate |
Definition at line 86 of file MDGeometryXMLBuilder.h.
|
mutableprivate |
Definition at line 88 of file MDGeometryXMLBuilder.h.
|
mutableprivate |
Definition at line 90 of file MDGeometryXMLBuilder.h.
|
mutableprivate |
Definition at line 84 of file MDGeometryXMLBuilder.h.