Wt::WModelIndex Class Reference

An index to a data item of a data model. More...

#include <WModelIndex>

List of all members.

Public Member Functions

 WModelIndex ()
 Create a new (invalid) WModelIndex.
int column () const
 Get the column for this model index.
int row () const
 Get the row for this model index.
boost::any data () const
 Get the data in the model at this index.
bool isValid () const
 Return if this index points to anything.
const
WAbstractItemModel
model () const
 Return the abstract item model to which this (valid) index is bound.


Detailed Description

An index to a data item of a data model.

An index is immutable, and a valid index can only be created using the WAbstractItemModel::index(int row, int column) method.

See also:
WAbstractItemModel

Constructor & Destructor Documentation

Wt::WModelIndex::WModelIndex (  ) 

Create a new (invalid) WModelIndex.

Returns a model index for which isValid() return false.


The documentation for this class was generated from the following files:
Generated on Mon Apr 14 15:15:01 2008 for Wt by doxygen 1.5.3