iterates local store_table More...

Inheritance diagram for Store::LocalSearch:
Collaboration diagram for Store::LocalSearch:

Public Member Functions

virtual void next (void(callback)(void *cbdata), void *cbdata) override
 
virtual bool next () override
 
virtual bool error () const override
 
virtual bool isDone () const override
 
virtual StoreEntrycurrentItem () override
 

Private Member Functions

 CBDATA_CLASS (LocalSearch)
 
void copyBucket ()
 

Private Attributes

bool _done = false
 
int bucket = 0
 
std::vector< StoreEntry * > entries
 

Detailed Description

Definition at line 20 of file LocalSearch.cc.

Member Function Documentation

◆ CBDATA_CLASS()

Store::LocalSearch::CBDATA_CLASS ( LocalSearch  )
private

◆ copyBucket()

void Store::LocalSearch::copyBucket ( )
private

Definition at line 90 of file LocalSearch.cc.

References assert, bucket, debugs, entries, hash_get_bucket(), hash_link::next, NULL, and store_table.

Referenced by next().

◆ currentItem()

StoreEntry * Store::LocalSearch::currentItem ( )
overridevirtual

Implements StoreSearch.

Definition at line 81 of file LocalSearch.cc.

References entries, and NULL.

Referenced by next().

◆ error()

bool Store::LocalSearch::error ( ) const
overridevirtual

Implements StoreSearch.

Definition at line 69 of file LocalSearch.cc.

◆ isDone()

bool Store::LocalSearch::isDone ( ) const
overridevirtual

Implements StoreSearch.

Definition at line 75 of file LocalSearch.cc.

References _done, bucket, and store_hash_buckets.

Referenced by next().

◆ next() [1/2]

virtual void Store::LocalSearch::next ( void(callback)(void *cbdata ,
void *  cbdata 
)
overridevirtual

Implements StoreSearch.

◆ next() [2/2]

bool Store::LocalSearch::next ( )
overridevirtual

Implements StoreSearch.

Definition at line 57 of file LocalSearch.cc.

References copyBucket(), currentItem(), entries, isDone(), and NULL.

Referenced by Store::NewLocalSearch().

Member Data Documentation

◆ _done

bool Store::LocalSearch::_done = false
private

Definition at line 34 of file LocalSearch.cc.

Referenced by isDone().

◆ bucket

int Store::LocalSearch::bucket = 0
private

Definition at line 35 of file LocalSearch.cc.

Referenced by copyBucket(), and isDone().

◆ entries

std::vector<StoreEntry *> Store::LocalSearch::entries
private

Definition at line 36 of file LocalSearch.cc.

Referenced by copyBucket(), currentItem(), and next().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors