nngn
Loading...
Searching...
No Matches
nngn::lua::detail::table_iter_base< CRTP, T > Class Template Reference

CRTP base for table iterators. More...

#include <iter.h>

Inheritance diagram for nngn::lua::detail::table_iter_base< CRTP, T >:
Collaboration diagram for nngn::lua::detail::table_iter_base< CRTP, T >:

Public Types

using difference_type = std::ptrdiff_t
 

Public Member Functions

 table_iter_base (void)=default
 
 table_iter_base (T *table_)
 
table_iter_baseoperator++ (void)
 
table_iter_base operator++ (int)
 

Protected Member Functions

CRTP & pre_inc (void)
 
CRTP post_inc (void)
 

Protected Attributes

Ttable = nullptr
 

Friends

bool operator== (const table_iter_base &lhs, const table_iter_base &rhs)
 

Detailed Description

template<typename CRTP, typename T>
class nngn::lua::detail::table_iter_base< CRTP, T >

CRTP base for table iterators.

Member Typedef Documentation

◆ difference_type

template<typename CRTP , typename T >
using nngn::lua::detail::table_iter_base< CRTP, T >::difference_type = std::ptrdiff_t

Constructor & Destructor Documentation

◆ table_iter_base() [1/2]

template<typename CRTP , typename T >
nngn::lua::detail::table_iter_base< CRTP, T >::table_iter_base ( void )
default

◆ table_iter_base() [2/2]

template<typename CRTP , typename T >
nngn::lua::detail::table_iter_base< CRTP, T >::table_iter_base ( T * table_)
inline

Member Function Documentation

◆ operator++() [1/2]

template<typename CRTP , typename T >
auto nngn::lua::detail::table_iter_base< CRTP, T >::operator++ ( int )

◆ operator++() [2/2]

template<typename CRTP , typename T >
auto nngn::lua::detail::table_iter_base< CRTP, T >::operator++ ( void )

◆ post_inc()

template<typename CRTP , typename T >
CRTP nngn::lua::detail::table_iter_base< CRTP, T >::post_inc ( void )
inlineprotected

◆ pre_inc()

template<typename CRTP , typename T >
CRTP & nngn::lua::detail::table_iter_base< CRTP, T >::pre_inc ( void )
inlineprotected

Friends And Related Symbol Documentation

◆ operator==

template<typename CRTP , typename T >
bool operator== ( const table_iter_base< CRTP, T > & lhs,
const table_iter_base< CRTP, T > & rhs )
friend

Member Data Documentation

◆ table

template<typename CRTP , typename T >
T* nngn::lua::detail::table_iter_base< CRTP, T >::table = nullptr
protected

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