yasmine
transition_model_kind.hpp
Go to the documentation of this file.
1 // //
3 // This file is part of the Seadex yasmine ecosystem (http://yasmine.seadex.de). //
4 // Copyright (C) 2016-2017 Seadex GmbH //
5 // //
6 // Licensing information is available in the folder "license" which is part of this distribution. //
7 // The same information is available on the www @ http://yasmine.seadex.de/Licenses.html. //
8 // //
10 
11 
12 #ifndef TRANSITION_MODEL_KIND_BD2A7DB6_BB45_4A4C_A6AA_5F3A3ECA8532
13 #define TRANSITION_MODEL_KIND_BD2A7DB6_BB45_4A4C_A6AA_5F3A3ECA8532
14 
15 
16 #include <string>
17 
18 
19 namespace sxy
20 {
21 
22 
23 namespace model
24 {
25 
26 
27 #ifndef SX_CPP03_BOOST
28 
29 
31  {
32  EXTERNAL = 0, INTERNAL = 1, LOCAL = 2
33  };
34 
35 
36 #else
37 
38 
40  {
41 
42  enum inner
43  {
44  EXTERNAL = 0, INTERNAL = 1, LOCAL = 2
45  };
46 
47 
48  // cppcheck-suppress noExplicitConstructor
49  transition_model_kind() : value_( EXTERNAL )
50  {
51  // Nothing to do...
52  }
53 
54 
55  // cppcheck-suppress noExplicitConstructor
56  transition_model_kind( const inner _value ) : value_( _value )
57  {
58  // Nothing to do...
59  }
60 
61 
62  // cppcheck-suppress functionConst
63  operator inner()
64  {
65  return ( value_ );
66  }
67 
68 
69  inner value_;
70 
71  };
72 
73 #endif
74 
75 
76 std::string to_string( const transition_model_kind _kind );
77 
78 
79 #ifdef SX_CPP03_BOOST
80 
81 
82 bool operator==( const transition_model_kind& _lhs, const transition_model_kind::inner _rhs );
83 bool operator==( const transition_model_kind::inner _lhs, const transition_model_kind& _rhs );
84 bool operator<( const transition_model_kind _lhs, const transition_model_kind _rhs );
85 
86 
87 
88 #endif
89 
90 }
91 
92 
93 }
94 
95 
96 #endif
std::string to_string(const transition_model_kind _kind)
Definition: transition_model_kind.cpp:23
Definition: algorithm_parameters.hpp:16
transition_model_kind
Definition: transition_model_kind.hpp:30