HOG2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Solution Class Reference
Collaboration diagram for Solution:
Collaboration graph
[legend]

Public Member Functions

 Solution (const HeuristicTable &hTable, const HeuristicTableEntry &onlyEntry)
 
 Solution (const HeuristicTable &hTable, const HeuristicTableEntry &firstEntry, const shared_ptr< const Solution > &subsolution)
 
uint64_t GetCost () const
 
vector< int > GetHValues () const
 
double GetAverageH (const vector< uint64_t > &histogram) const
 

Private Member Functions

int GetFirstH () const
 
int GetNextH () const
 

Private Attributes

const HeuristicTableEntryfirstEntry
 
shared_ptr< const Solutionsubsolution
 
uint64_t cost
 

Detailed Description

Definition at line 87 of file RangeCompression.cpp.

Constructor & Destructor Documentation

◆ Solution() [1/2]

Solution::Solution ( const HeuristicTable hTable,
const HeuristicTableEntry onlyEntry 
)
inline

Definition at line 104 of file RangeCompression.cpp.

◆ Solution() [2/2]

Solution::Solution ( const HeuristicTable hTable,
const HeuristicTableEntry firstEntry,
const shared_ptr< const Solution > &  subsolution 
)
inline

Definition at line 112 of file RangeCompression.cpp.

Member Function Documentation

◆ GetAverageH()

double Solution::GetAverageH ( const vector< uint64_t > &  histogram) const
inline

Definition at line 136 of file RangeCompression.cpp.

References GetFirstH(), GetNextH(), and subsolution.

Referenced by DumpSolution().

◆ GetCost()

uint64_t Solution::GetCost ( ) const
inline

Definition at line 122 of file RangeCompression.cpp.

Referenced by DumpSolution(), and Optimize().

◆ GetFirstH()

int Solution::GetFirstH ( ) const
inlineprivate

Definition at line 92 of file RangeCompression.cpp.

References HeuristicTableEntry::GetH().

Referenced by GetAverageH(), and GetHValues().

◆ GetHValues()

vector<int> Solution::GetHValues ( ) const
inline

Definition at line 126 of file RangeCompression.cpp.

References GetFirstH(), and subsolution.

Referenced by DumpSolution().

◆ GetNextH()

int Solution::GetNextH ( ) const
inlineprivate

Definition at line 96 of file RangeCompression.cpp.

References max.

Referenced by GetAverageH().

Member Data Documentation

◆ cost

uint64_t Solution::cost
private

Definition at line 90 of file RangeCompression.cpp.

◆ firstEntry

const HeuristicTableEntry* Solution::firstEntry
private

Definition at line 88 of file RangeCompression.cpp.

◆ subsolution

shared_ptr<const Solution> Solution::subsolution
private

Definition at line 89 of file RangeCompression.cpp.

Referenced by GetAverageH(), and GetHValues().


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