|
|
| Atom () |
|
| Atom (const Atom &atom, bool deep=true) |
|
| Atom (Element &element, const String &name, const String &type_name=BALL_ATOM_DEFAULT_TYPE_NAME, Type atom_type=BALL_ATOM_DEFAULT_TYPE, const Vector3 &position=Vector3(BALL_ATOM_DEFAULT_POSITION), const Vector3 &velocity=Vector3(BALL_ATOM_DEFAULT_VELOCITY), const Vector3 &force=Vector3(BALL_ATOM_DEFAULT_FORCE), float charge=BALL_ATOM_DEFAULT_CHARGE, float radius=BALL_ATOM_DEFAULT_RADIUS, Index formal_charge=BALL_ATOM_DEFAULT_FORMAL_CHARGE) |
|
|
virtual | ~Atom () |
|
virtual void | clear () |
|
virtual void | destroy () |
|
|
virtual void | persistentWrite (PersistenceManager &pm, const char *name=0) const |
|
virtual void | persistentRead (PersistenceManager &pm) |
|
|
void | set (const Atom &atom, bool deep=true) |
|
void | get (Atom &atom, bool deep=true) const |
|
Atom & | operator= (const Atom &atom) |
|
void | swap (Atom &atom) |
|
|
bool | operator== (const Atom &atom) const |
|
bool | operator!= (const Atom &atom) const |
|
|
void | setElement (const Element &element) |
| Assign the atom's element. More...
|
|
const Element & | getElement () const |
| Return the atom's element. More...
|
|
void | setCharge (float charge) |
|
float | getCharge () const |
|
void | setFormalCharge (Index formal_charge) |
| Set the atom's formal charge. More...
|
|
Index | getFormalCharge () const |
| Return the atom's formal charge. More...
|
|
const Molecule * | getMolecule () const |
|
Molecule * | getMolecule () |
| Return the molecule the atom is contained in (mutable) More...
|
|
const Fragment * | getFragment () const |
|
Fragment * | getFragment () |
| Return the fragment the atom is contained in (mutable) More...
|
|
const Residue * | getResidue () const |
|
Residue * | getResidue () |
| Return the residue the atom is contained in (mutable) More...
|
|
const SecondaryStructure * | getSecondaryStructure () const |
|
SecondaryStructure * | getSecondaryStructure () |
| Return the secondary structure the atom is contained in (mutable) More...
|
|
const Chain * | getChain () const |
|
Chain * | getChain () |
| Return the chain the atom is contained in (mutable) More...
|
|
void | setName (const String &name) |
| Set the atom name. More...
|
|
const String & | getName () const |
| Return the atom name. More...
|
|
String | getFullName (FullNameType type=ADD_VARIANT_EXTENSIONS) const |
|
void | setPosition (const Vector3 &position) |
|
Vector3 & | getPosition () |
| Return the atom coordinates (mutable) More...
|
|
const Vector3 & | getPosition () const |
| Return the atom coordinates (const) More...
|
|
void | setRadius (float radius) |
|
float | getRadius () const |
| Return the atom radius. More...
|
|
void | setType (Type atom_type) |
| Assign the numerical atom type. More...
|
|
Type | getType () const |
| Return the (numerical) atom type. More...
|
|
String | getTypeName () const |
| Return the atom type name. More...
|
|
void | setTypeName (const String &name) |
| Assign the atom type name. More...
|
|
void | setVelocity (const Vector3 &velocity) |
|
Vector3 & | getVelocity () |
|
const Vector3 & | getVelocity () const |
|
void | setForce (const Vector3 &force) |
|
const Vector3 & | getForce () const |
| Return the atom's force vector (const) More...
|
|
Vector3 & | getForce () |
| Return the atom's force vector (mutable) More...
|
|
Size | countBonds () const |
| Return the number of bonds. More...
|
|
Bond * | getBond (Position index) |
|
const Bond * | getBond (Position index) const |
|
Bond * | getBond (const Atom &atom) |
|
const Bond * | getBond (const Atom &atom) const |
|
|
Bond * | createBond (Atom &atom) |
|
Bond * | createBond (Bond &bond, Atom &atom) |
|
Bond * | cloneBond (Bond &bond, Atom &atom) |
|
bool | destroyBond (const Atom &atom) |
|
void | destroyBonds () |
|
Atom * | getPartnerAtom (Position i) |
|
const Atom * | getPartnerAtom (Position i) const |
|
float | getDistance (const Atom &a) const |
|
|
bool | hasBond (const Bond &bond) const |
|
bool | isBoundTo (const Atom &atom) const |
|
bool | isBound () const |
|
bool | isGeminal (const Atom &atom) const |
|
bool | isVicinal (const Atom &atom) const |
|
|
virtual bool | isValid () const |
|
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
|
|
bool | applyBonds (UnaryProcessor< Bond > &processor) |
|
AncestorIterator | beginAncestor () |
|
AncestorIterator | endAncestor () |
|
AncestorConstIterator | beginAncestor () const |
|
AncestorConstIterator | endAncestor () const |
|
ChildCompositeIterator | beginChildComposite () |
|
ChildCompositeIterator | endChildComposite () |
|
ChildCompositeConstIterator | beginChildComposite () const |
|
ChildCompositeConstIterator | endChildComposite () const |
|
ChildCompositeReverseIterator | rbeginChildComposite () |
|
ChildCompositeReverseIterator | rendChildComposite () |
|
ChildCompositeConstReverseIterator | rbeginChildComposite () const |
|
ChildCompositeConstReverseIterator | rendChildComposite () const |
|
CompositeIterator | beginComposite () |
|
CompositeIterator | endComposite () |
|
CompositeConstIterator | beginComposite () const |
|
CompositeConstIterator | endComposite () const |
|
CompositeReverseIterator | rbeginComposite () |
|
CompositeReverseIterator | rendComposite () |
|
CompositeConstReverseIterator | rbeginComposite () const |
|
CompositeConstReverseIterator | rendComposite () const |
|
void | deleteChildrenList_ (std::list< Composite * > &composites) |
|
template<typename T > |
BALL_INLINE bool | apply (UnaryProcessor< T > &processor) |
|
template<typename T > |
BALL_INLINE T * | getAncestor (const T &) |
|
template<typename T > |
BALL_INLINE const T * | getAncestor (const T &) const |
|
template<typename T > |
BALL_INLINE T * | getPrevious (const T &) |
|
template<typename T > |
BALL_INLINE const T * | getPrevious (const T &dummy) const |
|
template<typename T > |
BALL_INLINE T * | getNext (const T &) |
|
template<typename T > |
BALL_INLINE const T * | getNext (const T &dummy) const |
|
template<typename T > |
BALL_INLINE bool | hasAncestor (const T &dummy) const |
|
| Composite () |
|
| Composite (const Composite &composite, bool deep=true) |
|
virtual | ~Composite () |
|
void | destroy (bool virtual_destroy) |
|
void * | clone (Composite &root) const |
|
bool | operator== (const Composite &composite) const |
|
bool | operator!= (const Composite &composite) const |
|
bool | isEmpty () const |
|
bool | isRoot () const |
|
bool | isRootOf (const Composite &composite) const |
|
bool | isInterior () const |
|
bool | hasChild () const |
|
bool | isChildOf (const Composite &composite) const |
|
bool | isFirstChild () const |
|
bool | isFirstChildOf (const Composite &composite) const |
|
bool | isLastChild () const |
|
bool | isLastChildOf (const Composite &composite) const |
|
bool | hasParent () const |
|
bool | isParentOf (const Composite &composite) const |
|
bool | hasSibling () const |
|
bool | isSiblingOf (const Composite &composite) const |
|
bool | hasPreviousSibling () const |
|
bool | isPreviousSiblingOf (const Composite &composite) const |
|
bool | hasNextSibling () const |
|
bool | isNextSiblingOf (const Composite &composite) const |
|
bool | isDescendantOf (const Composite &composite) const |
|
template<typename T > |
bool | hasAncestor (const T &dummy) const |
|
bool | isAncestorOf (const Composite &composite) const |
|
bool | isRelatedWith (const Composite &composite) const |
|
bool | isHomomorph (const Composite &composite) const |
|
bool | containsSelection () const |
|
void | host (Visitor< Composite > &visitor) |
|
template<typename T > |
bool | applyAncestor (UnaryProcessor< T > &processor) |
|
template<typename T > |
bool | applyChild (UnaryProcessor< T > &processor) |
|
template<typename T > |
bool | applyDescendantPreorder (UnaryProcessor< T > &processor) |
|
template<typename T > |
bool | applyDescendantPostorder (UnaryProcessor< T > &processor) |
|
template<typename T > |
bool | applyDescendant (UnaryProcessor< T > &processor) |
|
template<typename T > |
bool | applyPreorder (UnaryProcessor< T > &processor) |
|
template<typename T > |
bool | applyPostorder (UnaryProcessor< T > &processor) |
|
template<typename T > |
bool | apply (UnaryProcessor< T > &processor) |
|
template<typename T > |
bool | applyLevel (UnaryProcessor< T > &processor, long level) |
|
void | set (const Composite &composite, bool deep=true) |
|
Composite & | operator= (const Composite &composite) |
|
void | get (Composite &composite, bool deep=true) const |
|
Size | getDegree () const |
|
Size | count (const KernelPredicateType &predicate) const |
|
Size | countDescendants () const |
|
Size | getPathLength (const Composite &composite) const |
|
Size | getDepth () const |
|
Size | getHeight () const |
|
Composite & | getRoot () |
|
const Composite & | getRoot () const |
|
Composite * | getLowestCommonAncestor (const Composite &composite) |
|
const Composite * | getLowestCommonAncestor (const Composite &composite) const |
|
template<typename T > |
T * | getAncestor (const T &) |
|
template<typename T > |
const T * | getAncestor (const T &) const |
|
template<typename T > |
T * | getPrevious (const T &) |
|
template<typename T > |
const T * | getPrevious (const T &dummy) const |
|
template<typename T > |
T * | getNext (const T &) |
|
template<typename T > |
const T * | getNext (const T &dummy) const |
|
Composite * | getParent () |
|
const Composite * | getParent () const |
|
Composite * | getChild (Index index) |
|
const Composite * | getChild (Index index) const |
|
Composite * | getSibling (Index index) |
|
const Composite * | getSibling (Index index) const |
|
Composite * | getFirstChild () |
|
const Composite * | getFirstChild () const |
|
Composite * | getLastChild () |
|
const Composite * | getLastChild () const |
|
const PreciseTime & | getModificationTime () const |
|
const PreciseTime & | getSelectionTime () const |
|
void | stamp (StampType stamp=BOTH) |
|
void | prependChild (Composite &composite) |
|
void | appendChild (Composite &composite) |
|
void | insertBefore (Composite &composite) |
|
void | insertAfter (Composite &composite) |
|
void | spliceBefore (Composite &composite) |
|
void | spliceAfter (Composite &composite) |
|
void | splice (Composite &composite) |
|
bool | removeChild (Composite &child) |
|
Size | removeSelected () |
|
Size | removeUnselected () |
|
void | replace (Composite &composite) |
|
void | swap (Composite &composite) |
|
virtual void | select () |
|
virtual void | deselect () |
|
| PersistentObject () |
|
virtual | ~PersistentObject () |
|
PersistenceManager & | operator>> (PersistenceManager &pm) const |
|
virtual void | finalize () |
|
| Object () |
| Default constructor. More...
|
|
| Object (const Object &object) |
| Copy constructor. More...
|
|
virtual | ~Object () |
| Destructor. More...
|
|
const Object & | operator= (const Object &) |
|
bool | operator== (const Object &object) const |
|
bool | operator!= (const Object &object) const |
|
bool | operator< (const Object &object) const |
|
bool | operator<= (const Object &object) const |
|
bool | operator>= (const Object &object) const |
|
bool | operator> (const Object &object) const |
|
int | compare (const Object &object) const |
|
virtual void | dump (::std::ostream &s=std::cout, Size depth=0) const |
|
Handle | getHandle () const |
|
virtual | ~AutoDeletable () |
|
void * | operator new (size_t size) |
|
void | operator delete (void *ptr) |
|
void * | operator new (size_t size, void *ptr) |
|
void | operator delete (void *ptr, void *) |
|
bool | isAutoDeletable () const |
|
void | setAutoDeletable (bool enable) |
|
| Selectable () |
|
| Selectable (const Selectable &selectable, bool deep=true) |
|
virtual | ~Selectable () |
|
void | set (const Selectable &selectable, bool deep=true) |
|
const Selectable & | operator= (const Selectable &selectable) |
|
void | get (Selectable &selectable, bool deep=true) const |
|
void | swap (Selectable &selectable) |
|
virtual void | setSelected (bool selected) |
|
bool | isSelected () const |
|
bool | operator== (const Selectable &selectable) const |
|
bool | operator!= (const Selectable &selectable) const |
|
void | write (PersistenceManager &pm) const |
|
bool | read (PersistenceManager &pm) |
|
virtual void | dump (::std::ostream &s=std::cout, Size depth=0) const |
|
BALL_INLINE | PropertyManager () |
| Default constructor. More...
|
|
BALL_INLINE | PropertyManager (const PropertyManager &property_manager) |
| Copy constructor. More...
|
|
virtual | ~PropertyManager () |
| Destructor. More...
|
|
void | set (const PropertyManager &property_manager) |
|
const PropertyManager & | operator= (const PropertyManager &property_manager) |
|
void | get (PropertyManager &property_manager) const |
|
void | swap (PropertyManager &property_manager) |
|
BitVector & | getBitVector () |
|
const BitVector & | getBitVector () const |
|
| operator BitVector & () |
|
void | setProperty (Property property) |
|
void | clearProperty (Property property) |
|
void | toggleProperty (Property property) |
|
Size | countProperties () const |
|
const NamedProperty & | getNamedProperty (Position index) const |
|
NamedProperty & | getNamedProperty (Position index) |
|
void | setProperty (const NamedProperty &property) |
|
void | setProperty (const string &name) |
|
void | setProperty (const string &name, bool value) |
|
void | setProperty (const string &name, int value) |
|
void | setProperty (const string &name, unsigned int value) |
|
void | setProperty (const string &name, float value) |
|
void | setProperty (const string &name, double value) |
|
void | setProperty (const string &name, const string &value) |
|
void | setProperty (const string &name, const PersistentObject &value) |
|
const NamedProperty & | getProperty (const string &name) const |
|
NamedPropertyIterator | beginNamedProperty () |
|
NamedPropertyIterator | endNamedProperty () |
|
void | clearProperty (const string &name) |
|
Size | countNamedProperties () const |
|
bool | hasProperty (Property property) const |
| Query for an unnamed property. More...
|
|
bool | hasProperty (const string &name) const |
| Query for a named property. More...
|
|
bool | operator== (const PropertyManager &pm) const |
|
bool | operator!= (const PropertyManager &pm) const |
| Inequality operator. More...
|
|
void | write (PersistenceManager &pm) const |
| Persistent stream writing. More...
|
|
bool | read (PersistenceManager &pm) |
| Persistent stream reading. More...
|
|
bool | isValid () const |
|
void | dump (std::ostream &s=std::cout, Size depth=0) const |
|
Atom class. A class representing atoms. During each runtime instance of a program an atom is unique and identified by a Object::Handle . Atom equality is defined as atom identity, so there cannot be any two identical atoms. A linear ordering of atoms is defined as the linear order of the Object::Handle s.
- Two atoms can be connected via a Bond . There can be only one bond between any two atoms (double bonds etc. are expressed via the bond order attribute of the bond) and the total number of bonds of an atom is limited to eight (can be changed at compile time, see MAX_NUMBER_OF_BONDS ).
- Since Atom is derived from ProperyManager , it may contain arbitrary, user-defined properties. An atom may be inserted in a Fragment instance ("parent fragment"). The "state" of an atom is defined by its attributes:
- "element" - an instance of Element
- "formal charge" - the formal charge of the atom
- "charge" - the charge in multiples of the the proton charge
- "name" - a string identifier
- "type name" - a string identifier, meaningful in the the context of a forcefield only
- "position" - the absolute position in cartesian coordinates (Angstrom)
- "radius" - the radius (Angstrom)
- "type" - an integer type, meaningful only in the context of a forcefield
- "velocity" - velocity the velocity of the atom (Angstrom/ps)
- "force" - the force experienced by the atom (for forcefield calculations, in units of Newton)
- "bonds" - up to MAX_NUMBER_OF_BONDS bonds to other atoms
- See Also
- Bond
-
Molecule
-
AtomContainer
Definition at line 86 of file atom.h.