11#include <boost/python/class.hpp>
28 class_<PointGroupFactoryImpl, boost::noncopyable>(
"PointGroupFactoryImpl", no_init)
30 "Returns true of the point group with the given symbol is "
33 "Creates a point group if registered.")
34 .def(
"createPointGroupFromSpaceGroup", &getPointGroupFromSpaceGroup, (arg(
"self"), arg(
"group")),
35 "Creates the point group that corresponds to the given space group.")
36 .def(
"createPointGroupFromSpaceGroupSymbol", &getPointGroupFromSpaceGroupSymbol, (arg(
"self"), arg(
"group")),
37 "Creates a point group directly from the space group symbol.")
39 "Returns all registered point group symbols.")
41 "Returns all point groups registered for the given crystal system.")
43 "Returns a reference to the PointGroupFactory singleton")
44 .staticmethod(
"Instance");
void export_PointGroupFactory()
bool isSubscribed(const std::string &hmSymbol) const
PointGroup_sptr createPointGroupFromSpaceGroup(const SpaceGroup_const_sptr &spaceGroup)
PointGroup_sptr createPointGroup(const std::string &hmSymbol)
Creates a PointGroup object from its Hermann-Mauguin symbol.
std::vector< std::string > getAllPointGroupSymbols() const
Returns the Hermann-Mauguin symbols of all registered point groups.
std::vector< std::string > getPointGroupSymbols(const PointGroup::CrystalSystem &crystalSystem)
Returns the Hermann-Mauguin symbols of all point groups that belong to a certain crystal system.
A class for representing space groups, inheriting from Group.
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.