Last change
on this file since e7e088 was e7e088, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
Added Descriptor that allows querying of atoms by their type
|
-
Property mode
set to
100644
|
File size:
434 bytes
|
Line | |
---|
1 | #ifndef ATOMIDDESCRIPTOR_IMPL_HPP
|
---|
2 | #define ATOMIDDESCRIPTOR_IMPL_HPP
|
---|
3 |
|
---|
4 | #include "Descriptors/AtomDescriptor_impl.hpp"
|
---|
5 |
|
---|
6 | class AtomIdDescriptor_impl : public AtomDescriptor_impl
|
---|
7 | {
|
---|
8 | public:
|
---|
9 | AtomIdDescriptor_impl(int _id);
|
---|
10 | virtual ~AtomIdDescriptor_impl();
|
---|
11 |
|
---|
12 | bool predicate(std::pair<int,atom*> atom);
|
---|
13 |
|
---|
14 | protected:
|
---|
15 | virtual atom *find();
|
---|
16 | virtual std::vector<atom*> findAll();
|
---|
17 | private:
|
---|
18 | int id;
|
---|
19 | };
|
---|
20 |
|
---|
21 | #endif //ATOMIDDESCRIPTOR_IMPL_HPP
|
---|
Note:
See
TracBrowser
for help on using the repository browser.