Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ util/

operations_research::CachedLog Class Reference

This class is used when manipulating search space estimations. More...

#include <cached_log.h>

List of all members.

Public Member Functions

 CachedLog ()
 ~CachedLog ()
void Init (int cache_size)
 This method can only be called once, and with a cache_size > 0.
double Log2 (int64 input) const
 Returns the log2 of 'input'.


Detailed Description

This class is used when manipulating search space estimations.

It provides fast access to log of a domain size. Future Extensions:

Definition at line 32 of file cached_log.h.


Constructor & Destructor Documentation

operations_research::CachedLog::CachedLog (  ) 

Definition at line 20 of file cached_log.cc.

operations_research::CachedLog::~CachedLog (  ) 

Definition at line 22 of file cached_log.cc.


Member Function Documentation

void operations_research::CachedLog::Init ( int  cache_size  ) 

This method can only be called once, and with a cache_size > 0.

Definition at line 34 of file cached_log.cc.

double operations_research::CachedLog::Log2 ( int64  input  )  const

Returns the log2 of 'input'.

Definition at line 43 of file cached_log.cc.


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