10 #ifndef __FREECHEMICALFEATURE_H_13012005_1023__ 11 #define __FREECHEMICALFEATURE_H_13012005_1023__ 26 : d_id(id), d_family(family), d_type(type), d_position(loc) {}
30 : d_id(-1), d_family(family), d_type(
""), d_position(loc) {}
37 d_position(
RDGeom::Point3D(0.0, 0.0, 0.0)) {}
44 : d_id(other.
getId()),
47 d_position(other.
getPos()) {}
52 int getId()
const {
return d_id; }
55 const std::string &
getFamily()
const {
return d_family; }
58 const std::string &
getType()
const {
return d_type; }
64 void setId(
const int id) { d_id = id; }
67 void setFamily(
const std::string &family) { d_family = family; }
70 void setType(
const std::string &type) { d_type = type; }
Class for chemical features that do not orignate from molecules.
FreeChemicalFeature(const std::string &family, std::string type, const RDGeom::Point3D &loc, int id=-1)
start with everything specified
FreeChemicalFeature(const std::string &pickle)
void setFamily(const std::string &family)
set our family
RDGeom::Point3D getPos() const
return our position
void initFromString(const std::string &pickle)
initialize from a pickle string
std::string toString() const
returns a serialized form of the feature (a pickle)
int getId() const
return our id
abstract base class for chemical feature
const std::string & getType() const
return our type
void setId(const int id)
set our id
const std::string & getFamily() const
return our family
void setPos(const RDGeom::Point3D &loc)
set our position
void setType(const std::string &type)
set our type
FreeChemicalFeature(const FreeChemicalFeature &other)
FreeChemicalFeature(const std::string &family, const RDGeom::Point3D &loc)
start with family and location specified, leave the type blank
void pickle(const boost::shared_ptr< EnumerationStrategyBase > &enumerator, std::ostream &ss)
pickles a EnumerationStrategy and adds the results to a stream ss
FreeChemicalFeature()
start with everything blank