rwlogo

Rogue Wave Views
Data Access Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions | Friends
IliRowPtr Class Reference

Table class. More...

#include <ilviews/dataccess/tblptr.h>

Public Member Functions

 IliRowPtr ()
 Constructs a row pointer that points to no row. More...
 
 IliRowPtr (const IliRowPtr &)
 This is the copy constructor of the IliRowPtr class.
 
IlInt getRowIndex () const
 Returns the row index of the row pointed at. More...
 
IliTablegetTable () const
 Returns the IliTable object to which the row pointed at belongs. More...
 
IliRowPtroperator= (const IliRowPtr &ptr)
 This is the assignment operator of class IliRowPtr. More...
 

Friends

class IliTable
 

Detailed Description

Table class.

Library: dataccess

The IliRowPtr class defines objects that hold the index of a row in a given IliTable object. These objects take care of adjusting the row index whenever the row moves in its table (or when other rows are inserted or deleted before it). An IliRowPtr is obtained by calling the IliTable::getRowPtr member function.

See Also
IliTable

Constructor & Destructor Documentation

IliRowPtr::IliRowPtr ( )

Constructs a row pointer that points to no row.

Its row index is -1 and its table is NULL.

Member Function Documentation

IlInt IliRowPtr::getRowIndex ( ) const

Returns the row index of the row pointed at.

Returns
The row index of the row pointed at or -1 if no row is pointed at. Note that if the row moves in its table (or if other rows are inserted or deleted before it), this member function will return different values before and after the row has moved.
IliTable* IliRowPtr::getTable ( ) const

Returns the IliTable object to which the row pointed at belongs.

Returns
The IliTable object that the row pointed at belongs to or NULL if the row pointer points to no row.
IliRowPtr& IliRowPtr::operator= ( const IliRowPtr ptr)

This is the assignment operator of class IliRowPtr.

Parameters
ptrThe new values.
Returns
The modified object.

© Copyright 2014, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.