Generated on for Gecode by doxygen 1.17.0
Gecode::Instance::Binding Class Reference

A name bound by a comprehension, visible while the binding exists. More...

#include <gecode/instance/eval.hpp>

Public Member Functions

 Binding (const Binding *&b, const std::string &n)
 Bind n inside the bindings starting at b.
 ~Binding (void)
 Remove the binding.

Public Attributes

const std::string & name
 The name.
const Value * value
 The value, unless a record.
const RecordRef * record
 The record, if a record of a named repeat.
const Binding * outer
 The binding of the enclosing comprehension, or null.

Detailed Description

A name bound by a comprehension, visible while the binding exists.

Definition at line 76 of file eval.hpp.

Constructor & Destructor Documentation

◆ Binding()

Gecode::Instance::Binding::Binding ( const Binding *& b,
const std::string & n )
inline

Bind n inside the bindings starting at b.

Definition at line 90 of file eval.hpp.

◆ ~Binding()

Gecode::Instance::Binding::~Binding ( void )
inline

Remove the binding.

Definition at line 95 of file eval.hpp.

Member Data Documentation

◆ name

const std::string& Gecode::Instance::Binding::name

The name.

Definition at line 82 of file eval.hpp.

◆ value

const Value* Gecode::Instance::Binding::value

The value, unless a record.

Definition at line 84 of file eval.hpp.

◆ record

const RecordRef* Gecode::Instance::Binding::record

The record, if a record of a named repeat.

Definition at line 86 of file eval.hpp.

◆ outer

const Binding* Gecode::Instance::Binding::outer

The binding of the enclosing comprehension, or null.

Definition at line 88 of file eval.hpp.


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