PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFXTableItem
Concrete template class which represents an item [row] of a table model.
#include <SFXTableItem.h.hpp>
class SFXTableItem : public SFXTableItemBase;
template <SInt32 NUM>
class SFXTableItem;

Inheritance diagram

 Inheritance diagram of SFXTableItemClass

Collaboration diagram

 Collaboration diagram of SFXTableItemClass

Description

The SFXTableItem class is a concrete template class which represents an item [row] of a table model.

[Note] Note

The template parameter NUM means the number of the columns of the table model.

The data of an item [row] is represented as the fixed-length array of a cell object (SFXAny) whose size is the number NUM of the table columns.

The interfaces for accessing the item [row] are implemented in this class.

Reference

SFOTableModel | SFXAny

Member

Constructor/Destructor
~SFXTableItem( Void )
Destructor of the SFXTableItem class.
Public Functions
SFXTableItemPtr Clone( Void )
Clone the item [row].
SFXAnyPtr GetColumn( SInt32 col )
Get the cell object specified by the column index.
SInt32 GetColumnLength( Void )
Get the number of the item columns.

SFXTableItem::~SFXTableItem
Destructor of the SFXTableItem class.
[ public, virtual ]
~SFXTableItem(Void);

Description

This destructor does nothing.


SFXTableItem::Clone
Clone the item [row].
[ public, virtual, const ]
SFXTableItemPtr Clone(Void);

Return value

Pointer to the cloned item [row].

Description

This function clones the item [row].


SFXTableItem::GetColumn
Get the cell object specified by the column index.
[ public, virtual ]
SFXAnyPtr GetColumn(
    SInt32 col   // column index
);

Return value

Pointer to the cell object which is specified by the column index.

Description

This function gets the cell object which is specified by the column index.

[Caution] Caution

The range of the "col" argment is not checked.

The behavior of out of range input (minus, column numbers or over) is not defined. ASSERT will be generated in simulator.

Reference

SFXAny


SFXTableItem::GetColumnLength
Get the number of the item columns.
[ public, virtual, const ]
SInt32 GetColumnLength(Void);

Return value

Number of item columns, that is always template parameter "NUM".

Description

This function gets the number of the columns.

[Note] Note

The template parameter value "NUM" is always returned.

Reference

SFXAny