RDKit
Open-source cheminformatics and machine learning.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RankAtoms.h File Reference
#include <queue>
#include <vector>
#include <list>
#include <algorithm>
#include <boost/foreach.hpp>

Go to the source code of this file.

Classes

struct  RankAtoms::pairGreater< T1, T2 >
 functor for implementing > on two std::pairs. The first entries are compared. More...
 
struct  RankAtoms::pairLess< T1, T2 >
 function for implementing < on two std::pairs. The first entries are compared. More...
 
class  RankAtoms::argless< T >
 

Namespaces

 RankAtoms
 Utility functionality used by atom rankers.
 

Typedefs

typedef std::vector< int > RankAtoms::INT_VECT
 
typedef std::list< int > RankAtoms::INT_LIST
 

Functions

void RankAtoms::updateInPlayIndices (const INT_VECT &ranks, INT_LIST &indicesInPlay)
 utility function for ranking atoms More...
 
template<typename T >
unsigned int RankAtoms::countClasses (const std::vector< T > &vect)
 returns the count of unique items in an std::vector More...
 
template<typename T >
void RankAtoms::rankVect (const std::vector< T > &vect, INT_VECT &res)
 ranks the entries in a vector More...
 
template<typename T >
void RankAtoms::sortAndRankVect (unsigned int nAtoms, const std::vector< T > &vals, const INT_LIST &indicesInPlay, INT_VECT &ranks)
 finds the relative rankings of the entries in vals. More...
 
template<typename T >
void RankAtoms::sortAndRankVect2 (const std::vector< std::vector< T > > &vals, const INT_LIST &indicesInPlay, INT_VECT &ranks)