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
|
#ifndef EMPATHY_LLR_ELEMENT_H
#define EMPATHY_LLR_ELEMENT_H
namespace empathy::llr
{
class Seq;
class Element
{
public:
using Content = variant
<
monostate,
ptr< Seq >,
Call
>;
const auto& content() const { return m_content; }
private:
Content m_content;
};
template<>
bool CanBeExecuted( const Element& elem );
template<>
bool CanBeExecutedInIncompleteFunction( const Element& elem );
}
#endif
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
<
<
<
<
<
<
<
|
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
33
34
35
36
37
38
|
#ifndef EMPATHY_LLR_ELEMENT_H
#define EMPATHY_LLR_ELEMENT_H
namespace empathy::llr
{
class Seq;
class Element
{
public:
Element() {}
Element( ptr< Seq >&& s ) :
m_content( move( s ) )
{}
Element( const ptr< Seq >& s ) :
m_content( s )
{}
Element( Call&& c ) :
m_content( move( c ) )
{}
using Content = variant
<
ptr< Seq >,
Call
>;
const auto& content() const { return m_content; }
private:
Content m_content;
};
}
#endif
|