Chemical Descriptors Library: sum_bonds
|
Bond Functors
|
|
sum_bonds
Object type
Unary function
Description
Accumulates in the public member result the explicit number of bonds of
a bond object: ie. 2 if double bond, 3 if triple, etc..
Prototype
template <class Bond>
struct sum_bonds : std::unary_function<Bond,void> {
explicit sum_bonds(unsigned init_ = unsigned() );
void operator () (typename boost::call_traits<argument_type>::param_type bond_);
unsigned result;
};
Associated types
type name | Description | member type |
argument_type |
The bond type |
public |
result_type |
bool |
public |
Property |
the type of the bond_type property |
public |
Definition
#include <morpho/cdl/bond/functors/bond_ftors.hpp>
Preconditions
Complexity
Example
References
Copyright © Vladimir Josef Sykora & Morphochem AG 2003
Copyright © Vladimir Josef Sykora 2003-2006