C++ Reference

C++ Reference: Graph

LatticeMemoryManager< Set, CostType >

Detailed Description

template<typename Set, typename CostType>
class operations_research::LatticeMemoryManager< Set, CostType >

Definition at line 292 of file hamiltonian_path.h.

Public Member Functions

 LatticeMemoryManager ()
 
void Init (int max_card)
 
uint64_t Offset (Set s, int node) const
 
uint64_t BaseOffset (int card, Set s) const
 
uint64_t OffsetDelta (int card, int added_node, int removed_node, int rank) const
 
void SetValue (Set s, int node, CostType value)
 
void SetValueAtOffset (uint64_t offset, CostType value)
 
CostType Value (Set s, int node) const
 
CostType ValueAtOffset (uint64_t offset) const
 

Constructor & Destructor Documentation

◆ LatticeMemoryManager()

Definition at line 294 of file hamiltonian_path.h.

Member Function Documentation

◆ BaseOffset()

uint64_t BaseOffset ( int  card,
Set  s 
) const
inline

Definition at line 408 of file hamiltonian_path.h.

◆ Init()

void Init ( int  max_card)

Definition at line 358 of file hamiltonian_path.h.

◆ Offset()

uint64_t Offset ( Set  s,
int  node 
) const

Definition at line 432 of file hamiltonian_path.h.

◆ OffsetDelta()

uint64_t OffsetDelta ( int  card,
int  added_node,
int  removed_node,
int  rank 
) const
inline

Definition at line 311 of file hamiltonian_path.h.

◆ SetValue()

void SetValue ( Set  s,
int  node,
CostType  value 
)

Definition at line 444 of file hamiltonian_path.h.

◆ SetValueAtOffset()

void SetValueAtOffset ( uint64_t  offset,
CostType  value 
)
inline

Definition at line 324 of file hamiltonian_path.h.

◆ Value()

CostType Value ( Set  s,
int  node 
) const

Definition at line 438 of file hamiltonian_path.h.

◆ ValueAtOffset()

CostType ValueAtOffset ( uint64_t  offset) const
inline

Definition at line 334 of file hamiltonian_path.h.


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