BALL 1.5.0
Loading...
Searching...
No Matches
KERNEL/system.h
Go to the documentation of this file.
1// -*- Mode: C++; tab-width: 2; -*-
2// vi: set ts=2:
3//
4
5#ifndef BALL_KERNEL_SYSTEM_H
6#define BALL_KERNEL_SYSTEM_H
7
8#ifndef BALL_KERNEL_ATOM_H
10#endif
11
12#ifndef BALL_KERNEL_MOLECULEITERATOR_H
14#endif
15
16#ifndef BALL_KERNEL_PROTEINITERATOR_H
18#endif
19
20#ifndef BALL_KERNEL_NUCLEICACIDITERATOR_H
22#endif
23
24#ifndef BALL_KERNEL_NUCLEOTIDEIDITERATOR_H
26#endif
27
28#define BALL_SYSTEM_DEFAULT_NAME ""
29
30namespace BALL
31{
39 : public AtomContainer
40 {
41 public:
42
44
45
48
51
53 System(const System& system, bool deep = true);
54
56 System(const String& name);
57
59 virtual ~System();
60
62
65
69 void persistentWrite(PersistenceManager& pm, const char* name = 0) const;
70
75
77
80
86 void set(const System& system, bool deep = true);
87
92 System& operator = (const System& system);
93
98 void get(System& system, bool deep = true) const;
99
101
106 bool operator == (const System& system) const;
107
111 bool operator != (const System& system) const;
112
116
126
135 const Molecule* getMolecule(Position position) const;
136
146
155 const Protein* getProtein(Position position) const;
156
161
166
171
176
181
186
191
196
201
205 void prepend(Molecule& molecule);
206
210 void append(Molecule& molecule);
211
215 void insert(Molecule& molecule);
216
221 void insertBefore(Molecule& molecule, Composite& before);
222
227 void insertAfter(Molecule& molecule, Composite& after);
228
232 bool remove(Molecule& molecule);
233
238 void spliceBefore(System& system);
239
244 void spliceAfter(System& system);
245
249 void splice(System& system);
250
252
253 // --- EXTERNAL ITERATORS ---
254
265
276 };
277} // namespace BALL
278
279#endif // BALL_KERNEL_SYSTEM_H
#define BALL_EXPORT
void persistentWrite(PersistenceManager &pm, const char *name=0) const
void insert(Molecule &molecule)
void insertBefore(Molecule &molecule, Composite &before)
Size countProteins() const
Size countFragments() const
void splice(System &system)
Protein * getProtein(Position position)
void get(System &system, bool deep=true) const
void append(Molecule &molecule)
bool remove(Molecule &molecule)
Size countNucleicAcids() const
Size countNucleotides() const
Size countChains() const
Size countResidues() const
Size countSecondaryStructures() const
void insertAfter(Molecule &molecule, Composite &after)
Size countAtoms() const
System()
Default constructor.
void spliceBefore(System &system)
void persistentRead(PersistenceManager &pm)
Size countMolecules() const
Molecule * getMolecule(Position position)
void prepend(Molecule &molecule)
void spliceAfter(System &system)
void set(const System &system, bool deep=true)
#define BALL_CREATE_DEEP(name)
Definition create.h:26
BALL_EXPORT AtomList atoms(const AtomContainer &fragment, const String &expression=String())
#define BALL_KERNEL_DEFINE_ITERATOR_CREATORS(Type)
Definition iterator.h:25
BALL_EXPORT AtomContainerList atomContainers(const AtomContainer &fragment, bool selected_only=false)
BALL_SIZE_TYPE Size
BALL_EXPORT ProteinList proteins(const AtomContainer &fragment, bool selected_only=false)
BALL_EXPORT MoleculeList molecules(const AtomContainer &fragment, bool selected_only=false)
BALL_SIZE_TYPE Position
BALL_EXPORT NucleotideList nucleotides(const AtomContainer &fragment, bool selected_only=false)
BALL_EXPORT FragmentList fragments(const AtomContainer &fragment, bool selected_only=false)
BALL_EXPORT SecondaryStructureList secondaryStructures(const AtomContainer &fragment, bool selected_only=false)
BALL_EXPORT ChainList chains(const AtomContainer &fragment, bool selected_only=false)
BALL_EXPORT ResidueList residues(const AtomContainer &fragment, bool selected_only=false)
BALL_EXPORT NucleicAcidList nucleicAcids(const AtomContainer &fragment, bool selected_only=false)
#define BALL_DECLARE_STD_ITERATOR_WRAPPER(container, type, method_name)