ndn::InMemoryStorage::const_iterator Class Reference

Represents a self-defined const_iterator for the in-memory storage. More...

#include <ndn-cxx/ims/in-memory-storage.hpp>

Public Types

using difference_type = std::ptrdiff_t
 
using iterator_category = std::input_iterator_tag
 
using pointer = value_type *
 
using reference = value_type &
 
using value_type = const Data
 

Public Member Functions

 const_iterator (const Data *ptr, const Cache *cache, Cache::index< byFullName >::type::iterator it)
 
bool operator!= (const const_iterator &rhs)
 
reference operator* ()
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
pointer operator-> ()
 
bool operator== (const const_iterator &rhs)
 

Detailed Description

Represents a self-defined const_iterator for the in-memory storage.

Note
Don't try to instantiate this class directly, use InMemoryStorage::begin() instead.

Definition at line 66 of file in-memory-storage.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 71 of file in-memory-storage.hpp.

◆ iterator_category

Definition at line 69 of file in-memory-storage.hpp.

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ const_iterator()

ndn::InMemoryStorage::const_iterator::const_iterator ( const Data ptr,
const Cache cache,
Cache::index< byFullName >::type::iterator  it 
)

Definition at line 30 of file in-memory-storage.cpp.

Member Function Documentation

◆ operator!=()

bool ndn::InMemoryStorage::const_iterator::operator!= ( const const_iterator rhs)

Definition at line 79 of file in-memory-storage.cpp.

◆ operator*()

InMemoryStorage::const_iterator::reference ndn::InMemoryStorage::const_iterator::operator* ( )

Definition at line 61 of file in-memory-storage.cpp.

◆ operator++() [1/2]

InMemoryStorage::const_iterator & ndn::InMemoryStorage::const_iterator::operator++ ( )

Definition at line 39 of file in-memory-storage.cpp.

◆ operator++() [2/2]

InMemoryStorage::const_iterator ndn::InMemoryStorage::const_iterator::operator++ ( int  )

Definition at line 53 of file in-memory-storage.cpp.

◆ operator->()

InMemoryStorage::const_iterator::pointer ndn::InMemoryStorage::const_iterator::operator-> ( )

Definition at line 67 of file in-memory-storage.cpp.

◆ operator==()

bool ndn::InMemoryStorage::const_iterator::operator== ( const const_iterator rhs)

Definition at line 73 of file in-memory-storage.cpp.