Develop Biology
The language of life
|
#include <Bond.h>
Public Member Functions | |
Bond () | |
Bond (AtomicNumber id, physical::Wave *bonded, BondType type=bond_type::Unknown()) | |
~Bond () | |
void | Break () |
bool | Form (AtomicNumber id, physical::Wave *bonded, BondType type=bond_type::Unknown()) |
physical::Wave * | GetBonded () |
const physical::Wave * | GetBonded () const |
AtomicNumber | GetId () const |
BondType | GetType () const |
bool | IsEmpty () const |
bool | operator== (const AtomicNumber id) const |
bool | operator== (const Bond &other) const |
Bonds are used by Atom to form relationships to Waves. These can be thought of as edges in a directed graph. See Atom.h for more info.
NOTE: Bonds may currently only be of a single BondType. This may change in a future release.
bio::chemical::Bond::Bond | ( | ) |
Definition at line 30 of file Bond.cpp.
bio::chemical::Bond::Bond | ( | AtomicNumber | id, |
physical::Wave * | bonded, | ||
BondType | type = bond_type::Unknown() |
||
) |
void bio::chemical::Bond::Break | ( | ) |
Empties the contents of *this.
Definition at line 94 of file Bond.cpp.
References bio::bond_type::Empty().
Referenced by bio::molecular::Surface::~Surface(), bio::molecular::Surface::Release(), and bio::molecular::Surface::ReleaseAll().
bool bio::chemical::Bond::Form | ( | AtomicNumber | id, |
physical::Wave * | bonded, | ||
BondType | type = bond_type::Unknown() |
||
) |
Update the contents of *this. Only works if *this IsEmpty().
id | |
bonded | |
type |
Definition at line 55 of file Bond.cpp.
References BIO_SANITIZE.
Referenced by bio::chemical::Atom::FormBondImplementation().
physical::Wave * bio::chemical::Bond::GetBonded | ( | ) |
Definition at line 74 of file Bond.cpp.
Referenced by bio::molecular::Surface::~Surface(), bio::chemical::Atom::Attenuate(), bio::chemical::Atom::Disattenuate(), bio::chemical::UnorderedStructureInterface::ImportAll(), bio::chemical::LinearMotif< CONTENT_TYPE >::InsertImplementation(), bio::molecular::Surface::Release(), and bio::molecular::Surface::ReleaseAll().
const physical::Wave * bio::chemical::Bond::GetBonded | ( | ) | const |
AtomicNumber bio::chemical::Bond::GetId | ( | ) | const |
Definition at line 69 of file Bond.cpp.
Referenced by bio::chemical::UnorderedStructureInterface::ImportAll(), and bio::chemical::LinearMotif< CONTENT_TYPE >::InsertImplementation().
BondType bio::chemical::Bond::GetType | ( | ) | const |
Definition at line 84 of file Bond.cpp.
Referenced by bio::molecular::Surface::~Surface(), bio::molecular::Surface::Release(), and bio::molecular::Surface::ReleaseAll().
bool bio::chemical::Bond::IsEmpty | ( | ) | const |
Definition at line 89 of file Bond.cpp.
References bio::bond_type::Empty().
Referenced by bio::chemical::Atom::Attenuate(), bio::chemical::Atom::Disattenuate(), bio::chemical::Atom::FormBondImplementation(), bio::chemical::UnorderedStructureInterface::ImportAll(), and bio::chemical::LinearMotif< CONTENT_TYPE >::InsertImplementation().
bool bio::chemical::Bond::operator== | ( | const AtomicNumber | id | ) | const |
bool bio::chemical::Bond::operator== | ( | const Bond & | other | ) | const |