RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
ChemicalFeature.h
Go to the documentation of this file.
1//
2// Copyright (C) 2004-2008 Greg Landrum and Rational Discovery LLC
3//
4// @@ All Rights Reserved @@
5// This file is part of the RDKit.
6// The contents are covered by the terms of the BSD license
7// which is included in the file license.txt, found at the root
8// of the RDKit source tree.
9//
10#include <RDGeneral/export.h>
11#ifndef __CHEMICALFEATURE_H_11012005_1310__
12#define __CHEMICALFEATURE_H_11012005_1310__
13
14#include <Geometry/point.h>
16
17//------------------------------------------------------------------
18//! abstract base class for chemical feature
20 public:
22 virtual ~ChemicalFeature() {}
23
24 // returns the feature id
25 virtual int getId() const = 0;
26
27 // returns the type of the feature
28 virtual const std::string& getType() const = 0;
29
30 // returns the family of the feature
31 virtual const std::string& getFamily() const = 0;
32
33 // returns the position of the feature
34 virtual RDGeom::Point3D getPos() const = 0;
35};
36} // namespace ChemicalFeatures
37
38#endif
abstract base class for chemical feature
virtual const std::string & getType() const =0
virtual RDGeom::Point3D getPos() const =0
virtual const std::string & getFamily() const =0
virtual int getId() const =0