Rosetta Utilities  2014.35
Classes | Namespaces
TopScoreSelector.hh File Reference

Class for keeping the N top-scoring objects. More...

#include <utility/TopScoreSelector.fwd.hh>
#include <utility/vector1.hh>
#include <platform/types.hh>
#include <cassert>
#include <iostream>

Classes

class  utility::TopScoreSelector< T, S >
 The TopScoreSelector keeps an in-place, sorted, singly-linked list of the N top-scoring objects and their scores that it encounters. In the case of ties, the first object(s) encountered are kept. Class T must have a default constructor, a copy constructor, and must be assignable. Class S must be assignable and comparable, both by a < operator and by a > operator. More...
 

Namespaces

 utility
 unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 1.
 

Detailed Description

Class for keeping the N top-scoring objects.

Author
Andrew Leaver-Fay (aleav.nosp@m.erfa.nosp@m.y@gma.nosp@m.il.c.nosp@m.om)