OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ImportanceIndex.h
Go to the documentation of this file.
1 /*
2  * opencog/atomspace/ImportanceIndex.h
3  *
4  * Copyright (C) 2008-2011 OpenCog Foundation
5  * All Rights Reserved
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License v3 as
9  * published by the Free Software Foundation and including the exceptions
10  * at http://opencog.org/wiki/Licenses
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU Affero General Public License
18  * along with this program; if not, write to:
19  * Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 
23 #ifndef _OPENCOG_IMPORTANCEINDEX_H
24 #define _OPENCOG_IMPORTANCEINDEX_H
25 
28 
29 namespace opencog
30 {
35 class AtomTable;
36 
43 {
44 public:
45  ImportanceIndex(void);
46  void insertAtom(Atom*);
47  void removeAtom(Atom*);
48 
56  void updateImportance(Atom*, int);
57 
60  AttentionValue::sti_t) const;
61 
70  static unsigned int importanceBin(short);
71 };
72 
74 } //namespace opencog
75 
76 #endif // _OPENCOG_IMPORTANCEINDEX_H
static unsigned int importanceBin(short)
short sti_t
short-term importance type
void updateImportance(Atom *, int)
std::unordered_set< Handle, handle_hash > UnorderedHandleSet
a hash that associates the handle to its unique identificator
Definition: Handle.h:250
UnorderedHandleSet getHandleSet(const AtomTable *, AttentionValue::sti_t, AttentionValue::sti_t) const