OpenCog Framework
Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
26
#include <
opencog/atomspace/AttentionValue.h
>
27
#include <
opencog/atomspace/FixedIntegerIndex.h
>
28
29
namespace
opencog
30
{
35
class
AtomTable;
36
42
class
ImportanceIndex
:
public
FixedIntegerIndex
43
{
44
public
:
45
ImportanceIndex
(
void
);
46
void
insertAtom
(
Atom
*);
47
void
removeAtom
(
Atom
*);
48
56
void
updateImportance
(
Atom
*,
int
);
57
58
UnorderedHandleSet
getHandleSet
(
const
AtomTable
*,
59
AttentionValue::sti_t
,
60
AttentionValue::sti_t
)
const
;
61
70
static
unsigned
int
importanceBin
(
short
);
71
};
72
74
}
//namespace opencog
75
76
#endif // _OPENCOG_IMPORTANCEINDEX_H
opencog::ImportanceIndex
Definition:
ImportanceIndex.h:42
FixedIntegerIndex.h
AttentionValue.h
opencog::ImportanceIndex::removeAtom
void removeAtom(Atom *)
Definition:
ImportanceIndex.cc:66
opencog::Atom
Definition:
Atom.h:72
opencog::AtomTable
Definition:
AtomTable.h:79
opencog::ImportanceIndex::importanceBin
static unsigned int importanceBin(short)
Definition:
ImportanceIndex.cc:43
opencog::AttentionValue::sti_t
short sti_t
short-term importance type
Definition:
AttentionValue.h:48
opencog::ImportanceIndex::ImportanceIndex
ImportanceIndex(void)
Definition:
ImportanceIndex.cc:38
opencog::ImportanceIndex::updateImportance
void updateImportance(Atom *, int)
Definition:
ImportanceIndex.cc:50
opencog::UnorderedHandleSet
std::unordered_set< Handle, handle_hash > UnorderedHandleSet
a hash that associates the handle to its unique identificator
Definition:
Handle.h:250
opencog::ImportanceIndex::getHandleSet
UnorderedHandleSet getHandleSet(const AtomTable *, AttentionValue::sti_t, AttentionValue::sti_t) const
Definition:
ImportanceIndex.cc:73
opencog::ImportanceIndex::insertAtom
void insertAtom(Atom *)
Definition:
ImportanceIndex.cc:59
opencog::FixedIntegerIndex
Definition:
FixedIntegerIndex.h:43
opencog
atomspace
ImportanceIndex.h
Generated on Sat Aug 22 2015 21:00:13 for OpenCog Framework by
1.8.6