test2.cpp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /**
  2. * @file test/test2.cpp
  3. * @author See the AUTHORS file
  4. */
  5. /*
  6. * Copyright (C) 2012-2017 ULCO http://www.univ-littoral.fr
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. //#define CATCH_CONFIG_MAIN
  22. //#include <test/catch.hpp>
  23. #include <test/models.hpp>
  24. #include <artis/kernel/Simulator.hpp>
  25. #include <artis/observer/Output.hpp>
  26. #include <artis/utils/DateTime.hpp>
  27. using namespace artis::kernel;
  28. /*
  29. typedef Builder <
  30. CoupledModel <
  31. Type < RootModel >,
  32. Name < >,
  33. ID < >,
  34. States < >,
  35. Internals < >,
  36. Externals < >,
  37. Submodels <
  38. AtomicModel <
  39. Type < AModel >,
  40. Name < RootModel::_a >,
  41. ID < A >,
  42. States < >,
  43. Internals <
  44. Variable < Name < AModel::_ix >,
  45. ID < IX >,
  46. Type < int >
  47. >,
  48. Variable < Name < AModel::_bx >,
  49. ID < BX >,
  50. Type < bool >
  51. >,
  52. Variable < Name < AModel::_dx >,
  53. ID < DX >,
  54. Type < double >
  55. >
  56. >,
  57. Externals < >,
  58. >,
  59. AtomicModel <
  60. Type < BModel >,
  61. Name < RootModel::_b >,
  62. ID < B >,
  63. States < >,
  64. Internals < >,
  65. Externals < >,
  66. >
  67. >
  68. >
  69. > ABuilder;
  70. */
  71. template < class M >
  72. class mpBuilder
  73. {
  74. public:
  75. mpBuilder(const std::map < int, int> m)
  76. { }
  77. };
  78. template < class T, class I, class S, class In >
  79. class mpAtomicModel
  80. {
  81. };
  82. template < class M >
  83. class mpType
  84. {
  85. };
  86. template < class M >
  87. class mpName
  88. {
  89. };
  90. template < int N >
  91. class mpID
  92. {
  93. };
  94. template < class... M >
  95. class mpStates
  96. {
  97. };
  98. template < class... M >
  99. class mpInternals
  100. {
  101. };
  102. template < class I, class T >
  103. class mpVariable
  104. {
  105. };
  106. typedef mpBuilder <
  107. mpAtomicModel <
  108. mpType < AModel >,
  109. mpID < RootModel::A >,
  110. mpStates < >,
  111. mpInternals <
  112. mpVariable < mpID < AModel::IX >,
  113. mpType < int >
  114. >,
  115. mpVariable < mpID < AModel::BX >,
  116. mpType < bool >
  117. >,
  118. mpVariable < mpID < AModel::DX >,
  119. mpType < double >
  120. >
  121. >
  122. >
  123. > ABuilder;
  124. int main()
  125. {
  126. GlobalParameters globalParameters;
  127. ModelParameters modelParameters;
  128. ABuilder builder({{AModel::IX,1},{AModel::BX,1},{AModel::DX,1}});
  129. return 0;
  130. }