HashResult[ GAMB | Source | Keywords | Summary | Ancestors | All Members | Descendants ]
| public: | |
| static const int | defSize = 32; | 
| HashResult(); | |
| HashResult(const unsigned int defAlloc); | |
| ~HashResult(); | |
| void | push_back(Bucket* bkt); | 
| size_t | size() const; | 
| iterator | begin(); | 
| iterator | end(); | 
| bool | empty() const; | 
| size_t | max_size() const; | 
| reference | front() const; | 
| reference | back() const; | 
| unsigned int | bucketCount() const; | 
| void | clear(); | 
| protected: | 
Copyright: SAMBA group, Tel-Aviv Univ. Israel, 1997.
For an example of using the query result container and iterator class see GeomHash.
const int defSize = 32;
    The default size of the Bucket pointers array. The array grows
     dynamically as more results are collected. The default size and 
     increment size are defined by defSize but could be changed using the
     constructor. Note that the pointers are to Buckets of elements and not
     to the elements themselves so the pointer array size should not be as
     large as the number of results.
static const int defSize = 32;
HashResult();
    Instantiate a HashResult. Allocates space for defSize bucket pointers.
HashResult();
HashResult(const unsigned int defAlloc);
    Instantiate a HashResult. Allocates space for defAlloc bucket pointers.
HashResult(const unsigned int defAlloc);
~HashResult();
    Destructor.
~HashResult();
void push_back(Bucket* bkt);
    Add a Bucket pointer to the dynamic pointer array held by the container.
     Generally, for normal use of the geometric hash tables this method
     should not be called. It is used by the HashLink template class to collect
     query results.
void push_back(Bucket* bkt);
size_t size() const;
    Returns number of elements in the query result container. It should be
     stressed that the method does not return the number of Bucket pointers
     or the size of the pointer array but the number of actual data elements
     in the query results which could be much larger.
size_t size() const;
iterator begin();
    Returns an iterator to the beginning of the query results list.
iterator begin();
iterator end();
    Returns an iterator to the end of the query results list.
iterator end();
bool empty() const;
    Returns true if container is empty.
bool empty() const;
size_t max_size() const;
    Same as size(). Here for STL compliance.
size_t max_size() const;
reference front() const;
    Returns first element of the container (the query results- 
     assuming its a Bucket)
reference front() const;
reference back() const;
    Returns last element of the container (the query results - 
     assuming its a Bucket).
reference back() const;
unsigned int bucketCount() const;
    Returns the number of Buckets referenced by the results container.
unsigned int bucketCount() const;
void clear();
    Clears hash result container. Does not affect the geometric hash table
     itself. After a clear call a HashResult object may be used for another
     query. Memory used is not deallocated until object destruction.
void clear();
| public: | ||
|---|---|---|
| static const int | defSize = 32; | |
| void | push_back(Bucket* bkt); | |
| size_t | size() const; | |
| iterator | begin(); | |
| iterator | end(); | |
| bool | empty() const; | |
| size_t | max_size() const; | |
| reference | front() const; | |
| reference | back() const; | |
| unsigned int | bucketCount() const; | |
| void | clear(); | |
| protected: | ||
Report problems to jkotula@unimax.com