Gecode::Instance::Type Class Reference
Type of the values that a declaration or a capture reads. More...
#include <gecode/instance/impl.hpp>
Public Member Functions | |
| Type (ReadType r=ReadType::INT) | |
| Initialize as r. | |
| bool | ranged (void) const |
| Test whether the type has a range, possibly through its name. | |
| Type | use (const Stmt *d) const |
| Return a use of the type defined by type statement d. | |
Public Attributes | |
| ReadType | read |
| What the type reads. | |
| std::unique_ptr< Expr > | lo |
| Lower bound of a range, or null. | |
| std::unique_ptr< Expr > | hi |
| Upper bound of a range, or null. | |
| bool | exclusive |
| Whether the upper bound is excluded. | |
| const Stmt * | named |
| The type statement defining a named type, or null. | |
| std::string | name |
| Name of a named type. | |
| std::string | alphabet |
| Symbols of an alphabet type. | |
| std::string | blank |
| Symbols that stand for 0. | |
| std::string | strip |
| Symbols to skip. | |
| long long int | base |
| Value of the first symbol. | |
Detailed Description
Type of the values that a declaration or a capture reads.
An integer type can be a range lo..hi, or lo..<hi without hi, where one of the bounds can be left out. An alphabet type reads one character for each value. A use of a named type (see Stmt::Kind::TYPE) copies its definition except for the bounds, which are evaluated where it is defined.
Constructor & Destructor Documentation
◆ Type()
|
inlineexplicit |
Member Function Documentation
◆ ranged()
|
inline |
◆ use()
Member Data Documentation
◆ read
◆ lo
| std::unique_ptr<Expr> Gecode::Instance::Type::lo |
◆ hi
| std::unique_ptr<Expr> Gecode::Instance::Type::hi |
◆ exclusive
| bool Gecode::Instance::Type::exclusive |
◆ named
| const Stmt* Gecode::Instance::Type::named |
◆ name
| std::string Gecode::Instance::Type::name |
◆ alphabet
| std::string Gecode::Instance::Type::alphabet |
◆ blank
| std::string Gecode::Instance::Type::blank |
◆ strip
◆ base
| long long int Gecode::Instance::Type::base |
The documentation for this class was generated from the following file:
- gecode/instance/impl.hpp
