FlashGraph-ng
A new frontier in large-scale graph analysis and data mining
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
safs::page_byte_array::seq_const_iterator< T > Class Template Reference

#include <cache.h>

Public Member Functions

bool has_next ()
 
int get_num_tot_entries () const
 
int get_num_entries_in_page () const
 
next ()
 
curr () const
 

Detailed Description

template<class T>
class safs::page_byte_array::seq_const_iterator< T >

This is a Java-style iterator that accesses elements in the byte array sequentially. Users can redefine the type of elements in the byte array and iterate the elements stored in the byte array.

Member Function Documentation

template<class T>
T safs::page_byte_array::seq_const_iterator< T >::curr ( ) const
inline

This method gets the current element.

Returns
the current element.
template<class T>
int safs::page_byte_array::seq_const_iterator< T >::get_num_entries_in_page ( ) const
inline

This method gets the number of remaining elements in the page where the current iterator is on.

Returns
the number of remaining elements in the current page.
template<class T>
int safs::page_byte_array::seq_const_iterator< T >::get_num_tot_entries ( ) const
inline

This method gets the total number of remaining elements in the iterator.

Returns
the total number of remaining elements.
template<class T>
bool safs::page_byte_array::seq_const_iterator< T >::has_next ( )
inline

This method tests whether the iterator can move to the next element in the byte array.

Returns
true if there are more elements in the iterator.
template<class T>
T safs::page_byte_array::seq_const_iterator< T >::next ( )
inline

This method moves to the next element.

Returns
the current element.

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