~dominik-burgdoerfer/webplodder/0.4

« back to all changes in this revision

Viewing changes to src/wesl/elements/returnstatement.hpp

  • Committer: Dominik Burgdörfer
  • Date: 2010-07-07 14:35:20 UTC
  • Revision ID: dominik@domachine-20100707143520-wpywl29fsg9quz54
restructured sources

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// =======================================================================
2
 
// 
3
 
//       Filename:  returnstatement.hpp
4
 
// 
5
 
//    Description:  
6
 
// 
7
 
//        Version:  1.0
8
 
//        Created:  18.06.2010 12:34:25
9
 
//       Revision:  none
10
 
//       Compiler:  g++
11
 
// 
12
 
//         Author:  Dominik 'domachine' Burgdörfer (-), dominik.burgdoerfer@googlemail.com
13
 
//        Company:  -
14
 
// 
15
 
// =======================================================================
16
 
 
17
 
 
18
 
#ifndef  ELEMENTS_RETURNSTATEMENT_INC
19
 
#define  ELEMENTS_RETURNSTATEMENT_INC
20
 
#include "element.hpp"
21
 
#include "callable.hpp"
22
 
 
23
 
namespace wesl {
24
 
    namespace elements {
25
 
        class ReturnStatement : public Element,
26
 
                                public Callable
27
 
        {
28
 
        public:
29
 
            ReturnStatement(ElementStack& parent);
30
 
            ReturnStatement(ElementStack& parent,
31
 
                            ElementPtr element);
32
 
 
33
 
            void call();
34
 
 
35
 
            void setElement(ElementPtr element);
36
 
 
37
 
        private:
38
 
            ElementPtr m_element;
39
 
        };
40
 
    }
41
 
}
42
 
#endif   // ----- #ifndef ELEMENTS_RETURNSTATEMENT_INC  -----