Generated on for Gecode by doxygen 1.18.0
Gecode::Instance::Stmt Class Reference

Statement. More...

#include <gecode/instance/impl.hpp>

Public Types

enum class  Kind {
  COMMENT , STOP , TOKENS , SEPARATORS ,
  TRAILING , PARAM , READ , LIST ,
  LINE , FIND , SKIP , EXPECT ,
  INDEX , REPEAT , SECTIONS , IF ,
  LET , CHECK , TYPE , INSTANCES ,
  EACH
}
 Kind of statement. More...

Public Member Functions

 Stmt (Kind k, int l)
 Initialize with kind k at spec line l.

Public Attributes

enum Gecode::Instance::Stmt::Kind kind
int line
 Line in the spec.
Type type
 What read and list statements read, or the type a type statement defines.
std::string name
 Name defined.
std::string chars
 Characters for tokens and separators statements.
std::string message
 Message of a check statement.
std::string store
 Name for the terminating token found.
std::string list
 Name of the list of records of a repeat.
std::string each
 Name of each record of a repeat, inside and after it.
Seq< std::unique_ptr< Expr > > dims
 Array dimensions.
std::unique_ptr< Expr > expr
 Count, condition, layout, value, or default.
std::unique_ptr< Expr > sentinel
 List terminator.
std::unique_ptr< Expr > offset
 Added to every number read.
Seq< std::string > words
 Prefixes, literal tokens, or terminating tokens.
bool until_eol
 List ends at end of line.
bool until_eof
 Repeat until end of input.
bool has_until
 Repeat or sections end at a token from words.
bool skip_other
 Sections skip unknown lines.
Pattern pattern
 Pattern for line and find.
Block body
 Body, then-branch.
Block orelse
 Else-branch.
Seq< Arm > arms
 Arms of sections.
int id
 Number of a repeat, in the order of the spec.
Seq< Record > records
 Record names of a check.

Detailed Description

Statement.

Definition at line 622 of file impl.hpp.

Member Enumeration Documentation

◆ Kind

enum class Gecode::Instance::Stmt::Kind
strong

Kind of statement.

Enumerator
COMMENT 
STOP 
TOKENS 
SEPARATORS 
TRAILING 
PARAM 
READ 
LIST 
LINE 
FIND 
SKIP 
EXPECT 
INDEX 
REPEAT 
SECTIONS 
IF 
LET 
CHECK 
TYPE 
INSTANCES 
EACH 

Definition at line 625 of file impl.hpp.

Constructor & Destructor Documentation

◆ Stmt()

Gecode::Instance::Stmt::Stmt ( Kind k,
int l )
inline

Initialize with kind k at spec line l.

Definition at line 678 of file impl.hpp.

Member Data Documentation

◆ kind

enum Gecode::Instance::Stmt::Kind Gecode::Instance::Stmt::kind

◆ line

int Gecode::Instance::Stmt::line

Line in the spec.

Definition at line 631 of file impl.hpp.

◆ type

Type Gecode::Instance::Stmt::type

What read and list statements read, or the type a type statement defines.

Definition at line 634 of file impl.hpp.

◆ name

std::string Gecode::Instance::Stmt::name

Name defined.

Definition at line 636 of file impl.hpp.

◆ chars

std::string Gecode::Instance::Stmt::chars

Characters for tokens and separators statements.

Definition at line 638 of file impl.hpp.

◆ message

std::string Gecode::Instance::Stmt::message

Message of a check statement.

Definition at line 640 of file impl.hpp.

◆ store

std::string Gecode::Instance::Stmt::store

Name for the terminating token found.

Definition at line 642 of file impl.hpp.

◆ list

std::string Gecode::Instance::Stmt::list

Name of the list of records of a repeat.

Definition at line 644 of file impl.hpp.

◆ each

std::string Gecode::Instance::Stmt::each

Name of each record of a repeat, inside and after it.

Definition at line 646 of file impl.hpp.

◆ dims

Seq<std::unique_ptr<Expr> > Gecode::Instance::Stmt::dims

Array dimensions.

Definition at line 648 of file impl.hpp.

◆ expr

std::unique_ptr<Expr> Gecode::Instance::Stmt::expr

Count, condition, layout, value, or default.

Definition at line 650 of file impl.hpp.

◆ sentinel

std::unique_ptr<Expr> Gecode::Instance::Stmt::sentinel

List terminator.

Definition at line 652 of file impl.hpp.

◆ offset

std::unique_ptr<Expr> Gecode::Instance::Stmt::offset

Added to every number read.

Definition at line 654 of file impl.hpp.

◆ words

Seq<std::string> Gecode::Instance::Stmt::words

Prefixes, literal tokens, or terminating tokens.

Definition at line 656 of file impl.hpp.

◆ until_eol

bool Gecode::Instance::Stmt::until_eol

List ends at end of line.

Definition at line 658 of file impl.hpp.

◆ until_eof

bool Gecode::Instance::Stmt::until_eof

Repeat until end of input.

Definition at line 660 of file impl.hpp.

◆ has_until

bool Gecode::Instance::Stmt::has_until

Repeat or sections end at a token from words.

Definition at line 662 of file impl.hpp.

◆ skip_other

bool Gecode::Instance::Stmt::skip_other

Sections skip unknown lines.

Definition at line 664 of file impl.hpp.

◆ pattern

Pattern Gecode::Instance::Stmt::pattern

Pattern for line and find.

Definition at line 666 of file impl.hpp.

◆ body

Block Gecode::Instance::Stmt::body

Body, then-branch.

Definition at line 668 of file impl.hpp.

◆ orelse

Block Gecode::Instance::Stmt::orelse

Else-branch.

Definition at line 670 of file impl.hpp.

◆ arms

Seq<Arm> Gecode::Instance::Stmt::arms

Arms of sections.

Definition at line 672 of file impl.hpp.

◆ id

int Gecode::Instance::Stmt::id

Number of a repeat, in the order of the spec.

Definition at line 674 of file impl.hpp.

◆ records

Seq<Record> Gecode::Instance::Stmt::records

Record names of a check.

Definition at line 676 of file impl.hpp.


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