Module building the buried surface area of a partner from the alpha-complex of a molecular model. Module building the buried surface area of a partner from the alpha-complex of a molecular model.
More...
#include "Buried_surface_area_without_label_module.hpp"
static boost::program_options::options_description *& get_options (void)
Access to the options' description of the module.
typedef ModuleTraits::Alpha_complex Alpha_complex
Derived class from CGAL alpha-complex for filling it with particles.
typedef ModuleTraits::Is_in_partner Is_in_partner
Predicate checking that an input particle is in a given partner.
void run (unsigned verbose, std::ostream &out) override
Runs the module following the input options.
bool is_runnable (void) const override
Checks that all the input options were set.
void statistics (std::ostream &out) override
Reports high-level statistics on the module.
std::string get_name (void) const override
Returns the name of the package.
boost::program_options::options_description add_options (void) override
Virtual method for adding options to the module.
bool check_options (std::string &message) const override
Checks that the input options' values are coherent.
std::string get_output_prefix (void) const override
Returns a prefix that concatains the input line options used when running the module.
void report (const std::string &prefix) override
Reports the output and statistics in output files.
void set_module_instance_name (const std::string &module_instance_name)
Sets a name for this instance of this module. In particular, it will be used in the prefix of output files generated by a collection of modules.
const std::string & get_module_instance_name (void) const
Get the name of this instance of this module.
void set_report_mode (std::ios_base::openmode report_mode)
Set a report mode, that is open or append modes.
void set_report_mode (std::ios_base::openmode &report_mode)
Set a report mode, that is open or append modes.
const std::ios_base::openmode get_report_mode (void) const
Get the report mode to be used when reporting.
template<class Self_>
Self_ * clone (const Self_ *s) const
Clones the object using the copy constructor.
virtual bool is_logical_module (void) const
Checks that this module defines a logical operator.
virtual bool is_condition_module (void) const
Checks that this module defines a condition operator.
virtual bool operator() (void)
Only for condition modules, for returning the predicate value.
virtual bool is_modules_collection (void) const
Checks that this module defines a collection of modules.
template<
class ModuleTraits>
class SBL::Modules::T_Buried_surface_area_without_label_module< ModuleTraits >
Module building the buried surface area of a partner from the alpha-complex of a molecular model. Module building the buried surface area of a partner from the alpha-complex of a molecular model.
It builds from an input -complex of type SBL::Modules::T_Buried_surface_area_without_label_module::Alpha_complex , an object of type SBL::Modules::T_Buried_surface_area_without_label_module::Buried_surface_area : it is a functor that returns the buried surface area of the input -complex restricted to a partner defined by an input predicate of type SBL::Modules::T_Buried_surface_area_without_label_module::Is_in_partner . This predicate simply checks that an input particle is in the requested partner. Note that contrarily to the module SBL::Modules::T_Buried_surface_area_with_labels_module , this module computes the buried surface area of only one partner.
The input -complex can be set using the method SBL::Modules::T_Buried_surface_area_without_label_module::get_alpha_complex , that returns a reference over a pointer on the input -complex.
The input partner's predicate be set using the method SBL::Modules::T_Buried_surface_area_without_label_module::get_is_in_partner , that returns a reference over a pointer on the input predicate.
The built functor for computing the buried surfacve area is accessible with the method SBL::Modules::T_Buried_surface_area_without_label_module::get_buried_surface_area .
Template Parameters
◆ Alpha_complex
template<
class ModuleTraits>
◆ Buried_surface_area
template<
class ModuleTraits>
Compute the buried surface area of two given partners.
Compute the buried surface area of two given partners
Template Parameters
ParticleTraits Model of the concept ParticleTraits .
FT Number type used for representing the buried surface area (default is intervals of double).
◆ Is_in_partner
template<
class ModuleTraits>
Predicate checking that an input particle is in a given partner.
◆ add_options()
template<
class ModuleTraits>
boost::program_options::options_description add_options
(
void )
inline override virtual
◆ check_filesystem_directory_exists()
void check_filesystem_directory_exists
(
const std::string & output_prefix )
inline inherited
To avoid later crash: check filesystem / existence of directory / directory exists.
◆ check_options()
template<
class ModuleTraits>
bool check_options
(
std::string & message )
const
inline override virtual
◆ clone()
Self_ * clone
(
const Self_ * s )
const
inline inherited
Clones the object using the copy constructor.
◆ get_alpha_complex()
template<
class ModuleTraits>
Reference to a pointer over the input -complex.
◆ get_buried_surface_area() [1/2]
template<
class ModuleTraits>
Reference to the output buried surface area functor.
◆ get_buried_surface_area() [2/2]
template<
class ModuleTraits>
Const reference to the output buried surface area functor.
◆ get_is_in_partner()
template<
class ModuleTraits>
Reference to the input predicate.
◆ get_module_instance_name()
const std::string & get_module_instance_name
(
void )
const
inline inherited
Get the name of this instance of this module.
◆ get_name()
template<
class ModuleTraits>
std::string get_name
(
void )
const
inline override virtual
Returns the name of the package.
Reimplemented from Module_base .
◆ get_options()
template<
class Dummy = void>
boost::program_options::options_description *& get_options
(
void )
inline static inherited
Access to the options' description of the module.
◆ get_output_prefix()
template<
class ModuleTraits>
std::string get_output_prefix
(
void )
const
inline override virtual
◆ get_report_mode()
const std::ios_base::openmode get_report_mode
(
void )
const
inline inherited
Get the report mode to be used when reporting.
◆ is_condition_module()
virtual bool is_condition_module
(
void )
const
inline protected virtual inherited
Checks that this module defines a condition operator.
◆ is_logical_module()
virtual bool is_logical_module
(
void )
const
inline protected virtual inherited
Checks that this module defines a logical operator.
◆ is_modules_collection()
virtual bool is_modules_collection
(
void )
const
inline protected virtual inherited
Checks that this module defines a collection of modules.
◆ is_runnable()
template<
class ModuleTraits>
bool is_runnable
(
void )
const
inline override virtual
Checks that all the input options were set.
Reimplemented from Module_base .
◆ operator()()
virtual bool operator()
(
void )
inline protected virtual inherited
Only for condition modules, for returning the predicate value.
◆ report()
template<
class ModuleTraits>
void report
(
const std::string & prefix )
inline override virtual
Reports the output and statistics in output files.
Reimplemented from Module_base .
◆ run()
template<
class ModuleTraits>
void run
(
unsigned verbose ,
std::ostream & out )
inline override virtual
Runs the module following the input options.
Implements Module_base .
◆ set_module_instance_name()
void set_module_instance_name
(
const std::string & module_instance_name )
inline inherited
Sets a name for this instance of this module. In particular, it will be used in the prefix of output files generated by a collection of modules.
◆ set_report_mode() [1/2]
void set_report_mode
(
std::ios_base::openmode & report_mode )
inline inherited
Set a report mode, that is open or append modes.
◆ set_report_mode() [2/2]
void set_report_mode
(
std::ios_base::openmode report_mode )
inline inherited
Set a report mode, that is open or append modes.
◆ statistics()
template<
class ModuleTraits>
void statistics
(
std::ostream & out )
inline override virtual
Reports high-level statistics on the module.
Reimplemented from Module_base .