nngn
Loading...
Searching...
No Matches
nngn::lua::detail::table_seq_iter< T > Class Template Reference

ipairs-style table iterator. More...

#include <iter.h>

Inheritance diagram for nngn::lua::detail::table_seq_iter< T >:
Collaboration diagram for nngn::lua::detail::table_seq_iter< T >:

Public Types

using value_type = std::pair<lua_Integer, value_view>
 
- Public Types inherited from nngn::lua::detail::table_iter_base< table_seq_iter< T >, T >
using difference_type
 

Public Member Functions

 table_seq_iter (T *table)
 
value_type operator* (void) const
 
table_seq_iteroperator++ (void)
 
table_seq_iter operator++ (int)
 
- Public Member Functions inherited from nngn::lua::detail::table_iter_base< table_seq_iter< T >, T >
 table_iter_base (void)=default
 
 table_iter_base (T *table_)
 
table_iter_baseoperator++ (void)
 
table_iter_base operator++ (int)
 

Private Types

using base = table_iter_base<table_seq_iter, T>
 

Private Member Functions

table_seq_iternext (void)
 

Private Attributes

friend base
 
lua_Integer i = 0
 
int value_idx = 0
 

Additional Inherited Members

- Protected Member Functions inherited from nngn::lua::detail::table_iter_base< table_seq_iter< T >, T >
table_seq_iter< T > & pre_inc (void)
 
table_seq_iter< Tpost_inc (void)
 
- Protected Attributes inherited from nngn::lua::detail::table_iter_base< table_seq_iter< T >, T >
Ttable
 

Detailed Description

template<typename T>
class nngn::lua::detail::table_seq_iter< T >

ipairs-style table iterator.

Member Typedef Documentation

◆ base

template<typename T >
using nngn::lua::detail::table_seq_iter< T >::base = table_iter_base<table_seq_iter, T>
private

◆ value_type

template<typename T >
using nngn::lua::detail::table_seq_iter< T >::value_type = std::pair<lua_Integer, value_view>

Constructor & Destructor Documentation

◆ table_seq_iter()

template<typename T >
nngn::lua::detail::table_seq_iter< T >::table_seq_iter ( T * table)
Here is the call graph for this function:

Member Function Documentation

◆ next()

template<typename T >
auto nngn::lua::detail::table_seq_iter< T >::next ( void )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator*()

template<typename T >
auto nngn::lua::detail::table_seq_iter< T >::operator* ( void ) const
Here is the call graph for this function:

◆ operator++() [1/2]

template<typename T >
table_seq_iter nngn::lua::detail::table_seq_iter< T >::operator++ ( int )
inline
Here is the call graph for this function:

◆ operator++() [2/2]

template<typename T >
table_seq_iter & nngn::lua::detail::table_seq_iter< T >::operator++ ( void )
inline
Here is the call graph for this function:

Member Data Documentation

◆ base

template<typename T >
friend nngn::lua::detail::table_seq_iter< T >::base
private

◆ i

template<typename T >
lua_Integer nngn::lua::detail::table_seq_iter< T >::i = 0
private

◆ value_idx

template<typename T >
int nngn::lua::detail::table_seq_iter< T >::value_idx = 0
private

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