11 #ifndef __FREECHEMICALFEATURE_H_13012005_1023__
12 #define __FREECHEMICALFEATURE_H_13012005_1023__
28 : d_id(id), d_family(family), d_type(type), d_position(loc) {}
32 : d_id(-1), d_family(family), d_type(
""), d_position(loc) {}
39 d_position(
RDGeom::Point3D(0.0, 0.0, 0.0)) {}
42 this->initFromString(
pickle);
46 : d_id(other.getId()),
47 d_family(other.getFamily()),
48 d_type(other.getType()),
49 d_position(other.getPos()) {}
54 int getId()
const {
return d_id; }
57 const std::string &
getFamily()
const {
return d_family; }
60 const std::string &
getType()
const {
return d_type; }
66 void setId(
const int id) { d_id = id; }
69 void setFamily(
const std::string &family) { d_family = family; }
72 void setType(
const std::string &type) { d_type = type; }
abstract base class for chemical feature
Class for chemical features that do not originate from molecules.
FreeChemicalFeature()
start with everything blank
void initFromString(const std::string &pickle)
initialize from a pickle string
FreeChemicalFeature(const std::string &family, const RDGeom::Point3D &loc)
start with family and location specified, leave the type blank
std::string toString() const
returns a serialized form of the feature (a pickle)
FreeChemicalFeature(const std::string &family, std::string type, const RDGeom::Point3D &loc, int id=-1)
start with everything specified
FreeChemicalFeature(const FreeChemicalFeature &other)
void setId(const int id)
set our id
void setType(const std::string &type)
set our type
FreeChemicalFeature(const std::string &pickle)
void setPos(const RDGeom::Point3D &loc)
set our position
const std::string & getFamily() const
return our family
const std::string & getType() const
return our type
void setFamily(const std::string &family)
set our family
RDGeom::Point3D getPos() const
return our position
int getId() const
return our id
#define RDKIT_CHEMICALFEATURES_EXPORT
RDKIT_CHEMREACTIONS_EXPORT void pickle(const boost::shared_ptr< EnumerationStrategyBase > &enumerator, std::ostream &ss)
pickles a EnumerationStrategy and adds the results to a stream ss