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

A statement being executed, for errors. More...

#include <gecode/instance/eval.hpp>

Public Member Functions

 Context (const std::string &t, long long int i=0, long long int n=-1)
 Initialize for t in iteration i of n.

Public Attributes

std::string text
 What is executed, such as a name.
long long int iteration
 The iteration of a repeat or instances statement, from 1, or 0.
long long int iterations
 The number of iterations, or -1 if unknown.

Detailed Description

A statement being executed, for errors.

Definition at line 112 of file eval.hpp.

Constructor & Destructor Documentation

◆ Context()

Gecode::Instance::Context::Context ( const std::string & t,
long long int i = 0,
long long int n = -1 )
inlineexplicit

Initialize for t in iteration i of n.

Definition at line 121 of file eval.hpp.

Member Data Documentation

◆ text

std::string Gecode::Instance::Context::text

What is executed, such as a name.

Definition at line 115 of file eval.hpp.

◆ iteration

long long int Gecode::Instance::Context::iteration

The iteration of a repeat or instances statement, from 1, or 0.

Definition at line 117 of file eval.hpp.

◆ iterations

long long int Gecode::Instance::Context::iterations

The number of iterations, or -1 if unknown.

Definition at line 119 of file eval.hpp.


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