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

Iterate through a table row. I.e. constant Y, changing X. More...

#include <table3d_values.h>

Public Member Functions

 table_row_iterator (const table3d_value_t *pRowStart, table3d_dim_t rowWidth)
 Construct.
 
const table3d_value_tend (void) const
 Pointer to the end of the row.
 
table3d_value_tend (void)
 Pointer to the end of the row.
 
table_row_iteratoradvance (table3d_dim_t steps)
 Advance the iterator.
 
table_row_iteratoroperator++ (void)
 Increment the iterator by one element.
 
bool at_end (void) const
 Test for end of iteration.
 
const table3d_value_toperator* (void) const
 Dereference the iterator.
 
table3d_value_toperator* (void)
 Dereference the iterator.
 
table3d_dim_t size (void) const
 Number of elements available.
 

Detailed Description

Iterate through a table row. I.e. constant Y, changing X.

Instances of this class are normally created via a table_value_iterator instance.

Constructor & Destructor Documentation

◆ table_row_iterator()

table_row_iterator::table_row_iterator ( const table3d_value_t pRowStart,
table3d_dim_t  rowWidth 
)
inline

Construct.

Parameters
pRowStartPointer to the 1st element in the row
rowWidthThe number of elements to in the row

Member Function Documentation

◆ advance()

table_row_iterator & table_row_iterator::advance ( table3d_dim_t  steps)
inline

Advance the iterator.

Parameters
stepsThe number of elements to move the iterator
Here is the call graph for this function:
Here is the caller graph for this function:

◆ at_end()

bool table_row_iterator::at_end ( void  ) const
inline

Test for end of iteration.

◆ end() [1/2]

table3d_value_t * table_row_iterator::end ( void  )
inline

Pointer to the end of the row.

◆ end() [2/2]

const table3d_value_t * table_row_iterator::end ( void  ) const
inline

Pointer to the end of the row.

◆ operator*() [1/2]

table3d_value_t & table_row_iterator::operator* ( void  )
inline

Dereference the iterator.

◆ operator*() [2/2]

const table3d_value_t & table_row_iterator::operator* ( void  ) const
inline

Dereference the iterator.

◆ operator++()

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

Increment the iterator by one element.

Here is the call graph for this function:

◆ size()

table3d_dim_t table_row_iterator::size ( void  ) const
inline

Number of elements available.


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