Otawa  0.10
FunProcessor.h
Go to the documentation of this file.
1 /*
2  * FunProcessor class interface
3  *
4  * This file is part of OTAWA
5  * Copyright (c) 2005, IRIT UPS.
6  *
7  * OTAWA is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * OTAWA is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with OTAWA; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 #ifndef OTAWA_PROC_FUNPROCESSOR_H
22 #define OTAWA_PROC_FUNPROCESSOR_H
23 
24 #include <otawa/proc/Processor.h>
25 #include <otawa/ast/FunAST.h>
26 
27 namespace otawa { namespace ast {
28 
29 // Processor class
30 class FunProcessor: public Processor {
31 public:
32  static p::declare reg;
34  ~FunProcessor(void);
35 
36 protected:
37  virtual void processFun(WorkSpace *ws, FunAST *fa) = 0;
38  virtual void processWorkSpace(WorkSpace *ws);
39 };
40 
41 } } // otawa::ast
42 
43 #endif // OTAWA_PROC_FUNPROCESSOR_H
This class represents functions in the AST representation.
Definition: FunAST.h:32
virtual void processFun(WorkSpace *ws, FunAST *fa)=0
FunProcessor(p::declare &r=reg)
Definition: proc_FunProcessor.cpp:44
Class to declare simple a processor.
Definition: Registration.h:213
static p::declare reg
Definition: FunProcessor.h:32
WorkSpace * ws
Definition: Processor.h:185
~FunProcessor(void)
Definition: proc_FunProcessor.cpp:49
The processor class is implemented by all code processor.
Definition: Processor.h:49
This is a specialization of the processor class dedicated to function processing. ...
Definition: FunProcessor.h:30
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
virtual void processWorkSpace(WorkSpace *ws)
Override Processor::processFrameWork().
Definition: proc_FunProcessor.cpp:63