OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
MacroStream.h
Go to the documentation of this file.
1#ifndef OPALX_MacroStream_HH
2#define OPALX_MacroStream_HH
3
4// ------------------------------------------------------------------------
5// $RCSfile: MacroStream.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: MacroStream
13//
14// ------------------------------------------------------------------------
15//
16// $Date: 2000/03/27 09:33:43 $
17// $Author: Andreas Adelmann $
18//
19// ------------------------------------------------------------------------
20
21#include <list>
22#include "OpalParser/Token.h"
24
25// Class MacroStream
26// ------------------------------------------------------------------------
28// This list of tokens stores a macro template or instantiation.
29
30class MacroStream : public TokenStream {
31public:
33 // Assign the macro name as a buffer name.
34 MacroStream(const std::string&);
35
36 virtual ~MacroStream();
37
39 void append(Token&);
40
42 virtual Token readToken();
43
45 void start();
46
47private:
48 // Not implemented.
51 void operator=(const MacroStream&);
52
53 // The list of tokens.
54 typedef std::list<Token> TokenList;
56 TokenList::iterator curr;
57};
58
59#endif // OPALX_MacroStream_HH
An input buffer for macro commands.
Definition MacroStream.h:30
TokenList::iterator curr
Definition MacroStream.h:56
virtual ~MacroStream()
void append(Token &)
Append a token to the stream.
MacroStream(const MacroStream &)
void operator=(const MacroStream &)
void start()
Reset stream to start.
std::list< Token > TokenList
Definition MacroStream.h:54
TokenList body
Definition MacroStream.h:55
virtual Token readToken()
Read a token from the stream.
Abstract interface for a stream of input tokens.
Definition TokenStream.h:30
Representation of a single input token.
Definition Token.h:32