GiNaC 1.8.7
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
GiNaC::remember_table_entry Class Reference

A single entry in the remember table of a function. More...

#include <remember.h>

Public Member Functions

 remember_table_entry (function const &f, ex const &r)
 
bool is_equal (function const &f) const
 
ex get_result () const
 
unsigned long get_last_access () const
 
unsigned long get_successful_hits () const
 

Protected Attributes

unsigned hashvalue
 
exvector seq
 
ex result
 
unsigned long last_access
 
unsigned successful_hits
 

Static Protected Attributes

static unsigned long access_counter = 0
 

Detailed Description

A single entry in the remember table of a function.

Needs to be a friend of class function to access 'seq'. 'last_access' and 'successful_hits' are updated at each successful 'is_equal'.

Definition at line 40 of file remember.h.

Constructor & Destructor Documentation

◆ remember_table_entry()

GiNaC::remember_table_entry::remember_table_entry ( function const &  f,
ex const &  r 
)

Definition at line 36 of file remember.cpp.

References access_counter, last_access, and successful_hits.

Member Function Documentation

◆ is_equal()

bool GiNaC::remember_table_entry::is_equal ( function const &  f) const

◆ get_result()

ex GiNaC::remember_table_entry::get_result ( ) const
inline

Definition at line 44 of file remember.h.

References result.

◆ get_last_access()

unsigned long GiNaC::remember_table_entry::get_last_access ( ) const
inline

Definition at line 45 of file remember.h.

References last_access.

◆ get_successful_hits()

unsigned long GiNaC::remember_table_entry::get_successful_hits ( ) const
inline

Definition at line 46 of file remember.h.

References successful_hits.

Member Data Documentation

◆ hashvalue

unsigned GiNaC::remember_table_entry::hashvalue
protected

Definition at line 49 of file remember.h.

Referenced by is_equal().

◆ seq

exvector GiNaC::remember_table_entry::seq
protected

Definition at line 50 of file remember.h.

Referenced by is_equal().

◆ result

ex GiNaC::remember_table_entry::result
protected

Definition at line 51 of file remember.h.

Referenced by get_result().

◆ last_access

unsigned long GiNaC::remember_table_entry::last_access
mutableprotected

Definition at line 52 of file remember.h.

Referenced by get_last_access(), is_equal(), and remember_table_entry().

◆ successful_hits

unsigned GiNaC::remember_table_entry::successful_hits
mutableprotected

Definition at line 53 of file remember.h.

Referenced by get_successful_hits(), is_equal(), and remember_table_entry().

◆ access_counter

unsigned long GiNaC::remember_table_entry::access_counter = 0
staticprotected

Definition at line 54 of file remember.h.

Referenced by is_equal(), and remember_table_entry().


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

This page is part of the GiNaC developer's reference. It was generated automatically by doxygen. For an introduction, see the tutorial.