QUBO++ Library with QUBO Solver APIs
Author: Koji Nakano, License: Non-commercial research and evaluation purposes without any guarantees.
Public Member Functions | Private Types | Private Attributes | List of all members
qbpp::easy_solver::MinSet Class Reference

#include <qbpp_easy_solver.hpp>

Public Member Functions

 MinSet ()=default
 
vindex_t var_count () const
 
void insert (vindex_t index, energy_t delta)
 
void erase (vindex_t index, energy_t delta)
 
vindex_t get_first () const
 
void print (const std::string &prefix) const
 

Private Types

using ValIndexMap = std::set< std::pair< energy_t, vindex_t > >
 

Private Attributes

ValIndexMap set_
 

Detailed Description

Definition at line 104 of file qbpp_easy_solver.hpp.

Member Typedef Documentation

◆ ValIndexMap

using qbpp::easy_solver::MinSet::ValIndexMap = std::set<std::pair<energy_t, vindex_t> >
private

Definition at line 105 of file qbpp_easy_solver.hpp.

Constructor & Destructor Documentation

◆ MinSet()

qbpp::easy_solver::MinSet::MinSet ( )
default

Member Function Documentation

◆ var_count()

vindex_t qbpp::easy_solver::MinSet::var_count ( ) const
inline

Definition at line 112 of file qbpp_easy_solver.hpp.

Here is the caller graph for this function:

◆ insert()

void qbpp::easy_solver::MinSet::insert ( vindex_t  index,
energy_t  delta 
)
inline

Definition at line 114 of file qbpp_easy_solver.hpp.

Here is the caller graph for this function:

◆ erase()

void qbpp::easy_solver::MinSet::erase ( vindex_t  index,
energy_t  delta 
)
inline

Definition at line 123 of file qbpp_easy_solver.hpp.

Here is the caller graph for this function:

◆ get_first()

vindex_t qbpp::easy_solver::MinSet::get_first ( ) const
inline

Definition at line 132 of file qbpp_easy_solver.hpp.

Here is the caller graph for this function:

◆ print()

void qbpp::easy_solver::MinSet::print ( const std::string &  prefix) const
inline

Definition at line 134 of file qbpp_easy_solver.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ set_

ValIndexMap qbpp::easy_solver::MinSet::set_
private

Definition at line 107 of file qbpp_easy_solver.hpp.


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