BALL
1.4.79
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
include
BALL
QSAR
connectivityBase.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2: -*-
2
// vi: set ts=2:
3
//
4
//
5
6
#ifndef BALL_QSAR_CONNECTIVITYBASE_H
7
#define BALL_QSAR_CONNECTIVITYBASE_H
8
9
#ifndef BALL_COMMON_GLOBAL_H
10
#include <
BALL/COMMON/global.h
>
11
#endif
12
13
#ifndef BALL_QSAR_DESCRIPTOR_H
14
#include <
BALL/QSAR/descriptor.h
>
15
#endif
16
17
namespace
BALL
18
{
19
// forward declarations
20
template
<
typename
Key,
typename
Value>
class
HashMap;
21
25
class
BALL_EXPORT
ConnectivityBase
26
:
public
Descriptor
27
{
28
public
:
29
35
ConnectivityBase
();
36
39
ConnectivityBase
(
const
ConnectivityBase
& cb);
40
43
ConnectivityBase
(
const
String
& name);
44
47
ConnectivityBase
(
const
String
& name,
const
String
& unit);
48
51
virtual
~
ConnectivityBase
();
53
59
virtual
ConnectivityBase
& operator = (
const
ConnectivityBase
& cb);
61
65
void
computeAllDescriptors(
AtomContainer
& ac);
67
68
protected
:
69
73
bool
isValid_(
AtomContainer
& ac);
75
79
void
calculate_(
AtomContainer
& ac);
80
81
83
84
85
private
:
86
87
/*_ @name Accessors
88
*/
90
/*_ Dijkstra recursion. Performs a single source shortest path approach
91
@param distances to the other nodes are stored in referenced vector<double>
92
@param Atom which acts as source atom
93
@param indices map, which maps for each atom a index for the dist vector
94
*/
95
void
recursion_(std::vector<double>& dists,
const
Atom
* source,
HashMap<const Atom*, Size>
& index_map);
97
98
};
99
100
}
// namespace BALL
101
102
#endif
BALL::ConnectivityBase
Definition:
connectivityBase.h:25
BALL::String
Definition:
string.h:61
BALL::AtomContainer
Definition:
atomContainer.h:29
descriptor.h
BALL::Descriptor
Definition:
descriptor.h:25
global.h
BALL::Atom
Definition:
atom.h:87
BALL::HashMap
HashMap class based on the STL map (containing serveral convenience functions)
Definition:
hashMap.h:73
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
Generated by
1.8.7