.. _program_listing_file_completion_table.hpp: Program Listing for File completion_table.hpp ============================================= |exhale_lsh| :ref:`Return to documentation for file ` (``completion_table.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef FELIX_COMPLETIONTABLE_H_ #define FELIX_COMPLETIONTABLE_H_ #include #include class CompletionTable { public: CompletionTable(); void push(uint32_t addr); int update(uint32_t addr); uint32_t get_rd() const; uint32_t get_count(uint32_t addr) const; uint32_t get_previous_rd() const; size_t get_entries() const; void inspect() const; bool is_empty() const; private: typedef uint32_t address_t; typedef uint32_t counter_t; address_t m_rd; address_t m_last_pushed_addr; address_t m_last_provided_addr; std::map *m_current_table; std::map *m_wrap_table; std::map m_table_a; std::map m_table_b; }; #endif /* FELIX_COMPLETIONTABLE_H_ */