mlpack  master
delete_visitor.hpp
Go to the documentation of this file.
1 
13 #ifndef MLPACK_METHODS_ANN_VISITOR_DELETE_VISITOR_HPP
14 #define MLPACK_METHODS_ANN_VISITOR_DELETE_VISITOR_HPP
15 
18 
19 #include <boost/variant.hpp>
20 
21 namespace mlpack {
22 namespace ann {
23 
27 class DeleteVisitor : public boost::static_visitor<void>
28 {
29  public:
31  template<typename LayerType>
32  void operator()(LayerType* layer) const;
33 };
34 
35 } // namespace ann
36 } // namespace mlpack
37 
38 // Include implementation.
39 #include "delete_visitor_impl.hpp"
40 
41 #endif
DeleteVisitor executes the destructor of the instantiated object.
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: binarize.hpp:18
void operator()(LayerType *layer) const
Execute the destructor.