BALL 1.5.0
Loading...
Searching...
No Matches
BALL::SecondaryStructure Class Reference

#include <BALL/KERNEL/secondaryStructure.h>

Inheritance diagram for BALL::SecondaryStructure:
BALL::AtomContainer BALL::Composite BALL::PropertyManager BALL::PersistentObject BALL::Selectable BALL::Object BALL::AutoDeletable

Public Types

Enums
enum  Type {
  HELIX , COIL , STRAND , TURN ,
  UNKNOWN , NUMBER_OF_TYPES
}
Public Types inherited from BALL::AtomContainer
enum  Property { NUMBER_OF_PROPERTIES = 0 }
 The number of predefined properties for AtomContainer. More...
Public Types inherited from BALL::Composite
enum  StampType { MODIFICATION = 1 , SELECTION = 2 , BOTH = 3 }
typedef UnaryPredicate< CompositeKernelPredicateType
typedef ForwardIterator< Composite, Composite, Composite *, AncestorIteratorTraitsAncestorIterator
typedef ConstForwardIterator< Composite, Composite, Composite *, AncestorIteratorTraitsAncestorConstIterator
typedef BidirectionalIterator< Composite, Composite, Composite *, ChildCompositeIteratorTraitsChildCompositeIterator
typedef ConstBidirectionalIterator< Composite, Composite, Composite *, ChildCompositeIteratorTraitsChildCompositeConstIterator
typedef std::reverse_iterator< ChildCompositeIteratorChildCompositeReverseIterator
typedef std::reverse_iterator< ChildCompositeConstIteratorChildCompositeConstReverseIterator
typedef BidirectionalIterator< Composite, Composite, Composite *, CompositeIteratorTraitsCompositeIterator
typedef ConstBidirectionalIterator< Composite, Composite, Composite *, CompositeIteratorTraitsCompositeConstIterator
typedef std::reverse_iterator< CompositeIteratorCompositeReverseIterator
typedef std::reverse_iterator< CompositeConstIteratorCompositeConstReverseIterator

Public Member Functions

Constructors and Destructors
 SecondaryStructure ()
 Default constructor.
 SecondaryStructure (const SecondaryStructure &secondary_structure, bool deep=true)
 Copy constructor.
 SecondaryStructure (const String &name)
virtual ~SecondaryStructure ()
 Destructor.
virtual void clear ()
 Clear the contents of the secondary structure.
virtual void destroy ()
 Clear the contents of the secondary structure and remove it from all composite structures.
Predicates
bool operator== (const SecondaryStructure &secondary_structure) const
bool operator!= (const SecondaryStructure &secondary_structure) const
Persistence
void persistentWrite (PersistenceManager &pm, const char *name=0) const
void persistentRead (PersistenceManager &pm)
Assignment
void set (const SecondaryStructure &secondary_structure, bool deep=true)
SecondaryStructureoperator= (const SecondaryStructure &secondary_structure)
void get (SecondaryStructure &secondary_structure, bool deep=true) const
void swap (SecondaryStructure &secondary_structure)
Accessors
Type getType () const
 Return the type of secondary structure.
void setType (Type type)
 Set the type of secondary structure.
ProteingetProtein ()
const ProteingetProtein () const
ChaingetChain ()
const ChaingetChain () const
ResiduegetResidue (Position position)
const ResiduegetResidue (Position position) const
ResiduegetNTerminal ()
const ResiduegetNTerminal () const
ResiduegetCTerminal ()
const ResiduegetCTerminal () const
PDBAtomgetPDBAtom (Position position)
const PDBAtomgetPDBAtom (Position position) const
Size countResidues () const
Size countPDBAtoms () const
void prepend (Residue &residue)
void append (Residue &residue)
void insert (Residue &residue)
void insertBefore (Residue &residue, Composite &before)
void insertAfter (Residue &residue, Composite &after)
bool remove (Residue &residue)
void spliceBefore (SecondaryStructure &secondary_structure)
void spliceAfter (SecondaryStructure &secondary_structure)
void splice (SecondaryStructure &secondary_structure)
Public Member Functions inherited from BALL::AtomContainer
 AtomContainer ()
 AtomContainer (const AtomContainer &atom_container, bool deep=true)
 AtomContainer (const String &name)
virtual ~AtomContainer ()
void set (const AtomContainer &atom_container, bool deep=true)
AtomContaineroperator= (const AtomContainer &atom_container)
void get (AtomContainer &atom_container, bool deep=true) const
void swap (AtomContainer &atom_container)
bool operator== (const AtomContainer &atom_container) const
bool operator!= (const AtomContainer &atom_container) const
bool isSubAtomContainerOf (const AtomContainer &atom_container) const
bool isSuperAtomContainerOf (const AtomContainer &atom_container) const
void setName (const String &name)
const StringgetName () const
AtomContainergetSuperAtomContainer ()
const AtomContainergetSuperAtomContainer () const
AtomContainergetAtomContainer (Position position)
const AtomContainergetAtomContainer (Position position) const
AtomgetAtom (Position position)
const AtomgetAtom (Position position) const
AtomgetAtom (const String &name)
const AtomgetAtom (const String &name) const
Size countAtomContainers () const
Size countAtoms () const
Size countBonds () const
Size countInterBonds () const
Size countIntraBonds () const
void prepend (Atom &atom)
void append (Atom &atom)
void insert (Atom &atom)
void insertBefore (Atom &atom, Composite &before)
void insertAfter (Atom &atom, Composite &after)
bool remove (Atom &atom)
Size removeHavingProperty (BALL::Property p)
Size removeNotHavingProperty (BALL::Property p)
Size removeHavingProperty (const string &name)
Size removeNotHavingProperty (const string &name)
void prepend (AtomContainer &atom_container)
void append (AtomContainer &atom_container)
void insert (AtomContainer &atom_container)
void insertBefore (AtomContainer &atom_container, Composite &before)
void insertAfter (AtomContainer &atom_container, Composite &after)
void spliceBefore (AtomContainer &atom_container)
void spliceAfter (AtomContainer &atom_container)
void splice (AtomContainer &atom_container)
bool remove (AtomContainer &atom_container)
void destroyBonds ()
bool applyIntraBond (UnaryProcessor< Bond > &processor)
 Apply to all bonds connecting two atoms inside this AtomContainer.
bool applyInterBond (UnaryProcessor< Bond > &processor)
 Apply to all bonds connected to atoms outside this AtomContainer.
Public Member Functions inherited from BALL::Composite
template<typename T>
BALL_INLINE bool apply (UnaryProcessor< T > &processor)
template<typename T>
BALL_INLINE bool apply (ConstUnaryProcessor< T > &processor) const
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
virtual bool isAtom () const
virtual bool isMolecule () const
virtual bool isProtein () const
virtual bool isFragment () const
virtual bool isResidue () const
virtual bool isChain () const
void host (Visitor< Composite > &visitor)
template<typename T>
bool applyAncestor (UnaryProcessor< T > &processor)
template<typename T>
bool applyAncestor (ConstUnaryProcessor< T > &processor) const
template<typename T>
bool applyChild (UnaryProcessor< T > &processor)
template<typename T>
bool applyChild (ConstUnaryProcessor< T > &processor) const
template<typename T>
bool applyDescendantPreorder (UnaryProcessor< T > &processor)
template<typename T>
bool applyDescendantPreorder (ConstUnaryProcessor< T > &processor) const
template<typename T>
bool applyDescendantPostorder (UnaryProcessor< T > &processor)
template<typename T>
bool applyDescendantPostorder (ConstUnaryProcessor< T > &processor) const
template<typename T>
bool applyDescendant (UnaryProcessor< T > &processor)
template<typename T>
bool applyDescendant (ConstUnaryProcessor< T > &processor) const
template<typename T>
bool applyPreorder (UnaryProcessor< T > &processor)
template<typename T>
bool applyPreorder (ConstUnaryProcessor< T > &processor) const
template<typename T>
bool applyPostorder (UnaryProcessor< T > &processor)
template<typename T>
bool applyPostorder (ConstUnaryProcessor< T > &processor) const
template<typename T>
bool apply (UnaryProcessor< T > &processor)
template<typename T>
bool apply (ConstUnaryProcessor< T > &processor) const
template<typename T>
bool applyLevel (UnaryProcessor< T > &processor, long level)
template<typename T>
bool applyLevel (ConstUnaryProcessor< T > &processor, long level) const
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)
void set (const Composite &composite, bool deep=true)
Compositeoperator= (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
CompositegetRoot ()
const CompositegetRoot () const
CompositegetLowestCommonAncestor (const Composite &composite)
const CompositegetLowestCommonAncestor (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
CompositegetParent ()
const CompositegetParent () const
CompositegetChild (Index index)
const CompositegetChild (Index index) const
CompositegetSibling (Index index)
const CompositegetSibling (Index index) const
CompositegetFirstChild ()
const CompositegetFirstChild () const
CompositegetLastChild ()
const CompositegetLastChild () const
const PreciseTimegetModificationTime () const
const PreciseTimegetSelectionTime () 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 ()
Public Member Functions inherited from BALL::PersistentObject
 PersistentObject ()
virtual ~PersistentObject ()
PersistenceManageroperator>> (PersistenceManager &pm) const
virtual void finalize ()
Public Member Functions inherited from BALL::Object
 Object ()
 Default constructor.
 Object (const Object &object)
 Copy constructor.
virtual ~Object ()
 Destructor.
const Objectoperator= (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
Public Member Functions inherited from BALL::AutoDeletable
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)
Public Member Functions inherited from BALL::Selectable
 Selectable ()
 Selectable (const Selectable &selectable, bool deep=true)
virtual ~Selectable ()
void set (const Selectable &selectable, bool deep=true)
const Selectableoperator= (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
Public Member Functions inherited from BALL::PropertyManager
BALL_INLINE PropertyManager ()
 Default constructor.
BALL_INLINE PropertyManager (const PropertyManager &property_manager)
 Copy constructor.
virtual ~PropertyManager ()
 Destructor.
void set (const PropertyManager &property_manager)
const PropertyManageroperator= (const PropertyManager &property_manager)
void get (PropertyManager &property_manager) const
void swap (PropertyManager &property_manager)
BitVectorgetBitVector ()
const BitVectorgetBitVector () const
 operator BitVector & ()
void setProperty (Property property)
void clearProperty (Property property)
void toggleProperty (Property property)
Size countProperties () const
const NamedPropertygetNamedProperty (Position index) const
NamedPropertygetNamedProperty (Position index)
void setProperty (const NamedProperty &property)
void setProperty (const std::string &name)
void setProperty (const std::string &name, bool value)
void setProperty (const std::string &name, int value)
void setProperty (const std::string &name, unsigned int value)
void setProperty (const std::string &name, float value)
void setProperty (const std::string &name, double value)
void setProperty (const std::string &name, const std::string &value)
void setProperty (const std::string &name, const PersistentObject &value)
const NamedPropertygetProperty (const std::string &name) const
NamedPropertyIterator beginNamedProperty ()
NamedPropertyIterator endNamedProperty ()
void clearProperty (const std::string &name)
Size countNamedProperties () const
bool hasProperty (Property property) const
 Query for an unnamed property.
bool hasProperty (const std::string &name) const
 Query for a named property.
bool operator== (const PropertyManager &pm) const
bool operator!= (const PropertyManager &pm) const
 Inequality operator.
void write (PersistenceManager &pm) const
 Persistent stream writing.
bool read (PersistenceManager &pm)
 Persistent stream reading.
bool isValid () const
void dump (std::ostream &s=std::cout, Size depth=0) const

Debugging and Diagnostics

Type type_
 The secondary structure type (helix, strand, coil, turn).
virtual bool isValid () const
virtual void dump (std::ostream &s=std::cout, Size depth=0) const

Additional Inherited Members

static bool insertParent (Composite &parent, Composite &first, Composite &last, bool destroy_parent=true)
static Handle getNextHandle ()
static Handle getNewHandle ()
static void clearLastPtr ()
static UnaryProcessor< CompositeDEFAULT_PROCESSOR
static KernelPredicateType DEFAULT_UNARY_PREDICATE
 AutoDeletable ()
 AutoDeletable (const AutoDeletable &auto_deletable, bool deep=false)
bool selected_

Detailed Description

Secondary structure class. This class is used to represent secondary structure elements of protein chains.

Definition at line 29 of file secondaryStructure.h.

Member Enumeration Documentation

◆ Type

Secondary structure type

Enumerator
HELIX 
COIL 
STRAND 
TURN 
UNKNOWN 
NUMBER_OF_TYPES 

Definition at line 42 of file secondaryStructure.h.

Constructor & Destructor Documentation

◆ SecondaryStructure() [1/3]

BALL::SecondaryStructure::SecondaryStructure ( )

Default constructor.

◆ SecondaryStructure() [2/3]

BALL::SecondaryStructure::SecondaryStructure ( const SecondaryStructure & secondary_structure,
bool deep = true )

Copy constructor.

◆ SecondaryStructure() [3/3]

BALL::SecondaryStructure::SecondaryStructure ( const String & name)

◆ ~SecondaryStructure()

virtual BALL::SecondaryStructure::~SecondaryStructure ( )
virtual

Destructor.

Member Function Documentation

◆ append()

void BALL::SecondaryStructure::append ( Residue & residue)

Append a Residue after the last position.

Parameters
residuethe Residue to append

◆ clear()

virtual void BALL::SecondaryStructure::clear ( )
virtual

Clear the contents of the secondary structure.

Reimplemented from BALL::AtomContainer.

◆ countPDBAtoms()

Size BALL::SecondaryStructure::countPDBAtoms ( ) const

Count the PDBAtoms.

Returns
Size the number of PDBAtoms

◆ countResidues()

Size BALL::SecondaryStructure::countResidues ( ) const

Count the Residues.

Returns
Size the number of residues

◆ destroy()

virtual void BALL::SecondaryStructure::destroy ( )
virtual

Clear the contents of the secondary structure and remove it from all composite structures.

Reimplemented from BALL::AtomContainer.

◆ dump()

virtual void BALL::SecondaryStructure::dump ( std::ostream & s = std::cout,
Size depth = 0 ) const
virtual

Internal state dump. Dump the current internal state of this instance to the output ostream s with dumping depth depth .

Parameters
soutput stream where to output the internal state of this instance
depththe dumping depth

Reimplemented from BALL::AtomContainer.

◆ get()

void BALL::SecondaryStructure::get ( SecondaryStructure & secondary_structure,
bool deep = true ) const

Assignment. The assignment is either deep or shallow (default).

Parameters
secondary_structurethe SecondaryStructure to be assigned to
See also
secondary_structure::set

◆ getChain() [1/2]

Chain * BALL::SecondaryStructure::getChain ( )

Get a pointer to the parent chain. The pointer is 0 if this instance does not have a parent chain.

Returns
Protein* - mutable pointer to the parent chain

◆ getChain() [2/2]

const Chain * BALL::SecondaryStructure::getChain ( ) const

Get a pointer to the parent chain. The pointer is 0 if this instance does not have a parent chain.

Returns
Protein* - constant pointer to the parent chain

◆ getCTerminal() [1/2]

Residue * BALL::SecondaryStructure::getCTerminal ( )

Get a pointer to the C-terminal Residue. The pointer is 0 if this instance does not have a Residue with the property "PROPERTY__AMINO_ACID".

Returns
Residue* - mutable pointer to the C-terminal Residue

◆ getCTerminal() [2/2]

const Residue * BALL::SecondaryStructure::getCTerminal ( ) const

Get a pointer to the C-terminal Residue. The pointer is 0 if this instance does not have a Residue with the property "PROPERTY__AMINO_ACID".

Returns
Residue* - constant pointer to the C-terminal Residue

◆ getNTerminal() [1/2]

Residue * BALL::SecondaryStructure::getNTerminal ( )

Get a pointer to the N-terminal Residue. The pointer is 0 if this instance does not have a Residue with the property "PROPERTY__AMINO_ACID".

Returns
Residue* - mutable pointer to the N-terminal Residue

◆ getNTerminal() [2/2]

const Residue * BALL::SecondaryStructure::getNTerminal ( ) const

Get a pointer to the N-terminal Residue. The pointer is 0 if this instance does not have a Residue with the property "PROPERTY__AMINO_ACID".

Returns
Residue* - constant pointer to the N-terminal Residue

◆ getPDBAtom() [1/2]

PDBAtom * BALL::SecondaryStructure::getPDBAtom ( Position position)

Get a pointer to a child PDBAtom at a given position. The pointer is 0 if this instance residue does not have a PDBAtom at this position.

Parameters
positionthe position of the child PDBAtom
Returns
PDBAtom* - constant pointer to the child

◆ getPDBAtom() [2/2]

const PDBAtom * BALL::SecondaryStructure::getPDBAtom ( Position position) const

Get a pointer to a child PDBAtom at a given position. The pointer is 0 if this instance residue does not have a PDBAtom at this position.

Parameters
positionthe position of the child PDBAtom
Returns
PDBAtom* - mutable pointer to the child

◆ getProtein() [1/2]

Protein * BALL::SecondaryStructure::getProtein ( )

Get a pointer to the parent protein. The pointer is 0 if this instance does not have a parent protein.

Returns
Protein* - mutable pointer to the parent protein

◆ getProtein() [2/2]

const Protein * BALL::SecondaryStructure::getProtein ( ) const

Get a pointer to the parent protein. The pointer is 0 if this instance does not have a parent protein.

Returns
Protein* - constant pointer to the parent protein

◆ getResidue() [1/2]

Residue * BALL::SecondaryStructure::getResidue ( Position position)

Get a pointer to a child Residue at a given position. The pointer is 0 if this instance does not have a Residue at the given position.

Parameters
positionthe position of the child Residue
Returns
Residue* - mutable pointer to the child

◆ getResidue() [2/2]

const Residue * BALL::SecondaryStructure::getResidue ( Position position) const

Get a pointer to a child Residue at a given position. The pointer is 0 if this instance does not have a Residue at the given position.

Parameters
positionthe position of the child Residue
Returns
Residue* - constant pointer to the child

◆ getType()

Type BALL::SecondaryStructure::getType ( ) const
inline

Return the type of secondary structure.

Definition at line 150 of file secondaryStructure.h.

◆ insert()

void BALL::SecondaryStructure::insert ( Residue & residue)

Insert a Residue after the last position.

Parameters
residuethe Residue to insert

◆ insertAfter()

void BALL::SecondaryStructure::insertAfter ( Residue & residue,
Composite & after )

Insert a Residue after a given Composite object.

Parameters
residuethe Residue to insert
afterthe Composite object to insert before

◆ insertBefore()

void BALL::SecondaryStructure::insertBefore ( Residue & residue,
Composite & before )

Insert a Residue before a given Composite object.

Parameters
residuethe Residue to insert
beforethe Composite object to insert before

◆ isValid()

virtual bool BALL::SecondaryStructure::isValid ( ) const
virtual

Internal state and consistency self-validation.

Returns
bool - true if the internal state is correct (self-validated) and consistent, false otherwise

Reimplemented from BALL::AtomContainer.

◆ operator!=()

bool BALL::SecondaryStructure::operator!= ( const SecondaryStructure & secondary_structure) const

Inequality operator

See also
operator ==

◆ operator=()

SecondaryStructure & BALL::SecondaryStructure::operator= ( const SecondaryStructure & secondary_structure)

Assignment operator.

Parameters
secondary_structurethe SecondaryStructure to be copied (cloned)
Returns
Secondary_structure& - this instance
See also
SecondaryStructure::set

◆ operator==()

bool BALL::SecondaryStructure::operator== ( const SecondaryStructure & secondary_structure) const

Equality operator. Two instance of SecondaryStructure are equal if they have the same handle.

See also
Object::operator ==

◆ persistentRead()

void BALL::SecondaryStructure::persistentRead ( PersistenceManager & pm)
virtual

Read a SecondaryStructure object from a persistent stream

Parameters
pmthe persistence manager

Reimplemented from BALL::AtomContainer.

◆ persistentWrite()

void BALL::SecondaryStructure::persistentWrite ( PersistenceManager & pm,
const char * name = 0 ) const
virtual

Write a SecondaryStructure object to a persistent stream

Parameters
pmthe persistence manager

Reimplemented from BALL::AtomContainer.

◆ prepend()

void BALL::SecondaryStructure::prepend ( Residue & residue)

Prepend a Residue at position 0.

Parameters
residuethe Residue to prepend

◆ remove()

bool BALL::SecondaryStructure::remove ( Residue & residue)

Remove a Residue.

Parameters
residuethe Residue to remove

◆ set()

void BALL::SecondaryStructure::set ( const SecondaryStructure & secondary_structure,
bool deep = true )

Assignment. The assignment is either deep or shallow (default).

Parameters
secondary_structurethe SecondaryStructure to be copied (cloned)
deepmake a deep (=true) or shallow (=false) copy

◆ setType()

void BALL::SecondaryStructure::setType ( Type type)
inline

Set the type of secondary structure.

Definition at line 153 of file secondaryStructure.h.

◆ splice()

void BALL::SecondaryStructure::splice ( SecondaryStructure & secondary_structure)

Move the children of secondary_structure into this instance. The children are inserted using spliceBefore .

◆ spliceAfter()

void BALL::SecondaryStructure::spliceAfter ( SecondaryStructure & secondary_structure)

Move the children of secondary_structure into this instance. Cut all children of secondary_structure and append them after the children of this instance.

Parameters
secondary_structurethe SecondaryStructure to access

◆ spliceBefore()

void BALL::SecondaryStructure::spliceBefore ( SecondaryStructure & secondary_structure)

Move the children of secondary_structure into this instance. Cut all children of secondary_structure and prepend them before the children of this instance.

Parameters
secondary_structurethe SecondaryStructure to access

◆ swap()

void BALL::SecondaryStructure::swap ( SecondaryStructure & secondary_structure)

Swapping of two secondary structures.

Parameters
secondary_structureto swap with this instance

Member Data Documentation

◆ type_

Type BALL::SecondaryStructure::type_
protected

The secondary structure type (helix, strand, coil, turn).

Definition at line 326 of file secondaryStructure.h.