OpenStructure
|
#include <chain_base.hh>
Inherits GenericPropContainer< ChainBase >.
Inherited by ChainHandle, and ChainView.
Public Member Functions | |
ChainBase () | |
ChainBase (const impl::ChainImplPtr &impl) | |
Public Member Functions inherited from GenericPropContainer< ChainBase > | |
void | ClearProps () |
void | SetStringProp (const String &key, const String &value) |
void | SetFloatProp (const String &key, Real value) |
void | SetIntProp (const String &key, int value) |
void | SetBoolProp (const String &key, bool value) |
void | SetVec3Prop (const String &key, geom::Vec3 value) |
void | RemoveProp (const String &key) |
Public Member Functions inherited from ConstGenericPropContainer< H > | |
bool | HasProp (const String &key) const |
String | GetPropAsString (const String &key) const |
String | GetStringProp (const String &key) const |
Real | GetFloatProp (const String &key) const |
int | GetIntProp (const String &key) const |
bool | GetBoolProp (const String &key) const |
geom::Vec3 | GetVec3Prop (const String &key) const |
String | GetStringProp (const String &key, const String &def) const |
Real | GetFloatProp (const String &key, Real def) const |
int | GetIntProp (const String &key, int def) const |
bool | GetBoolProp (const String &key, bool def) const |
std::map< String, GenericPropValue > | GetPropMap () const |
std::vector< String > | GetPropList () const |
Handle validity | |
class | ConstGenericPropContainer< ChainBase > |
operator bool () const | |
bool | IsValid () const |
String | GetName () const |
ChainType | GetType () const |
String | GetDescription () const |
const impl::ChainImplPtr & | Impl () const |
bool | IsPolymer () const |
bool | IsPolysaccharide () const |
bool | IsOligosaccharide () const |
bool | IsPolypeptide () const |
bool | IsPolynucleotide () const |
impl::ChainImplPtr & | Impl () |
GenericPropContainerImpl * | GpImpl () |
const GenericPropContainerImpl * | GpImpl () const |
void | CheckValidity () const |
Additional Inherited Members | |
Protected Member Functions inherited from ConstGenericPropContainer< H > | |
template<typename T > | |
T | gp_get (const String &key) const |
template<typename T > | |
T | gp_get (const String &key, const T &def) const |
GenericPropContainerImpl * | GetImpl () |
const GenericPropContainerImpl * | GetImpl () const |
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.
ChainBase | ( | ) |
ChainBase | ( | const impl::ChainImplPtr & | impl | ) |
|
protected |
String GetDescription | ( | ) | const |
Get information about a chain.
String GetName | ( | ) | const |
ChainType GetType | ( | ) | const |
Get the type of a chain.
|
protected |
|
protected |
|
inline |
Definition at line 95 of file chain_base.hh.
|
inline |
Definition at line 73 of file chain_base.hh.
bool IsOligosaccharide | ( | ) | const |
whether the chain is an oligsaccharide (branched mmCIF entity)
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 |
check validity of handle
|
inline |
check validity of handle
check, whether the chain handle points to a valid handle.
Definition at line 55 of file chain_base.hh.
|
friend |
Definition at line 58 of file chain_base.hh.