source: molecuilder/src/Descriptors/AtomIdDescriptor.hpp@ 973c03

Last change on this file since 973c03 was 973c03, checked in by Tillmann Crueger <crueger@…>, 16 years ago

Improved Descriptor mechanism to allow calculations using descriptors.

  • Property mode set to 100644
File size: 520 bytes
Line 
1/*
2 * AtomIdDescriptor.hpp
3 *
4 * Created on: Feb 5, 2010
5 * Author: crueger
6 */
7
8#ifndef ATOMIDDESCRIPTOR_HPP_
9#define ATOMIDDESCRIPTOR_HPP_
10
11#include "Descriptors/AtomDescriptor.hpp"
12
13class AtomIdDescriptor : public AtomDescriptor
14{
15public:
16 AtomIdDescriptor(int _id);
17 virtual ~AtomIdDescriptor();
18
19 bool predicate(std::pair<int,atom*> atom);
20
21 virtual desc_ptr clone() const;
22
23protected:
24#if 0
25 atom *find();
26 std::vector<atom*> findAll();
27#endif
28private:
29 int id;
30};
31
32#endif /* ATOMIDDESCRIPTOR_HPP_ */
Note: See TracBrowser for help on using the repository browser.