LLVM API Documentation

PBQP::Solution Class Reference

#include <Solution.h>

Collaboration diagram for PBQP::Solution:
[legend]

List of all members.

Public Member Functions

 Solution ()
 Solution (unsigned length, bool assumeOptimal)
void setProvedOptimal (bool provedOptimal)
void setSelection (unsigned nodeID, unsigned selection)
void setSolutionCost (PBQPNum solutionCost)
void incR0Reductions ()
void incR1Reductions ()
void incR2Reductions ()
void incRNReductions ()
unsigned numNodes () const
unsigned getSelection (unsigned nodeID) const
PBQPNum getCost () const
bool isProvedOptimal () const
unsigned getR0Reductions () const
unsigned getR1Reductions () const
unsigned getR2Reductions () const
unsigned getRNReductions () const
bool operator== (const Solution &other) const
bool operator!= (const Solution &other) const

Friends

class SolverImplementation


Detailed Description

Definition at line 22 of file Solution.h.


Constructor & Destructor Documentation

PBQP::Solution::Solution (  )  [inline]

Definition at line 36 of file Solution.h.

PBQP::Solution::Solution ( unsigned  length,
bool  assumeOptimal 
) [inline]

Definition at line 40 of file Solution.h.


Member Function Documentation

void PBQP::Solution::setProvedOptimal ( bool  provedOptimal  )  [inline]

Definition at line 44 of file Solution.h.

void PBQP::Solution::setSelection ( unsigned  nodeID,
unsigned  selection 
) [inline]

void PBQP::Solution::setSolutionCost ( PBQPNum  solutionCost  )  [inline]

Definition at line 52 of file Solution.h.

void PBQP::Solution::incR0Reductions (  )  [inline]

Definition at line 56 of file Solution.h.

void PBQP::Solution::incR1Reductions (  )  [inline]

Definition at line 57 of file Solution.h.

void PBQP::Solution::incR2Reductions (  )  [inline]

Definition at line 58 of file Solution.h.

void PBQP::Solution::incRNReductions (  )  [inline]

Definition at line 59 of file Solution.h.

unsigned PBQP::Solution::numNodes (  )  const [inline]

Definition at line 61 of file Solution.h.

unsigned PBQP::Solution::getSelection ( unsigned  nodeID  )  const [inline]

Definition at line 63 of file Solution.h.

Referenced by PBQP::ExhaustiveSolverImpl::solve().

PBQPNum PBQP::Solution::getCost (  )  const [inline]

Definition at line 67 of file Solution.h.

bool PBQP::Solution::isProvedOptimal (  )  const [inline]

Definition at line 69 of file Solution.h.

unsigned PBQP::Solution::getR0Reductions (  )  const [inline]

Definition at line 71 of file Solution.h.

unsigned PBQP::Solution::getR1Reductions (  )  const [inline]

Definition at line 72 of file Solution.h.

unsigned PBQP::Solution::getR2Reductions (  )  const [inline]

Definition at line 73 of file Solution.h.

unsigned PBQP::Solution::getRNReductions (  )  const [inline]

Definition at line 74 of file Solution.h.

bool PBQP::Solution::operator== ( const Solution &  other  )  const [inline]

Definition at line 76 of file Solution.h.

References selections.

bool PBQP::Solution::operator!= ( const Solution &  other  )  const [inline]

Definition at line 80 of file Solution.h.


Friends And Related Function Documentation

friend class SolverImplementation [friend]

Definition at line 24 of file Solution.h.


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