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

#include <qbpp_easy_solver.hpp>

Public Member Functions

 RandomSet (vindex_t size)
 
vindex_t var_count () const
 
void insert (vindex_t index)
 
void swap (vindex_t pos1, vindex_t pos2)
 
void erase (vindex_t index)
 
bool has (vindex_t index) const
 
vindex_t select_at_random () const
 
void print (const std::string &prefix="") const
 

Private Attributes

std::vector< vindex_tposition_
 
std::vector< vindex_tvariables_
 

Detailed Description

Definition at line 49 of file qbpp_easy_solver.hpp.

Constructor & Destructor Documentation

◆ RandomSet()

qbpp::easy_solver::RandomSet::RandomSet ( vindex_t  size)
inlineexplicit

Definition at line 55 of file qbpp_easy_solver.hpp.

Member Function Documentation

◆ var_count()

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

Definition at line 59 of file qbpp_easy_solver.hpp.

Here is the caller graph for this function:

◆ insert()

void qbpp::easy_solver::RandomSet::insert ( vindex_t  index)
inline

Definition at line 63 of file qbpp_easy_solver.hpp.

Here is the caller graph for this function:

◆ swap()

void qbpp::easy_solver::RandomSet::swap ( vindex_t  pos1,
vindex_t  pos2 
)
inline

Definition at line 72 of file qbpp_easy_solver.hpp.

Here is the caller graph for this function:

◆ erase()

void qbpp::easy_solver::RandomSet::erase ( vindex_t  index)
inline

Definition at line 79 of file qbpp_easy_solver.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ has()

bool qbpp::easy_solver::RandomSet::has ( vindex_t  index) const
inline

Definition at line 89 of file qbpp_easy_solver.hpp.

Here is the caller graph for this function:

◆ select_at_random()

vindex_t qbpp::easy_solver::RandomSet::select_at_random ( ) const
inline

Definition at line 91 of file qbpp_easy_solver.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print()

void qbpp::easy_solver::RandomSet::print ( const std::string &  prefix = "") const
inline

Definition at line 95 of file qbpp_easy_solver.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ position_

std::vector<vindex_t> qbpp::easy_solver::RandomSet::position_
private

Definition at line 50 of file qbpp_easy_solver.hpp.

◆ variables_

std::vector<vindex_t> qbpp::easy_solver::RandomSet::variables_
private

Definition at line 52 of file qbpp_easy_solver.hpp.


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