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

lua_next-based table iterator. More...

#include <iter.h>

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

Public Types

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

Public Member Functions

value_type operator* (void) const
 
 table_iter (T *table)
 
table_iteroperator++ (void)
 
table_iter operator++ (int)
 
- Public Member Functions inherited from nngn::lua::detail::table_iter_base< table_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_iter, T>
 

Private Member Functions

table_iternext (void)
 

Private Attributes

friend base
 
int key_idx = 0
 

Additional Inherited Members

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

Detailed Description

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

lua_next-based table iterator.

Member Typedef Documentation

◆ base

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

◆ value_type

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

Constructor & Destructor Documentation

◆ table_iter()

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

Member Function Documentation

◆ next()

template<typename T >
auto nngn::lua::detail::table_iter< T >::next ( void )
private

◆ operator*()

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

◆ operator++() [1/2]

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

◆ operator++() [2/2]

template<typename T >
table_iter & nngn::lua::detail::table_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_iter< T >::base
private

◆ key_idx

template<typename T >
int nngn::lua::detail::table_iter< T >::key_idx = 0
private

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