11#include <boost/python/class.hpp>
25std::vector<std::string> spaceGroupSymbolsForNumber(
const SpaceGroupFactoryImpl &self,
size_t number) {
47 class_<SpaceGroupFactoryImpl, boost::noncopyable>(
"SpaceGroupFactoryImpl", no_init)
48 .def(
"isSubscribedSymbol", &isSubscribedSymbol, (arg(
"self"), arg(
"symbol")),
49 "Returns true if the space group the supplied symbol is subscribed.")
50 .def(
"isSubscribedNumber", &isSubscribedNumber, (arg(
"self"), arg(
"number")),
51 "Returns true if a space group with the given number is subscribed.")
52 .def(
"createSpaceGroup", &createSpaceGroup, (arg(
"self"), arg(
"symbol")),
"Creates a space group.")
53 .def(
"getAllSpaceGroupSymbols", &allSpaceGroupSymbols, arg(
"self"),
"Returns all subscribed space group symbols.")
55 "Returns all subscribed space group numbers.")
56 .def(
"subscribedSpaceGroupSymbols", &spaceGroupSymbolsForNumber, (arg(
"self"), arg(
"number")),
57 "Returns all space group symbols that are registered under the "
59 .def(
"getSpaceGroupsForPointGroup", &spaceGroupSymbolsForPointGroup, (arg(
"self"), arg(
"pointGroup")))
61 "Returns a reference to the SpaceGroupFactory singleton")
62 .staticmethod(
"Instance");
#define GET_POINTER_SPECIALIZATION(TYPE)
void export_SpaceGroupFactory()
std::vector< std::string > subscribedSpaceGroupSymbols() const
Returns a vector with all subscribed space group symbols.
std::vector< size_t > subscribedSpaceGroupNumbers() const
Returns a vector with all subscribed space group numbers.
SpaceGroup_const_sptr createSpaceGroup(const std::string &hmSymbol)
Creates a space group given the Hermann-Mauguin symbol, throws std::invalid_argument if symbol is not...
bool isSubscribed(const std::string &hmSymbol) const
Returns true if space group with given symbol is subscribed.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
std::shared_ptr< PointGroup > PointGroup_sptr
Shared pointer to a PointGroup.
std::shared_ptr< SpaceGroup > SpaceGroup_sptr