Wt::WModelIndex Class Reference

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

#include <Wt/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.


Generated on Fri Jul 25 17:56:38 2008 for Wt by doxygen 1.5.3