FSTR::TableRow< ElementType, Columns > Class Template Reference

Class template to define the row of a table. More...

#include <Table.hpp>

Collaboration diagram for FSTR::TableRow< ElementType, Columns >:

Public Member Functions

ElementType operator[] (size_t index) const
 Array operator. More...
 
size_t length () const
 Get number of columns. More...
 
size_t printTo (Print &p) const
 Print a row using Array Printer. More...
 

Static Public Member Functions

static TableRow empty ()
 Return a TableRow instance to be used for invalid or empty values. More...
 

Public Attributes

ElementType values [Columns]
 

Detailed Description

template<typename ElementType, size_t Columns>
class FSTR::TableRow< ElementType, Columns >

Class template to define the row of a table.

Template Parameters
ElementType
ColumnsNumber of columns in the table

Use with an Array Object to construct simple tables. Methods provide Object-like access.

Member Function Documentation

◆ empty()

template<typename ElementType , size_t Columns>
static TableRow FSTR::TableRow< ElementType, Columns >::empty ( )
inlinestatic

Return a TableRow instance to be used for invalid or empty values.

◆ length()

template<typename ElementType , size_t Columns>
size_t FSTR::TableRow< ElementType, Columns >::length ( void  ) const
inline

Get number of columns.

Return values
size_t

◆ operator[]()

template<typename ElementType , size_t Columns>
ElementType FSTR::TableRow< ElementType, Columns >::operator[] ( size_t  index) const
inline

Array operator.

Parameters
index
Return values
ElementType

◆ printTo()

template<typename ElementType , size_t Columns>
size_t FSTR::TableRow< ElementType, Columns >::printTo ( Print p) const
inline

Print a row using Array Printer.

Member Data Documentation

◆ values

template<typename ElementType , size_t Columns>
ElementType FSTR::TableRow< ElementType, Columns >::values[Columns]

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