All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
chainable_alloc.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_REV_CORE_CHAINABLE_ALLOC_HPP
#define STAN_MATH_REV_CORE_CHAINABLE_ALLOC_HPP
#include <stan/math/rev/core/chainablestack.hpp>
#include <stdexcept>
namespace stan {
namespace math {
class chainable_alloc {
public:
chainable_alloc() {
ChainableStack::var_alloc_stack_.push_back(this);
}
virtual ~chainable_alloc() { }
};
}
}
#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.