Generated on for Gecode by doxygen 1.17.0
Gecode::Search::PbsCutoff Class Reference

Cutoff of a portfolio asset, the assets share the sequence of values. More...

#include <gecode/search/pbs.hpp>

Public Member Functions

 PbsCutoff (PbsCutoffs *s0)
 Initialize as a new reference to s0.
unsigned long long int operator() (void) const override
 Return the current cutoff value.
unsigned long long int operator++ (void) override
 Take the next value of the shared sequence and return it.
 ~PbsCutoff (void) override
 Release the reference to the shared sequence.
 Cutoff (void)
 Default constructor.
virtual ~Cutoff (void)
 Destructor.

Protected Attributes

PbsCutoffs * s
 The shared sequence.
unsigned long long int v
 The current cutoff value of this asset.

Additional Inherited Members

static Cutoff * constant (unsigned long long int scale=Config::slice)
 Create generator for constant sequence with constant s.
static Cutoff * linear (unsigned long long int scale=Config::slice)
 Create generator for linear sequence scaled by scale.
static Cutoff * geometric (unsigned long long int scale=Config::slice, double base=Config::base)
static Cutoff * luby (unsigned long long int scale=Config::slice)
 Create generator for luby sequence with scale-factor scale.
static Cutoff * rnd (unsigned int seed, unsigned long long int min, unsigned long long int max, unsigned long long int n)
static Cutoff * append (Cutoff *c1, unsigned long long int n, Cutoff *c2)
 Append cutoff values from c2 after n values from c1.
static Cutoff * merge (Cutoff *c1, Cutoff *c2)
 Merge cutoff values from c1 with values from c2.
static Cutoff * repeat (Cutoff *c, unsigned long long int n)
 Create generator that repeats n times each cutoff value from c.
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

Cutoff of a portfolio asset, the assets share the sequence of values.

Definition at line 173 of file pbs.hpp.

Constructor & Destructor Documentation

◆ PbsCutoff()

Gecode::Search::PbsCutoff::PbsCutoff ( PbsCutoffs * s0)
inline

Initialize as a new reference to s0.

Definition at line 181 of file pbs.hpp.

◆ ~PbsCutoff()

Gecode::Search::PbsCutoff::~PbsCutoff ( void )
inlineoverride

Release the reference to the shared sequence.

Definition at line 197 of file pbs.hpp.

Member Function Documentation

◆ operator()()

unsigned long long int Gecode::Search::PbsCutoff::operator() ( void ) const
inlineoverridevirtual

Return the current cutoff value.

Implements Gecode::Search::Cutoff.

Definition at line 187 of file pbs.hpp.

◆ operator++()

unsigned long long int Gecode::Search::PbsCutoff::operator++ ( void )
inlineoverridevirtual

Take the next value of the shared sequence and return it.

Implements Gecode::Search::Cutoff.

Definition at line 191 of file pbs.hpp.

Member Data Documentation

◆ s

PbsCutoffs* Gecode::Search::PbsCutoff::s
protected

The shared sequence.

Definition at line 176 of file pbs.hpp.

◆ v

unsigned long long int Gecode::Search::PbsCutoff::v
protected

The current cutoff value of this asset.

Definition at line 178 of file pbs.hpp.


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