QuantumLibrary
quantum_stack_traits_impl.h
1 /*
2 ** Copyright 2018 Bloomberg Finance L.P.
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 //NOTE: DO NOT INCLUDE DIRECTLY
17 
18 //##############################################################################################
19 //#################################### IMPLEMENTATIONS #########################################
20 //##############################################################################################
21 
22 namespace Bloomberg {
23 namespace quantum {
24 
25 inline
27 {
28  static bool isUnbounded = boost::context::stack_traits::is_unbounded();
29  return isUnbounded;
30 }
31 
32 inline
34 {
35  static size_t pageSize = boost::context::stack_traits::page_size();
36  return pageSize;
37 }
38 
39 inline
41 {
42  static size_t defaultSize = boost::context::stack_traits::default_size();
43  return defaultSize;
44 }
45 
46 inline
48 {
49  static size_t minimumSize = boost::context::stack_traits::minimum_size();
50  return minimumSize;
51 }
52 
53 inline
55 {
56  static size_t maximumSize = boost::context::stack_traits::maximum_size();
57  return maximumSize;
58 }
59 
60 }}
Definition: quantum_buffer_impl.h:22
static size_t & maximumSize()
Get/set the maximum stack size.
Definition: quantum_stack_traits_impl.h:54
static size_t & pageSize()
Get/set the page size.
Definition: quantum_stack_traits_impl.h:33
static size_t & minimumSize()
Get/set the minimum stack size as defined by the environment.
Definition: quantum_stack_traits_impl.h:47
static bool & isUnbounded()
Get/set if the environment defines a limit for the stack size.
Definition: quantum_stack_traits_impl.h:26
static size_t & defaultSize()
Get/set the default stack size, which may be platform specific.
Definition: quantum_stack_traits_impl.h:40