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::VarInt Class Reference

#include <qbpp.hpp>

Collaboration diagram for qbpp::VarInt:
Collaboration graph
[legend]

Public Member Functions

 VarInt (const std::string &var_str, energy_t min_val, energy_t max_val, std::shared_ptr< std::vector< coeff_t >> coeffs_ptr)
 
 VarInt (const VarInt &)=default
 
std::string get_name () const
 
vindex_t var_count () const
 
energy_t min_val () const
 
energy_t max_val () const
 
coeff_t get_coeff (vindex_t i) const
 
Var get_var (vindex_t i) const
 
Var operator[] (vindex_t i) const
 
const Exprget_expr () const
 
VarValMap get_val_map (energy_t val) const
 

Private Member Functions

const Vector< Varnew_vars () const
 
const Expr new_expr () const
 

Private Attributes

const std::string var_str_
 
const energy_t min_val_
 
const energy_t max_val_
 
const std::shared_ptr< std::vector< coeff_t > > coeffs_ptr_
 
const Vector< Varvars_
 
const Expr expr_
 

Detailed Description

Definition at line 1028 of file qbpp.hpp.

Constructor & Destructor Documentation

◆ VarInt() [1/2]

qbpp::VarInt::VarInt ( const std::string &  var_str,
energy_t  min_val,
energy_t  max_val,
std::shared_ptr< std::vector< coeff_t >>  coeffs_ptr 
)
inline

Definition at line 1059 of file qbpp.hpp.

◆ VarInt() [2/2]

qbpp::VarInt::VarInt ( const VarInt )
default

Member Function Documentation

◆ new_vars()

const Vector<Var> qbpp::VarInt::new_vars ( ) const
inlineprivate

Definition at line 1038 of file qbpp.hpp.

Here is the call graph for this function:

◆ new_expr()

const Expr qbpp::VarInt::new_expr ( ) const
inlineprivate

Definition at line 1050 of file qbpp.hpp.

◆ get_name()

std::string qbpp::VarInt::get_name ( ) const
inline

Definition at line 1070 of file qbpp.hpp.

◆ var_count()

vindex_t qbpp::VarInt::var_count ( ) const
inline

Definition at line 1072 of file qbpp.hpp.

Here is the call graph for this function:

◆ min_val()

energy_t qbpp::VarInt::min_val ( ) const
inline

Definition at line 1074 of file qbpp.hpp.

◆ max_val()

energy_t qbpp::VarInt::max_val ( ) const
inline

Definition at line 1076 of file qbpp.hpp.

◆ get_coeff()

coeff_t qbpp::VarInt::get_coeff ( vindex_t  i) const
inline

Definition at line 1078 of file qbpp.hpp.

◆ get_var()

Var qbpp::VarInt::get_var ( vindex_t  i) const
inline

Definition at line 1080 of file qbpp.hpp.

◆ operator[]()

Var qbpp::VarInt::operator[] ( vindex_t  i) const
inline

Definition at line 1082 of file qbpp.hpp.

◆ get_expr()

const Expr& qbpp::VarInt::get_expr ( ) const
inline

Definition at line 1084 of file qbpp.hpp.

◆ get_val_map()

VarValMap qbpp::VarInt::get_val_map ( energy_t  val) const
inline

Definition at line 1086 of file qbpp.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ var_str_

const std::string qbpp::VarInt::var_str_
private

Definition at line 1030 of file qbpp.hpp.

◆ min_val_

const energy_t qbpp::VarInt::min_val_
private

Definition at line 1032 of file qbpp.hpp.

◆ max_val_

const energy_t qbpp::VarInt::max_val_
private

Definition at line 1033 of file qbpp.hpp.

◆ coeffs_ptr_

const std::shared_ptr<std::vector<coeff_t> > qbpp::VarInt::coeffs_ptr_
private

Definition at line 1034 of file qbpp.hpp.

◆ vars_

const Vector<Var> qbpp::VarInt::vars_
private

Definition at line 1035 of file qbpp.hpp.

◆ expr_

const Expr qbpp::VarInt::expr_
private

Definition at line 1036 of file qbpp.hpp.


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