Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
T_Weighted_vertex_graph_loader< PointD, WeightType, GraphType > Class Template Reference

Loader for one or more txt files listing weights. More...

#include <Weighted_vertex_graph_loader.hpp>

Public Types

typedef T_Weighted_vertex_graph_loader< PointD, WeightType, GraphType > Self
 
typedef SBL::IO::Loader_base Base
 
typedef boost::graph_traits< GraphType >::vertex_descriptor Vertex
 
typedef boost::graph_traits< GraphType >::edge_descriptor Edge
 
typedef boost::graph_traits< GraphType >::edge_iterator Edges_iterator
 

Static Public Member Functions

static boost::program_options::options_description *& get_options (void)
 Access to the options' description of the module. More...
 
static bool has_options (void)
 
static void delete_options (void)
 
static void initialize_options (const std::string &caption)
 

Constructors

 T_Weighted_vertex_graph_loader (void)
 Default constructor. More...
 

Options Descriptions

bool check_options (std::string &message) const
 Check that the parsed options are valid for this loader. More...
 

Output Prefix

std::string get_name (void) const
 Access to the output prefix of this loader. More...
 
std::string get_output_prefix (void) const
 Access to the output prefix of this loader. More...
 

Data Management

boost::program_options::options_description add_options (void) const
 Virtual method for adding options to the module. More...
 
const GraphType & get_data (unsigned i) const
 
GraphType & get_data (unsigned i)
 
const GraphType & get_data (void) const
 
GraphType & get_data (void)
 
bool load (unsigned verbose=false, std::ostream &out=std::cout)
 Once the command line options were parsed, build the containers of weights from the input files. More...
 
void statistics (std::ostream &out) const
 Print high level statistics on the loaded weights. More...
 

Management

void set_loader_instance_name (const std::string &loader_instance_name)
 
const std::string & get_loader_instance_name (void) const
 

Detailed Description

template<class PointD, class WeightType, class GraphType>
class SBL::IO::T_Weighted_vertex_graph_loader< PointD, WeightType, GraphType >

Loader for one or more txt files listing weights.

Template Parameters
FTRepresentation of a weight.

Member Typedef Documentation

◆ Base

◆ Edge

typedef boost::graph_traits<GraphType>::edge_descriptor Edge

◆ Edges_iterator

typedef boost::graph_traits<GraphType>::edge_iterator Edges_iterator

◆ Self

typedef T_Weighted_vertex_graph_loader<PointD, WeightType, GraphType> Self

◆ Vertex

typedef boost::graph_traits<GraphType>::vertex_descriptor Vertex

Constructor & Destructor Documentation

◆ T_Weighted_vertex_graph_loader()

T_Weighted_vertex_graph_loader ( void  )
inline

Default constructor.

Member Function Documentation

◆ add_options()

boost::program_options::options_description add_options ( void  ) const
inlinevirtual

Virtual method for adding options to the module.

Reimplemented from T_Module_option_description<>.

◆ check_options()

bool check_options ( std::string &  message) const
inlinevirtual

Check that the parsed options are valid for this loader.

Reimplemented from T_Module_option_description<>.

◆ delete_options()

static void delete_options ( void  )
inlinestaticinherited

◆ get_data() [1/4]

const GraphType & get_data ( unsigned  i) const
inline

◆ get_data() [2/4]

GraphType & get_data ( unsigned  i)
inline

◆ get_data() [3/4]

const GraphType & get_data ( void  ) const
inline

◆ get_data() [4/4]

GraphType & get_data ( void  )
inline

◆ get_loader_instance_name()

const std::string& get_loader_instance_name ( void  ) const
inlineinherited

◆ get_name()

std::string get_name ( void  ) const
inlinevirtual

Access to the output prefix of this loader.

Reimplemented from Loader_base.

◆ get_options()

static boost::program_options::options_description*& get_options ( void  )
inlinestaticinherited

Access to the options' description of the module.

◆ get_output_prefix()

std::string get_output_prefix ( void  ) const
inlinevirtual

Access to the output prefix of this loader.

Reimplemented from T_Module_option_description<>.

◆ has_options()

static bool has_options ( void  )
inlinestaticinherited

◆ initialize_options()

static void initialize_options ( const std::string &  caption)
inlinestaticinherited

◆ load()

bool load ( unsigned  verbose = false,
std::ostream &  out = std::cout 
)
inlinevirtual

Once the command line options were parsed, build the containers of weights from the input files.

Reimplemented from Loader_base.

◆ set_loader_instance_name()

void set_loader_instance_name ( const std::string &  loader_instance_name)
inlineinherited

◆ statistics()

void statistics ( std::ostream &  out) const
inline

Print high level statistics on the loaded weights.