Generated on for Gecode by doxygen 1.17.0
Gecode::IntDistance::Data Class Reference

Shared matrix or callable. More...

#include <gecode/int.hh>

Public Member Functions

 Data (int n, const IntArgs &matrix)
 Data (int n, std::function< int(int, int)> function)
virtual ~Data (void)
Public Member Functions inherited from Gecode::SharedHandle::Object
 Object (void)
 Initialize.
virtual ~Object (void)
 Delete shared object.

Public Attributes

const int n
 Number of sites.
const IntSharedArray matrix
 Row-major matrix, empty for a callable.
const std::function< int(int, int)> function
 Computed distance.

Additional Inherited Members

Static Public Member Functions inherited from Gecode::HeapAllocated
static void * operator new (size_t s)
 Memory management.
static void operator delete (void *p)
 Free memory allocated from heap.

Detailed Description

Shared matrix or callable.

Definition at line 3359 of file int.hh.

Constructor & Destructor Documentation

◆ Data() [1/2]

Gecode::IntDistance::Data::Data ( int n,
const IntArgs & matrix )

Definition at line 41 of file min-distance.cpp.

◆ Data() [2/2]

Gecode::IntDistance::Data::Data ( int n,
std::function< int(int, int)> function )

Definition at line 44 of file min-distance.cpp.

◆ ~Data()

Gecode::IntDistance::Data::~Data ( void )
virtual

Definition at line 47 of file min-distance.cpp.

Member Data Documentation

◆ n

const int Gecode::IntDistance::Data::n

Number of sites.

Definition at line 3361 of file int.hh.

◆ matrix

const IntSharedArray Gecode::IntDistance::Data::matrix

Row-major matrix, empty for a callable.

Definition at line 3362 of file int.hh.

◆ function

const std::function<int(int,int)> Gecode::IntDistance::Data::function

Computed distance.

Definition at line 3363 of file int.hh.


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