Speeduino
Loading...
Searching...
No Matches
Public Member Functions | List of all members
table_value_iterator Class Reference

Iterate through a tables values, row by row. More...

#include <table3d_values.h>

Public Member Functions

 table_value_iterator (const table3d_value_t *pValues, table3d_dim_t axisSize)
 Construct.
 
table_value_iteratoradvance (table3d_dim_t rows)
 Advance the iterator.
 
table_value_iteratoroperator++ (void)
 Increment the iterator by one row.
 
const table_row_iterator operator* (void) const
 Dereference the iterator to access a row of data.
 
table_row_iterator operator* (void)
 Dereference the iterator to access a row of data.
 
bool at_end (void) const
 Test for end of iteration.
 

Detailed Description

Iterate through a tables values, row by row.

Constructor & Destructor Documentation

◆ table_value_iterator()

table_value_iterator::table_value_iterator ( const table3d_value_t pValues,
table3d_dim_t  axisSize 
)
inline

Construct.

Parameters
pValuesPointer to the 1st value in a 1-d array
axisSizeThe number of columns & elements per row (square tables only)

Member Function Documentation

◆ advance()

table_value_iterator & table_value_iterator::advance ( table3d_dim_t  rows)
inline

Advance the iterator.

Parameters
rowsThe number of rows to move
Here is the call graph for this function:
Here is the caller graph for this function:

◆ at_end()

bool table_value_iterator::at_end ( void  ) const
inline

Test for end of iteration.

◆ operator*() [1/2]

table_row_iterator table_value_iterator::operator* ( void  )
inline

Dereference the iterator to access a row of data.

◆ operator*() [2/2]

const table_row_iterator table_value_iterator::operator* ( void  ) const
inline

Dereference the iterator to access a row of data.

◆ operator++()

table_value_iterator & table_value_iterator::operator++ ( void  )
inline

Increment the iterator by one row.

Here is the call graph for this function:

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