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

#include <qbpp.hpp>

Public Member Functions

 IndexVarMapper (const Expr &expr)
 
const std::vector< Var > & get_index_var () const
 
const std::vector< vindex_t > & get_var_index () const
 
vindex_t var_count () const
 
vindex_t get_index (Var var) const
 
Var get_var (vindex_t index) const
 
bool has (Var var) const
 

Private Member Functions

std::vector< Varcompute_index_var (const Expr &expr)
 
std::vector< vindex_tcompute_var_index (const std::vector< Var > &index_var)
 
 IndexVarMapper ()=delete
 

Private Attributes

const std::vector< Varindex_var_
 
const std::vector< vindex_tvar_index_
 

Detailed Description

Definition at line 588 of file qbpp.hpp.

Constructor & Destructor Documentation

◆ IndexVarMapper() [1/2]

qbpp::impl::IndexVarMapper::IndexVarMapper ( )
privatedelete

◆ IndexVarMapper() [2/2]

qbpp::impl::IndexVarMapper::IndexVarMapper ( const Expr expr)
inlineexplicit

Definition at line 599 of file qbpp.hpp.

Member Function Documentation

◆ compute_index_var()

std::vector< Var > qbpp::impl::IndexVarMapper::compute_index_var ( const Expr expr)
inlineprivate

Definition at line 2127 of file qbpp.hpp.

Here is the call graph for this function:

◆ compute_var_index()

std::vector< vindex_t > qbpp::impl::IndexVarMapper::compute_var_index ( const std::vector< Var > &  index_var)
inlineprivate

Definition at line 2157 of file qbpp.hpp.

Here is the call graph for this function:

◆ get_index_var()

const std::vector<Var>& qbpp::impl::IndexVarMapper::get_index_var ( ) const
inline

Definition at line 603 of file qbpp.hpp.

Here is the caller graph for this function:

◆ get_var_index()

const std::vector<vindex_t>& qbpp::impl::IndexVarMapper::get_var_index ( ) const
inline

Definition at line 605 of file qbpp.hpp.

◆ var_count()

vindex_t qbpp::impl::IndexVarMapper::var_count ( ) const
inline

Definition at line 607 of file qbpp.hpp.

◆ get_index()

vindex_t qbpp::impl::IndexVarMapper::get_index ( Var  var) const
inline

Definition at line 611 of file qbpp.hpp.

Here is the call graph for this function:

◆ get_var()

Var qbpp::impl::IndexVarMapper::get_var ( vindex_t  index) const
inline

Definition at line 615 of file qbpp.hpp.

Here is the call graph for this function:

◆ has()

bool qbpp::impl::IndexVarMapper::has ( Var  var) const
inline

Definition at line 617 of file qbpp.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ index_var_

const std::vector<Var> qbpp::impl::IndexVarMapper::index_var_
private

Definition at line 589 of file qbpp.hpp.

◆ var_index_

const std::vector<vindex_t> qbpp::impl::IndexVarMapper::var_index_
private

Definition at line 590 of file qbpp.hpp.


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