X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fremember.h;h=2c20cedb0561e901f4ff9d9b2d835108688ea1a3;hb=c09f90b9435f0efe4d949c715b78f4d1d6acce3c;hp=deee9411fdef390be25b45f4f6cde29c718d8328;hpb=19c8f943c15dcc0d946fb4d5fef11e487d34857a;p=ginac.git diff --git a/ginac/remember.h b/ginac/remember.h index deee9411..2c20cedb 100644 --- a/ginac/remember.h +++ b/ginac/remember.h @@ -4,7 +4,7 @@ * in GiNaC functions */ /* - * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2004 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,12 +24,11 @@ #ifndef __GINAC_REMEMBER_H__ #define __GINAC_REMEMBER_H__ +#include #include #include -#ifndef NO_NAMESPACE_GINAC namespace GiNaC { -#endif // ndef NO_NAMESPACE_GINAC class function; class ex; @@ -42,9 +41,9 @@ class remember_table_entry { public: remember_table_entry(function const & f, ex const & r); bool is_equal(function const & f) const; - ex get_result(void) const { return result; } - unsigned long get_last_access(void) const { return last_access; } - unsigned long get_successful_hits(void) const { return successful_hits; }; + ex get_result() const { return result; } + unsigned long get_last_access() const { return last_access; } + unsigned long get_successful_hits() const { return successful_hits; }; protected: unsigned hashvalue; @@ -87,18 +86,16 @@ public: remember_table(unsigned s, unsigned as, unsigned strat); bool lookup_entry(function const & f, ex & result) const; void add_entry(function const & f, ex const & result); - void clear_all_entries(void); + void clear_all_entries(); void show_statistics(std::ostream & os, unsigned level) const; - static std::vector & remember_tables(void); + static std::vector & remember_tables(); protected: - void init_table(void); + void init_table(); unsigned table_size; unsigned max_assoc_size; unsigned remember_strategy; }; -#ifndef NO_NAMESPACE_GINAC } // namespace GiNaC -#endif // ndef NO_NAMESPACE_GINAC #endif // ndef __GINAC_REMEMBER_H__