BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
BALL::Fragment Class Reference

#include <BALL/KERNEL/fragment.h>

Inheritance diagram for BALL::Fragment:
BALL::AtomContainer BALL::Composite BALL::PropertyManager BALL::PersistentObject BALL::Selectable BALL::Object BALL::AutoDeletable BALL::Nucleotide BALL::Residue

List of all members.

Public Types

Enums
enum  Property { NUMBER_OF_PROPERTIES = AtomContainer::NUMBER_OF_PROPERTIES }
 The number of predefined properties for AtomContainer. More...

Public Member Functions

bool operator== (const Fragment &fragment) const
bool operator!= (const Fragment &fragment) const
Constructors and Destructors
 Fragment ()
 Fragment (const Fragment &fragment, bool deep=true)
 Fragment (const String &name)
virtual ~Fragment ()
Persistence
void persistentWrite (PersistenceManager &pm, const char *name=0) const
void persistentRead (PersistenceManager &pm)
Assignment
Fragmentoperator= (const Fragment &fragment)
Debugging and Diagnostics
virtual void dump (std::ostream &s=std::cout, Size depth=0) const

Detailed Description

Fragment class. Fragments are used to represent parts of molecules (for example functional groups, monomers in larger polymers).

Definition at line 20 of file fragment.h.


Member Enumeration Documentation

The number of predefined properties for AtomContainer.

Enumerator:
NUMBER_OF_PROPERTIES 

Reimplemented from BALL::AtomContainer.

Reimplemented in BALL::Residue, and BALL::Nucleotide.

Definition at line 32 of file fragment.h.


Constructor & Destructor Documentation

Default constructor

BALL::Fragment::Fragment ( const Fragment fragment,
bool  deep = true 
)

Copy constructor

BALL::Fragment::Fragment ( const String name)

Constructor

virtual BALL::Fragment::~Fragment ( ) [virtual]

Destructor


Member Function Documentation

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

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

Parameters:
s- output stream where to output the internal state
depth- the dumping depth

Reimplemented from BALL::AtomContainer.

Reimplemented in BALL::Residue, and BALL::Nucleotide.

bool BALL::Fragment::operator!= ( const Fragment fragment) const

Inequality operator

See also:
operator ==
Fragment& BALL::Fragment::operator= ( const Fragment fragment)

Assignment operator.

Parameters:
fragmentthe Fragment to be copied (cloned)
Returns:
Fragment& - this instance
bool BALL::Fragment::operator== ( const Fragment fragment) const

Equality operator. Two fragments are equal if they have the same handle.

See also:
Object::operator ==.

Reads a Fragment object from a persistent stream.

Parameters:
pmthe persistence manager

Reimplemented from BALL::AtomContainer.

Reimplemented in BALL::Residue, and BALL::Nucleotide.

void BALL::Fragment::persistentWrite ( PersistenceManager pm,
const char *  name = 0 
) const [virtual]

Writes a Fragment object to a persistent stream.

Parameters:
pmthe persistence manager

Reimplemented from BALL::AtomContainer.

Reimplemented in BALL::Residue, and BALL::Nucleotide.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines