.. _program_listing_file_src_sparsebase_feature_degrees.h: Program Listing for File degrees.h ================================== |exhale_lsh| :ref:`Return to documentation for file ` (``src/sparsebase/feature/degrees.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #include #include "sparsebase/config.h" #include "sparsebase/feature/feature_preprocess_type.h" #include "sparsebase/format/csr.h" #include "sparsebase/utils/parameterizable.h" #ifndef SPARSEBASE_PROJECT_DEGREES_H #define SPARSEBASE_PROJECT_DEGREES_H namespace sparsebase::feature { template class Degrees : public feature::FeaturePreprocessType { public: typedef utils::Parameters ParamsType; Degrees(); Degrees(ParamsType); Degrees(const Degrees &d); Degrees(std::shared_ptr); std::unordered_map Extract( format::Format *format, std::vector, bool convert_input) override; std::vector get_sub_ids() override; std::vector get_subs() override; static std::type_index get_id_static(); IDType *GetDegrees(format::Format *format, std::vector contexts, bool convert_input); std:: tuple>, IDType *> GetDegreesCached(format::Format *format, std::vector contexts, bool convert_input); static IDType *GetDegreesCSR(std::vector formats, utils::Parameters *params); ~Degrees(); protected: void Register(); }; } // namespace sparsebase::feature #ifdef _HEADER_ONLY #include "sparsebase/feature/degrees.cc" #endif #endif // SPARSEBASE_PROJECT_DEGREES_H