next up previous contents
Next: DFA Up: Getting Started Previous: Getting Started   Contents

Declaring a Container

The automaton containers are class templates parameterized by two types: the alphabet traits and the tag type. By default, the alphabet trait is plain (8 bits char) and the tag type is empty_tag (no tags needed). Also a predefined alphabet traits called range is provided. It must be instanciated with a builtin integral type T followed by two constants x and y of type T defining a subset [x, y] of the domain T. For example, plain is defined as follow :
typedef range<char, (char) -128, (char) 127> plain;


Vincent Le Maout 2003-07-08