cpsp::HCore Class Reference
#include <HCore.hh>
Detailed Description
An H-core represents the possible coordinates for the H-monomers of a lattice protein in the HP- or HPNX-model.
Definition at line 41 of file HCore.hh.
Member Typedef Documentation
an H-core position
Definition at line 45 of file HCore.hh.
a std::set of CorePoint objects
Definition at line 47 of file HCore.hh.
Constructor & Destructor Documentation
cpsp::HCore::HCore |
( |
const unsigned int |
contacts, |
|
|
const unsigned int |
size | |
|
) |
| | |
cpsp::HCore::~HCore |
( |
|
) |
[virtual] |
Member Function Documentation
void cpsp::HCore::addPoint |
( |
const CorePoint & |
toAdd |
) |
|
Adds a CorePoint object to the H-core.
Definition at line 57 of file HCore.cc.
biu::IntPoint cpsp::HCore::getCenter |
( |
|
) |
const [inline] |
Returns the center of the H-core.
Definition at line 173 of file HCore.hh.
unsigned int cpsp::HCore::getContacts |
( |
|
) |
const [inline] |
Returns the number of H-H-contacts in the H-core.
Definition at line 150 of file HCore.hh.
const CoreFrame* const cpsp::HCore::getCoreFrame |
( |
|
) |
const [inline] |
Returns the surrounding core frame.
Definition at line 140 of file HCore.hh.
const biu::IndexSet & cpsp::HCore::getIndexedHSinglets |
( |
const biu::LatticeFrame * |
latFrame |
) |
|
Returns the indexed H-singlet positions of the core, shifted to the center of the lattice frame.
Definition at line 208 of file HCore.cc.
const biu::IndexSet & cpsp::HCore::getIndexedHull |
( |
const biu::LatticeFrame * |
latFrame, |
|
|
const unsigned int |
hullLevel | |
|
) |
| | |
Returns the indexed hull of the H-core, shifted to the center of the lattice frame.
Definition at line 117 of file HCore.cc.
const biu::IndexSet & cpsp::HCore::getIndexedPSinglets |
( |
const biu::LatticeFrame * |
latFrame |
) |
|
Returns the indexed P-singlet positions of the first hull, shifted to the center of the lattice frame.
Returns the indexed P-singlet positions of the first hull, shifted to the center of the lattice frame.
Definition at line 202 of file HCore.cc.
int cpsp::HCore::getMaxDimension |
( |
|
) |
const [inline] |
Returns the maximal dimension of the surrounding core frame.
Definition at line 183 of file HCore.hh.
unsigned int cpsp::HCore::getMinEvenOdd |
( |
void |
|
) |
|
Returns the smaller number of even vs. odd positions.
Definition at line 214 of file HCore.cc.
int cpsp::HCore::getNumOfHSinglets |
( |
const biu::LatticeFrame * |
latFrame |
) |
|
Returns the number of H-singlets, if the core is valid, otherwise -1 is returned.
Definition at line 124 of file HCore.cc.
int cpsp::HCore::getNumOfPSinglets |
( |
const biu::LatticeFrame * |
latFrame |
) |
|
Returns the number of P-singlets, if the core is valid, otherwise -1 is returned.
Definition at line 162 of file HCore.cc.
const biu::IPointSet& cpsp::HCore::getPoints |
( |
|
) |
const [inline] |
Returns the unshifted H-core coordinates.
Definition at line 159 of file HCore.hh.
unsigned int cpsp::HCore::getSize |
( |
|
) |
const [inline] |
Returns the size of the H-core. The return value might differ from the available CorePoints of the H-core, if this core is NOT VALID.
Definition at line 146 of file HCore.hh.
void cpsp::HCore::indexHulls |
( |
const biu::LatticeFrame * |
latFrame, |
|
|
const unsigned int |
maxHullLevel | |
|
) |
| | [protected] |
Calculacte the indexed hulls of the H-core, shifted to the center of the lattice frame.
Definition at line 65 of file HCore.cc.
bool cpsp::HCore::isValid |
( |
|
) |
const [inline] |
Returns if this core is ready to be used. This is not the case, if not enough points are added.
Definition at line 155 of file HCore.hh.
void cpsp::HCore::reset |
( |
const unsigned int |
contacts, |
|
|
const unsigned int |
size | |
|
) |
| | |
Resizes the core to the given size and deletes the current point data. The H-core data has to be refilled afterwards to make it valid.
Definition at line 45 of file HCore.cc.
Field Documentation
the last frame size, that was used for indexing
Definition at line 114 of file HCore.hh.
the number of H-H-contacts in the h-core
Definition at line 102 of file HCore.hh.
the core frame of this H-core
Definition at line 111 of file HCore.hh.
The number of even positions of the core.
Definition at line 130 of file HCore.hh.
the indexed H-singlet positions of the core
Definition at line 122 of file HCore.hh.
the indexed hull data, shifted to the center of latFrame
Definition at line 117 of file HCore.hh.
the number of H-singlets
Definition at line 109 of file HCore.hh.
the number of P-singlets
Definition at line 108 of file HCore.hh.
the set of core elements.
Definition at line 106 of file HCore.hh.
the indexed P-singlet positions of the first hull
Definition at line 120 of file HCore.hh.
the number of CorePoints of the h-core
Definition at line 104 of file HCore.hh.
The documentation for this class was generated from the following files: