GiNaC  1.6.2
Public Member Functions | Protected Attributes | Static Protected Attributes
GiNaC::remember_table_entry Class Reference

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

#include <remember.h>

List of all members.

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

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

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

Definition at line 43 of file remember.cpp.

References access_counter, GINAC_ASSERT, hashvalue, last_access, seq, and successful_hits.

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

Definition at line 44 of file remember.h.

References result.

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

Definition at line 45 of file remember.h.

References last_access.

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

Definition at line 46 of file remember.h.


Member Data Documentation

Definition at line 46 of file remember.h.

Referenced by is_equal().

Definition at line 50 of file remember.h.

Referenced by is_equal().

Definition at line 51 of file remember.h.

Referenced by get_result().

unsigned long GiNaC::remember_table_entry::last_access [mutable, protected]

Definition at line 52 of file remember.h.

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

unsigned GiNaC::remember_table_entry::successful_hits [mutable, protected]

Definition at line 53 of file remember.h.

Referenced by is_equal(), and remember_table_entry().

unsigned long GiNaC::remember_table_entry::access_counter = 0 [static, protected]

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.