mlpack
|
DeleteVisitor executes the destructor of the instantiated object. More...
#include <delete_visitor.hpp>
Public Member Functions | |
template<typename LayerType > | |
std::enable_if< !HasModelCheck< LayerType >::value, void >::type | operator() (LayerType *layer) const |
Execute the destructor if the layer does not hold layers internally. More... | |
template<typename LayerType > | |
std::enable_if< HasModelCheck< LayerType >::value, void >::type | operator() (LayerType *layer) const |
Execute the destructor if the layer does hold layers internally. | |
void | operator() (MoreTypes layer) const |
DeleteVisitor executes the destructor of the instantiated object.
|
inline |
Execute the destructor if the layer does not hold layers internally.
DeleteVisitor visitor class.