BALL
1.5.0
Loading...
Searching...
No Matches
include
BALL
CONCEPT
molecularInformation.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_CONCEPT_MOLECULARINFORMATION_H
6
#define BALL_CONCEPT_MOLECULARINFORMATION_H
7
8
#ifndef BALL_CONCEPT_COMPOSITE_H
9
# include <
BALL/CONCEPT/composite.h
>
10
#endif
11
12
namespace
BALL
13
{
14
class
Atom
;
15
21
class
BALL_EXPORT
MolecularInformation
22
:
public
Visitor
<Composite>
23
{
24
public
:
25
29
32
enum
Type
33
{
35
TYPE__UNKNOWN
= -1,
36
38
TYPE__SYSTEM
= 0,
39
41
TYPE__PROTEIN
= 1,
42
44
TYPE__MOLECULE
= 2,
45
47
TYPE__CHAIN
= 3,
48
50
TYPE__FRAGMENT
= 4,
51
53
TYPE__RESIDUE
= 5,
54
56
TYPE__SECONDARY_STRUCTURE
= 6,
57
59
TYPE__ATOM
= 7,
60
62
TYPE__BOND
= 8
63
64
65
};
66
68
70
74
MolecularInformation
()
75
;
76
79
virtual
~MolecularInformation
()
80
;
81
87
virtual
void
clear
()
88
;
89
91
93
101
Type
getType
()
const
{
return
type_;}
102
104
String
getName
()
const
{
return
name_;}
105
107
String
getTypeName
()
const
{
return
type_name_;}
108
119
virtual
void
visit
(
Composite
& composite);
121
122
private
:
123
124
String
getBondAtomName_(
Atom
* atom);
125
void
getType_(
Composite
& composite);
126
void
getTypeName_();
127
void
getName_(
Composite
& composite);
128
129
Type
type_;
130
String
name_;
131
String
type_name_;
132
};
133
134
}
// namespace BALL
135
136
#endif
// BALL_CONCEPT_MOLECULARINFORMATION_H
BALL_EXPORT
#define BALL_EXPORT
Definition
COMMON/global.h:50
BALL::Atom
Definition
atom.h:90
BALL::Composite
Definition
composite.h:74
BALL::MolecularInformation::visit
virtual void visit(Composite &composite)
BALL::MolecularInformation::getType
Type getType() const
Definition
molecularInformation.h:101
BALL::MolecularInformation::clear
virtual void clear()
BALL::MolecularInformation::getName
String getName() const
Definition
molecularInformation.h:104
BALL::MolecularInformation::~MolecularInformation
virtual ~MolecularInformation()
BALL::MolecularInformation::MolecularInformation
MolecularInformation()
BALL::MolecularInformation::getTypeName
String getTypeName() const
Definition
molecularInformation.h:107
BALL::MolecularInformation::Type
Type
Definition
molecularInformation.h:33
BALL::MolecularInformation::TYPE__SECONDARY_STRUCTURE
@ TYPE__SECONDARY_STRUCTURE
SecondaryStructure type.
Definition
molecularInformation.h:56
BALL::MolecularInformation::TYPE__MOLECULE
@ TYPE__MOLECULE
Molecule type.
Definition
molecularInformation.h:44
BALL::MolecularInformation::TYPE__BOND
@ TYPE__BOND
Bond type.
Definition
molecularInformation.h:62
BALL::MolecularInformation::TYPE__SYSTEM
@ TYPE__SYSTEM
System type.
Definition
molecularInformation.h:38
BALL::MolecularInformation::TYPE__CHAIN
@ TYPE__CHAIN
Chain type.
Definition
molecularInformation.h:47
BALL::MolecularInformation::TYPE__PROTEIN
@ TYPE__PROTEIN
Protein type.
Definition
molecularInformation.h:41
BALL::MolecularInformation::TYPE__RESIDUE
@ TYPE__RESIDUE
Residue type.
Definition
molecularInformation.h:53
BALL::MolecularInformation::TYPE__FRAGMENT
@ TYPE__FRAGMENT
Fragment type.
Definition
molecularInformation.h:50
BALL::MolecularInformation::TYPE__UNKNOWN
@ TYPE__UNKNOWN
Unkown type. This value will be set in clear.
Definition
molecularInformation.h:35
BALL::MolecularInformation::TYPE__ATOM
@ TYPE__ATOM
Atom type.
Definition
molecularInformation.h:59
BALL::String
Definition
string.h:57
BALL::Visitor< Composite >::Visitor
Visitor()
Definition
visitor.h:61
composite.h
BALL
Definition
constants.h:13
Generated by
1.15.0