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

#include <qbpp.hpp>

Inheritance diagram for qbpp::Model:
Inheritance graph
[legend]

Public Member Functions

 Model (const Model &model)
 
 Model (const Expr &expr)
 
 Model (Model &&)=default
 
 Model (Expr &&expr) noexcept
 
virtual ~Model ()=default
 
vindex_t var_count () const
 
Var get_var (vindex_t index) const
 
vindex_t get_index (Var var) const
 
bool has (Var var) const
 
virtual size_t term_count () const
 
const Exprget_expr () const
 
 operator const Expr & () const
 
energy_t get_constant () const
 
const Termsget_terms () const
 
std::vector< Varget_index_var () const
 

Protected Member Functions

 Model ()=delete
 
Modeloperator= (const Model &)=delete
 
Modeloperator= (Model &&)=delete
 

Static Protected Member Functions

static const Exprcheck_expr (const Expr &expr)
 
static Expr check_expr (Expr &&expr)
 

Protected Attributes

const std::shared_ptr< const Exprexpr_ptr_
 
const std::shared_ptr< const impl::IndexVarMapperindex_var_ptr_
 

Detailed Description

Definition at line 1105 of file qbpp.hpp.

Constructor & Destructor Documentation

◆ Model() [1/5]

qbpp::Model::Model ( )
protecteddelete

◆ Model() [2/5]

qbpp::Model::Model ( const Model model)
inline

Definition at line 1136 of file qbpp.hpp.

◆ Model() [3/5]

qbpp::Model::Model ( const Expr expr)
inline

Definition at line 1140 of file qbpp.hpp.

◆ Model() [4/5]

qbpp::Model::Model ( Model &&  )
default

◆ Model() [5/5]

qbpp::Model::Model ( Expr &&  expr)
inlinenoexcept

Definition at line 1147 of file qbpp.hpp.

◆ ~Model()

virtual qbpp::Model::~Model ( )
virtualdefault

Member Function Documentation

◆ check_expr() [1/2]

static const Expr& qbpp::Model::check_expr ( const Expr expr)
inlinestaticprotected

Definition at line 1111 of file qbpp.hpp.

Here is the call graph for this function:

◆ check_expr() [2/2]

static Expr qbpp::Model::check_expr ( Expr &&  expr)
inlinestaticprotected

Definition at line 1120 of file qbpp.hpp.

Here is the call graph for this function:

◆ operator=() [1/2]

Model& qbpp::Model::operator= ( const Model )
protecteddelete

◆ operator=() [2/2]

Model& qbpp::Model::operator= ( Model &&  )
protecteddelete

◆ var_count()

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

Definition at line 1154 of file qbpp.hpp.

Here is the caller graph for this function:

◆ get_var()

Var qbpp::Model::get_var ( vindex_t  index) const
inline

Definition at line 1156 of file qbpp.hpp.

Here is the caller graph for this function:

◆ get_index()

vindex_t qbpp::Model::get_index ( Var  var) const
inline

Definition at line 1158 of file qbpp.hpp.

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

◆ has()

bool qbpp::Model::has ( Var  var) const
inline

Definition at line 1160 of file qbpp.hpp.

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

◆ term_count()

virtual size_t qbpp::Model::term_count ( ) const
inlinevirtual

Reimplemented in qbpp::QuadModel.

Definition at line 1162 of file qbpp.hpp.

◆ get_expr()

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

Definition at line 1164 of file qbpp.hpp.

Here is the caller graph for this function:

◆ operator const Expr &()

qbpp::Model::operator const Expr & ( ) const
inline

Definition at line 1166 of file qbpp.hpp.

◆ get_constant()

energy_t qbpp::Model::get_constant ( ) const
inline

Definition at line 1168 of file qbpp.hpp.

Here is the caller graph for this function:

◆ get_terms()

const Terms& qbpp::Model::get_terms ( ) const
inline

Definition at line 1170 of file qbpp.hpp.

◆ get_index_var()

std::vector<Var> qbpp::Model::get_index_var ( ) const
inline

Definition at line 1172 of file qbpp.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ expr_ptr_

const std::shared_ptr<const Expr> qbpp::Model::expr_ptr_
protected

Definition at line 1107 of file qbpp.hpp.

◆ index_var_ptr_

const std::shared_ptr<const impl::IndexVarMapper> qbpp::Model::index_var_ptr_
protected

Definition at line 1109 of file qbpp.hpp.


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