ChainBase Class Reference

base class for ChainHandle and ChainView More...

#include <chain_base.hh>

Inherits GenericPropContainer< ChainBase >.

Inherited by ChainHandle, and ChainView.

Public Member Functions

 ChainBase ()
 ChainBase (const impl::ChainImplPtr &impl)
String GetName () const
ChainType GetType () const
String GetDescription () const
const impl::ChainImplPtrImpl () const
bool IsPolymer () const
bool IsPolysaccharide () const
bool IsPolypeptide () const
bool IsPolynucleotide () const
impl::ChainImplPtrImpl ()
Handle validity



 operator bool () const
bool IsValid () const

Protected Member Functions

GenericPropContainerImplGpImpl ()
const GenericPropContainerImplGpImpl () const
void CheckValidity () const

Friends

class ConstGenericPropContainer< ChainBase >

Detailed Description

base class for ChainHandle and ChainView

This class implements the common functionality of ChainHandle and ChainView.

Like residues and atoms, chains are generic property containers and a such able to store user-defined properties.

Chains are linear chains of residues. Peptide chains are ordered from N- to C-terminus.

Definition at line 39 of file chain_base.hh.


Constructor & Destructor Documentation

ChainBase (  ) 
ChainBase ( const impl::ChainImplPtr impl  ) 

Member Function Documentation

void CheckValidity (  )  const [protected]
String GetDescription (  )  const

Get information about a chain.

Returns:
description
String GetName (  )  const
ChainType GetType (  )  const

Get the type of a chain.

Returns:
chain type of ChainType
const GenericPropContainerImpl* GpImpl (  )  const [protected]
GenericPropContainerImpl* GpImpl (  )  [protected]
impl::ChainImplPtr& Impl (  )  [inline]

Definition at line 92 of file chain_base.hh.

const impl::ChainImplPtr& Impl (  )  const [inline]

Definition at line 73 of file chain_base.hh.

bool IsPolymer (  )  const

whether the chain is a polymer

True if one of IsPolysaccharide(), IsPolynucleotide(), IsPolypeptide() is true or the chain is of type CHAINTYPE_POLYMER.

bool IsPolynucleotide (  )  const

whether the chain is a polynucleotide

bool IsPolypeptide (  )  const

whether the chain is a polypeptide

bool IsPolysaccharide (  )  const

whether the chain is a polysaccharide

bool IsValid (  )  const [inline]

check validity of handle

See also:
operator bool()

Reimplemented in ChainView.

Definition at line 58 of file chain_base.hh.

operator bool (  )  const [inline]

check validity of handle

check, whether the chain handle points to a valid handle.

Note:
It is an error to use any method other than IsValid, Impl() and operator bool() when the handle is invalid. An InvalidHandle exception will be thrown.

Reimplemented in ChainView.

Definition at line 55 of file chain_base.hh.


Friends And Related Function Documentation

friend class ConstGenericPropContainer< ChainBase > [friend]

Definition at line 60 of file chain_base.hh.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 20 Jun 2016 for OpenStructure by  doxygen 1.6.1