.. _program_listing_file_src_sparsebase_feature_extractor.h: Program Listing for File extractor.h ==================================== |exhale_lsh| :ref:`Return to documentation for file ` (``src/sparsebase/feature/extractor.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #include #include #include #include #include #include "sparsebase/format/format.h" #include "sparsebase/format/format_order_one.h" #include "sparsebase/format/format_order_two.h" #include "sparsebase/utils/class_matcher_mixin.h" #include "sparsebase/utils/extractable.h" #include "sparsebase/utils/utils.h" #ifndef SPARSEBASE_PROJECT_EXTRACTOR_H #define SPARSEBASE_PROJECT_EXTRACTOR_H namespace sparsebase::feature { using Feature = utils::Implementation; class Extractor : public utils::ClassMatcherMixin { public: ~Extractor(); static std::unordered_map Extract( std::vector &features, format::Format *format, const std::vector &, bool convert_input); std:: unordered_map Extract(format::Format *format, const std::vector &con, bool convert_input); void Add(Feature f); void Subtract(Feature f); std::vector GetList(); void PrintFuncList(); std::vector GetFuncList(); protected: Extractor() noexcept = default; private: std::unordered_map in_; }; } // namespace sparsebase::feature #ifdef _HEADER_ONLY #include "sparsebase/feature/extractor.cc" #endif #endif // SPARSEBASE_PROJECT_EXTRACTOR_H