state_wrapper.qbk 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. [/============================================================================
  2. Boost.odeint
  3. Copyright 2011 Mario Mulansky
  4. Copyright 2012 Karsten Ahnert
  5. Use, modification and distribution is subject to the Boost Software License,
  6. Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  7. http://www.boost.org/LICENSE_1_0.txt)
  8. =============================================================================/]
  9. [section State Wrapper]
  10. [heading Description]
  11. The `State Wrapper` concept describes the way odeint creates temporary state objects to store intermediate results within the stepper's `do_step` methods.
  12. [heading Notation]
  13. [variablelist
  14. [[`State`] [A type that is the `state_type` of the ODE]]
  15. [[`WrappedState`] [A type that is a model of State Wrapper for the state type `State`.]]
  16. [[`x`] [Object of type `State`]]
  17. [[`w`] [Object of type `WrappedState`]]
  18. ]
  19. [heading Valid Expressions]
  20. [table
  21. [[Name] [Expression] [Type] [Semantics]]
  22. [[Get resizeability] [`is_resizeable< State >`] [`boost::false_type` or `boost::true_type`] [Returns `boost::true_type` if the `State` is resizeable, `boost::false_type` otherwise.]]
  23. [[Create `WrappedState` type] [`state_wrapper< State >`] [`WrappedState`] [Creates the type for a `WrappedState` for the state type `State`]]
  24. [[Constructor] [`WrappedState()`] [`WrappedState`] [Constructs a state wrapper with an empty state]]
  25. [[Copy Constructor] [`WrappedState( w )`] [`WrappedState`] [Constructs a state wrapper with a state of the same size as the state in `w`]]
  26. [[Get state] [`w.m_v`] [`State`] [Returns the `State` object of this state wrapper.]]
  27. ]
  28. [endsect]