OR-Tools  8.2
TopN< Element >

Detailed Description

template<typename Element>
class operations_research::sat::TopN< Element >

Definition at line 232 of file linear_constraint_manager.h.

Public Member Functions

 TopN (int n)
 
void Clear ()
 
void Add (Element e, double score)
 
const std::vector< Element > & UnorderedElements () const
 

Constructor & Destructor Documentation

◆ TopN()

TopN ( int  n)
inlineexplicit

Definition at line 234 of file linear_constraint_manager.h.

Member Function Documentation

◆ Add()

void Add ( Element  e,
double  score 
)
inline

Definition at line 241 of file linear_constraint_manager.h.

◆ Clear()

void Clear ( )
inline

Definition at line 236 of file linear_constraint_manager.h.

◆ UnorderedElements()

const std::vector<Element>& UnorderedElements ( ) const
inline

Definition at line 262 of file linear_constraint_manager.h.


The documentation for this class was generated from the following file: