yasmine
access_operator.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
#ifndef ACCESS_OPERATOR_9C58972C_7917_4BBD_8CF2_B2DF69D4F0AC
12
#define ACCESS_OPERATOR_9C58972C_7917_4BBD_8CF2_B2DF69D4F0AC
13
14
15
namespace
sxy
16
{
17
18
19
#ifndef SX_CPP03_BOOST
20
23
enum class
access_operator
24
{
25
AO_NO_ACCESS_OPERATOR
= 0,
AO_THIS_ACCESS
= 1,
AO_POINTER_ACCESS
= 2,
AO_REFERENCE_ACCESS
= 3,
AO_FUNCTION_ACCESS
= 4
26
};
27
28
29
#else
30
31
34
struct
access_operator
35
{
38
enum
inner
39
{
40
AO_NO_ACCESS_OPERATOR
= 0,
AO_THIS_ACCESS
= 1,
AO_POINTER_ACCESS
= 2,
AO_REFERENCE_ACCESS
= 3,
AO_FUNCTION_ACCESS
= 4
41
};
42
43
45
access_operator
() : value_(
AO_NO_ACCESS_OPERATOR
)
46
{
47
// Nothing to do...
48
}
49
50
53
access_operator
(
const
inner _value ) : value_( _value )
54
{
55
// Nothing to do...
56
}
57
58
61
access_operator
(
const
access_operator
& _access_operator ) : value_( _access_operator.value_ )
62
{
63
// Nothing to do...
64
}
65
66
68
operator
inner()
const
69
{
70
return
( value_ );
71
}
72
73
75
inner value_;
76
77
};
78
79
80
#endif
81
82
83
}
84
85
86
#endif
sxy::access_operator::AO_REFERENCE_ACCESS
sxy::access_operator::AO_THIS_ACCESS
sxy::access_operator::AO_FUNCTION_ACCESS
sxy::access_operator::AO_POINTER_ACCESS
sxy::access_operator::AO_NO_ACCESS_OPERATOR
sxy
Definition:
algorithm_parameters.hpp:16
sxy::access_operator
access_operator
Enumeration for predefined access operator.
Definition:
access_operator.hpp:23
source_code_doxygen
libygen
include
access_operator.hpp
Generated on Tue Apr 25 2017 11:10:43 for yasmine by
1.8.13