Audio Processing Framework (APF) version 0.5.0
Public Member Functions | Protected Member Functions | List of all members
apf::CRTP< Derived > Class Template Reference

Curiously Recurring Template Pattern (CRTP) base class. More...

#include <apf/misc.h>

Inheritance diagram for apf::CRTP< Derived >:
Inheritance graph
[legend]

Public Member Functions

Derived & derived ()
 

Protected Member Functions

 ~CRTP ()=default
 Protected destructor to avoid base class pointers. More...
 

Detailed Description

template<typename Derived>
class apf::CRTP< Derived >

Curiously Recurring Template Pattern (CRTP) base class.

The idea for derived() is stolen from the Eigen library.

Definition at line 42 of file misc.h.

Constructor & Destructor Documentation

◆ ~CRTP()

template<typename Derived >
apf::CRTP< Derived >::~CRTP ( )
protecteddefault

Protected destructor to avoid base class pointers.

Member Function Documentation

◆ derived()

template<typename Derived >
Derived & apf::CRTP< Derived >::derived ( )
inline

Definition at line 45 of file misc.h.


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