Alpha Expansion Library
C++ library for the Alpha-Expansion graph-cut algorithm with Python bindings
Loading...
Searching...
No Matches
Public Member Functions | List of all members
EnergyModel< T >::NeighborRange Class Reference

Lightweight contiguous range over a node's neighbours. More...

#include <EnergyModel.hpp>

Public Member Functions

 NeighborRange (const int *begin, const int *end)
 
const int * begin () const
 
const int * end () const
 
int size () const
 

Detailed Description

template<typename T>
class EnergyModel< T >::NeighborRange

Lightweight contiguous range over a node's neighbours.

Provides begin(), end() and size() so it can be iterated with a range-for.

Constructor & Destructor Documentation

◆ NeighborRange()

template<typename T >
EnergyModel< T >::NeighborRange::NeighborRange ( const int *  begin,
const int *  end 
)
inline

Member Function Documentation

◆ begin()

template<typename T >
const int * EnergyModel< T >::NeighborRange::begin ( ) const
inline

◆ end()

template<typename T >
const int * EnergyModel< T >::NeighborRange::end ( ) const
inline

◆ size()

template<typename T >
int EnergyModel< T >::NeighborRange::size ( ) const
inline

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