template <class Molecule> struct harmonic_topological_index : std::unary_function<Molecule, typename Molecule::calc_type> { result_type operator()(typename boost::call_traits<argument_type>::param_type m); };
Argument | Model of |
---|---|
Molecule | cdl::molecule |
// suppose you're streaming a mol format from the stdin: typedef desc_molecular_properties<> desc_mol_props_t; typedef boost::property<mol_propsS, molecular_properties<>, boost::property<descriptors_mol_propsS, desc_mol_props_t> > descr_props_t; typedef molecule<double,descr_props_t> M; morpho::cdl::nail_juice<M> j; morpho::cdl::get_juice_from_stream(std::cin, j, 0, sdf_formatT()); M mol(j); morpho::cdl::harmonic_topological_index<M> HTI; std::cout << "Harmonic topological index of my mol: "; std::cout << HTI(mol) << '\n';