Mantid
|
#include <IsotropicAtomBraggScatterer.h>
Public Member Functions | |
IsotropicAtomBraggScattererParser (std::string scattererString) | |
Constructor for vector with IsotropicAtomBraggScatterers from a string. More... | |
std::vector< BraggScatterer_sptr > | operator() () const |
Operator that returns vector of IsotropicAtomBraggScatterers. More... | |
Private Member Functions | |
std::vector< std::string > | getCleanScattererTokens (const std::vector< std::string > &tokens) const |
Converts tokens for getScatterer method so they can be processed by factory. More... | |
BraggScatterer_sptr | getScatterer (const std::string &singleScatterer) const |
Returns IsotropicAtomBraggScatterer for string with format "Element x y z
occupancy u_iso". More... | |
Private Attributes | |
std::string | m_scattererString |
Definition at line 108 of file IsotropicAtomBraggScatterer.h.
Mantid::Geometry::IsotropicAtomBraggScattererParser::IsotropicAtomBraggScattererParser | ( | std::string | scattererString | ) |
Constructor for vector with IsotropicAtomBraggScatterers from a string.
The functor expects to be constructed from a string in the following format:
Element x y z occupancy u_iso; Element x y z occupancy u_iso; ...
It generates an IsotropicAtomBraggScatterer for each specified atom.
scattererString | :: String in the format specified above |
Definition at line 137 of file IsotropicAtomBraggScatterer.cpp.
|
private |
Converts tokens for getScatterer method so they can be processed by factory.
Definition at line 175 of file IsotropicAtomBraggScatterer.cpp.
Referenced by getScatterer().
|
private |
Returns IsotropicAtomBraggScatterer for string with format "Element x y z occupancy u_iso".
Definition at line 152 of file IsotropicAtomBraggScatterer.cpp.
References getCleanScattererTokens(), and Mantid::Kernel::SingletonHolder< T >::Instance().
std::vector< BraggScatterer_sptr > Mantid::Geometry::IsotropicAtomBraggScattererParser::operator() | ( | ) | const |
Operator that returns vector of IsotropicAtomBraggScatterers.
Definition at line 141 of file IsotropicAtomBraggScatterer.cpp.
References Mantid::Kernel::StringTokenizer::cbegin(), Mantid::Kernel::StringTokenizer::cend(), m_scattererString, Mantid::Kernel::StringTokenizer::size(), and Mantid::Kernel::StringTokenizer::TOK_TRIM.
|
private |
Definition at line 118 of file IsotropicAtomBraggScatterer.h.
Referenced by operator()().