mlpack
Public Member Functions | List of all members
mlpack::ann::DeleteVisitor Class Reference

DeleteVisitor executes the destructor of the instantiated object. More...

#include <delete_visitor.hpp>

Inheritance diagram for mlpack::ann::DeleteVisitor:
Inheritance graph
[legend]
Collaboration diagram for mlpack::ann::DeleteVisitor:
Collaboration graph
[legend]

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
 

Detailed Description

DeleteVisitor executes the destructor of the instantiated object.

Member Function Documentation

◆ operator()()

template<typename LayerType >
std::enable_if< HasModelCheck< LayerType >::value, void >::type mlpack::ann::DeleteVisitor::operator() ( LayerType *  layer) const
inline

Execute the destructor if the layer does not hold layers internally.

DeleteVisitor visitor class.


The documentation for this class was generated from the following files: