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
STRUCTURE
residueChecker.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_STRUCTURE_RESIDUECHECKER_H
6
#define BALL_STRUCTURE_RESIDUECHECKER_H
7
8
#ifndef BALL_MATHS_COMMON_H
9
# include <
BALL/MATHS/common.h
>
10
#endif
11
12
#ifndef BALL_COMMON_H
13
# include <
BALL/common.h
>
14
#endif
15
16
#ifndef BALL_CONCEPT_PROCESSOR_H
17
# include <
BALL/CONCEPT/processor.h
>
18
#endif
19
20
#ifndef BALL_DATATYPE_BITVECTOR_H
21
# include <
BALL/DATATYPE/bitVector.h
>
22
#endif
23
24
namespace
BALL
25
{
26
class
FragmentDB;
27
class
Residue;
28
126
class
BALL_EXPORT
ResidueChecker
127
:
public
UnaryProcessor
<Residue>
128
{
129
public
:
130
131
BALL_CREATE
(
ResidueChecker
)
132
133
136
137
141
enum
TestType
142
{
144
MISSING_ATOMS = 0,
146
EXTRA_ATOMS
,
148
ELEMENTS
,
150
SUSPECT_BOND_LENGTHS
,
152
NON_INTEGRAL_NET_CHARGE
,
154
LARGE_CHARGES
,
156
LARGE_NET_CHARGE
,
158
NAN_POSITIONS
,
160
OVERLAPPING_ATOMS
,
162
STRONGLY_OVERLAPPING_ATOMS
,
164
DUPLICATE_ATOM_NAMES
,
166
UNKNOWN_RESIDUES
,
167
168
NUMBER_OF_TESTS
169
};
171
175
178
ResidueChecker
();
179
182
ResidueChecker
(
FragmentDB
& fragment_db);
183
186
ResidueChecker
(
const
ResidueChecker
& residue_checker);
187
190
virtual
~
ResidueChecker
();
192
196
199
void
enable(TestType t,
bool
enable =
true
) ;
200
203
void
disable(TestType t) ;
204
207
void
enableSelection
() { selection_ =
true
; }
208
211
void
disableSelection
() { selection_ =
false
; }
212
215
bool
isSelectionEnabled
() {
return
selection_; }
216
222
bool
getStatus()
const
;
223
224
225
228
bool
isEnabled(TestType t)
const
;
230
234
237
Processor::Result
operator () (
Residue
& residue);
238
241
bool
start();
242
245
bool
finish();
246
248
254
bool
checkAtomPositions(
const
Residue
& res,
const
String
& res_name)
255
;
256
259
bool
checkCharge(
const
Residue
& res,
const
String
& res_name)
260
;
261
264
bool
checkCompleteness(
const
Residue
& res,
const
Residue
& reference,
const
String
& res_name)
265
;
266
269
bool
checkTemplate(
const
Residue
& res,
const
Residue
& reference,
const
String
& res_name)
270
;
271
273
274
protected
:
275
276
// The fragment database
277
FragmentDB
*
fragment_db_
;
278
279
// Bool flag indicating whether any of the tests failed
280
bool
status_
;
281
282
// A bitvector containing the flags for the tests
283
BitVector
tests_
;
284
285
// If this flag is set, all atoms/residues having problems will be selected
286
bool
selection_
;
287
};
288
289
}
// namespace BALL
290
291
#endif // BALL_STRUCTURE_RESIDUE_CHECKER
BALL::ResidueChecker::STRONGLY_OVERLAPPING_ATOMS
Definition:
residueChecker.h:162
BALL_CREATE
#define BALL_CREATE(name)
Definition:
create.h:62
BALL::String
Definition:
string.h:61
BALL::ResidueChecker::OVERLAPPING_ATOMS
Definition:
residueChecker.h:160
BALL::BitVector
Definition:
bitVector.h:176
BALL::ResidueChecker::enableSelection
void enableSelection()
Definition:
residueChecker.h:207
BALL::ResidueChecker
Definition:
residueChecker.h:126
BALL::ResidueChecker::tests_
BitVector tests_
Definition:
residueChecker.h:283
BALL::ResidueChecker::status_
bool status_
Definition:
residueChecker.h:280
BALL::ResidueChecker::LARGE_CHARGES
Definition:
residueChecker.h:154
BALL::ResidueChecker::UNKNOWN_RESIDUES
Definition:
residueChecker.h:166
BALL::Residue
Definition:
residue.h:36
BALL::ResidueChecker::SUSPECT_BOND_LENGTHS
Definition:
residueChecker.h:150
BALL::FragmentDB
Definition:
fragmentDB.h:44
BALL::ResidueChecker::isSelectionEnabled
bool isSelectionEnabled()
Definition:
residueChecker.h:215
BALL::ResidueChecker::selection_
bool selection_
Definition:
residueChecker.h:286
BALL::ResidueChecker::LARGE_NET_CHARGE
Definition:
residueChecker.h:156
BALL::ResidueChecker::TestType
TestType
Definition:
residueChecker.h:141
BALL::ResidueChecker::DUPLICATE_ATOM_NAMES
Definition:
residueChecker.h:164
BALL::ResidueChecker::EXTRA_ATOMS
Definition:
residueChecker.h:146
BALL::UnaryProcessor
Definition:
processor.h:58
processor.h
BALL::ResidueChecker::disableSelection
void disableSelection()
Definition:
residueChecker.h:211
BALL::Processor::Result
int Result
Definition:
processor.h:36
bitVector.h
common.h
BALL::ResidueChecker::NON_INTEGRAL_NET_CHARGE
Definition:
residueChecker.h:152
BALL::ResidueChecker::ELEMENTS
Definition:
residueChecker.h:148
BALL::ResidueChecker::fragment_db_
FragmentDB * fragment_db_
Definition:
residueChecker.h:277
BALL::ResidueChecker::NAN_POSITIONS
Definition:
residueChecker.h:158
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
common.h
Generated by
1.8.7