fbgsense 0.1
Generic FBG spectrum analysis tool
Public Member Functions | Protected Member Functions | List of all members
processor< T > Class Template Referenceabstract

Provides support for custom computation implementations. More...

#include <processor.h>

Public Member Functions

virtual constexpr int get_type ()=0
 Gets the unique identifier of the concrete subclass. Used for equal-type checking. The implementation should use the protected function ::get_hash. More...
 
virtual std::unique_ptr< T > create ()=0
 Factory for the current concrete subclass. More...
 

Protected Member Functions

constexpr int get_hash (const char str[])
 Java string hashing function. http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/java/lang/String.java#l1452. More...
 

Detailed Description

template<typename T>
class processor< T >

Provides support for custom computation implementations.

Template Parameters
TProcessor type

Member Function Documentation

◆ create()

template<typename T >
virtual std::unique_ptr< T > processor< T >::create ( )
pure virtual

◆ get_hash()

template<typename T >
constexpr int processor< T >::get_hash ( const char  str[])
inlineconstexprprotected

◆ get_type()

template<typename T >
virtual constexpr int processor< T >::get_type ( )
constexprpure virtual

Gets the unique identifier of the concrete subclass. Used for equal-type checking. The implementation should use the protected function ::get_hash.

Implemented in fbgsense::filtering::filter_fft, fbgsense::filtering::filter_savgol, fbgsense::segmentation::segmentation_method_inflection, and fbgsense::segmentation::segmentation_method_localmin.


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