| Stan Math Library 2.6.3 probability, sampling & optimization

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
chainable_alloc.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_REV_CORE_CHAINABLE_ALLOC_HPP
2 #define STAN_MATH_REV_CORE_CHAINABLE_ALLOC_HPP
3
4 #include <stan/math/rev/core/chainablestack.hpp>
5 #include <stdexcept>
6
7 namespace stan {
8 namespace math {
9
10
17 class chainable_alloc {
18 public:
19 chainable_alloc() {
20 ChainableStack::var_alloc_stack_.push_back(this);
21 }
22 virtual ~chainable_alloc() { }
23 };
24
25 }
26 }
27 #endif
stan::math::AutodiffStackStorage::var_alloc_stack_
static std::vector< ChainableAllocT * > var_alloc_stack_
Definition: autodiffstackstorage.hpp:15
stan::math::chainable_alloc::~chainable_alloc
virtual ~chainable_alloc()
Definition: chainable_alloc.hpp:22
stan::math::chainable_alloc::chainable_alloc
chainable_alloc()
Definition: chainable_alloc.hpp:19
stan::math::chainable_alloc
A chainable_alloc is an object which is constructed and destructed normally but the memory lifespan i...
Definition: chainable_alloc.hpp:17
chainablestack.hpp

[ Stan Home Page ] © 2011–2015, Stan Development Team.