Ardour  9.0-pre0-350-gf17a656217
Iterator Class Reference

#include <Iterator.h>

Public Member Functions

 Iterator (LuaRef table)
 
lua_Statestate () const
 
LuaRef operator* () const
 
LuaRef operator-> () const
 
Iteratoroperator++ ()
 
bool isNil () const
 
LuaRef key () const
 
LuaRef value () const
 

Private Member Functions

void next ()
 
Iterator operator++ (int)
 

Private Attributes

lua_Statem_L
 
LuaRef m_table
 
LuaRef m_key
 
LuaRef m_value
 

Detailed Description

Allows table iteration.

Definition at line 31 of file Iterator.h.

Constructor & Destructor Documentation

◆ Iterator()

Iterator::Iterator ( LuaRef  table)
inlineexplicit

Definition at line 57 of file Iterator.h.

Member Function Documentation

◆ isNil()

bool Iterator::isNil ( ) const
inline

Definition at line 95 of file Iterator.h.

◆ key()

LuaRef Iterator::key ( ) const
inline

Definition at line 100 of file Iterator.h.

◆ next()

void Iterator::next ( )
inlineprivate

Definition at line 39 of file Iterator.h.

◆ operator*()

LuaRef Iterator::operator* ( ) const
inline

Definition at line 71 of file Iterator.h.

◆ operator++() [1/2]

Iterator& Iterator::operator++ ( )
inline

Definition at line 81 of file Iterator.h.

◆ operator++() [2/2]

Iterator Iterator::operator++ ( int  )
private

◆ operator->()

LuaRef Iterator::operator-> ( ) const
inline

Definition at line 76 of file Iterator.h.

◆ state()

lua_State* Iterator::state ( void  ) const
inline

Definition at line 66 of file Iterator.h.

◆ value()

LuaRef Iterator::value ( ) const
inline

Definition at line 105 of file Iterator.h.

Member Data Documentation

◆ m_key

LuaRef Iterator::m_key
private

Definition at line 36 of file Iterator.h.

◆ m_L

lua_State* Iterator::m_L
private

Definition at line 34 of file Iterator.h.

◆ m_table

LuaRef Iterator::m_table
private

Definition at line 35 of file Iterator.h.

◆ m_value

LuaRef Iterator::m_value
private

Definition at line 37 of file Iterator.h.


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