Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
|
Specialized vertex of a 3D triangulation with an attached particle. More...
#include <Alpha_complex_of_molecular_model.hpp>
Classes | |
class | Rebind_TDS |
Rebind data structure for inheriting from a vertex data structure as specified in the CGAL library. More... | |
Serialization | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned BOOST_PFTO int version) |
Serializes this vertex by serializing only its particle, if any. More... | |
Constructors | |
T_Particle_vertex_base (void) | |
Default constructor: the pointer to the particle is set to NULL. More... | |
Particle Managment | |
void | set_particle (typename ParticleTraits::Particle_type &p) |
Sets the pointer to the particle (no copy of particle) More... | |
bool | has_particle (void) const |
Checks that this vertex has a particle. Note that if the associated particle does not exist anymore, the pointer is invalidated, but this method will return true anyway. More... | |
ParticleTraits::Particle_type & | get_particle (void) |
Accesses to a reference of the particle (it has to exist). More... | |
const ParticleTraits::Particle_type & | get_particle (void) const |
Accesses to a const reference of the particle (it has to exist). More... | |
Ordering | |
bool | operator< (const Self &other) const |
Orders the vertices from natural ordering of the particles. More... | |
bool | operator> (const Self &other) const |
bool | operator<= (const Self &other) const |
bool | operator>= (const Self &other) const |
bool | operator== (const Self &other) const |
bool | operator!= (const Self &other) const |
Specialized vertex of a 3D triangulation with an attached particle.
It uses the rebind method as described in the CGAL library for inheriting from a vertex data structure with attached info (CGAL::Triangulation_vertex_base_with_info_3), the info being a pointer over the particle type for avoiding copy of particles. The access to the particle is done through its reference. To check if a vertex has an attributed particle, the method has_particle can be used.
class SBL::CSB::T_Particle_vertex_base::Rebind_TDS |
Rebind data structure for inheriting from a vertex data structure as specified in the CGAL library.
|
inline |
Default constructor: the pointer to the particle is set to NULL.
|
inline |
Accesses to a reference of the particle (it has to exist).
|
inline |
Accesses to a const reference of the particle (it has to exist).
|
inline |
Checks that this vertex has a particle. Note that if the associated particle does not exist anymore, the pointer is invalidated, but this method will return true anyway.
|
inline |
Orders the vertices from natural ordering of the particles.
|
inline |
Serializes this vertex by serializing only its particle, if any.
|
inline |
Sets the pointer to the particle (no copy of particle)