blob: 82a40d915ea18fcf687775729c86445ec653129b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* IteratorStatement.hpp
*
* Created on: Nov 28, 2017
* Author: naopross
*/
#ifndef SRC_DIAGRAM_ITERATORSTATEMENT_HPP_
#define SRC_DIAGRAM_ITERATORSTATEMENT_HPP_
#include "Statement.hpp"
#include "Scope.hpp"
namespace samb {
class IteratorStatement: public Statement {
public:
IteratorStatement(Type t, const std::string& condition, pointer next);
/* accessors */
const Scope& inner() const { return m_inner; }
inline const std::string& condition() const { return text(); }
inline void condition(const std::string& condition) { return text(condition); }
private:
Scope m_inner;
};
} /* namespace samb */
#endif /* SRC_DIAGRAM_ITERATORSTATEMENT_HPP_ */
|