Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/classcasa_1_1TableIndexProxy.html
Дата изменения: Unknown
Дата индексирования: Mon Feb 14 22:41:55 2011
Кодировка:

Поисковые слова: южная атлантическая аномалия
casacore: casa::TableIndexProxy Class Reference
Public Member Functions | Private Member Functions | Private Attributes

casa::TableIndexProxy Class Reference
[Tables_module]

Proxy for table index access. More...

#include <TableIndexProxy.h>

List of all members.

Public Member Functions

 TableIndexProxy (const TableProxy &table, const Vector< String > &columnNames, Bool noSort)
 Construct for the given columns in the table.
 TableIndexProxy (const TableIndexProxy &)
 Copy constructor.
 ~TableIndexProxy ()
Bool isUnique () const
 Are all keys in the index unique?
Vector< StringcolumnNames () const
 Return the names of the columns forming the index.
void setChanged (const Vector< String > &columnNames)
 Something has changed in the table, so the index has to be recreated.
Int getRowNumber (const Record &key)
 Find the row number matching the key.
Vector< IntgetRowNumbers (const Record &key)
 Find the row numbers matching the key.
Vector< IntgetRowNumbersRange (const Record &lower, const Record &upper, Bool lowerInclusive, Bool upperInclusive)
 Find the row numbers matching the key range.

Private Member Functions

TableIndexProxyoperator= (const TableIndexProxy &)
 Assignment is forbidden.

Private Attributes

ColumnsIndexscaIndex_p
ColumnsIndexArrayarrIndex_p

Detailed Description

Proxy for table index access.

Intended use:

Public interface

Review Status

Reviewed By:
Paul Shannon
Date Reviewed:
1995/09/15
Test programs:
tgtable.g

Prerequisite

Synopsis

TableIndexProxy gives access to indexed access to tables, both for scalar columns and array columns. It is primarily meant to be used in classes that wrap access to it from scripting languages (like Glish and Python). However, it can also be used directly from other C++ code.

A TableIndexProxy object is usually created by class TableProxy .

Definition at line 68 of file TableIndexProxy.h.


Constructor & Destructor Documentation

casa::TableIndexProxy::TableIndexProxy ( const TableProxy table,
const Vector< String > &  columnNames,
Bool  noSort 
)

Construct for the given columns in the table.

casa::TableIndexProxy::TableIndexProxy ( const TableIndexProxy  ) 

Copy constructor.

casa::TableIndexProxy::~TableIndexProxy (  ) 

Member Function Documentation

Vector<String> casa::TableIndexProxy::columnNames (  )  const

Return the names of the columns forming the index.

Int casa::TableIndexProxy::getRowNumber ( const Record key  ) 

Find the row number matching the key.

All keys have to be unique, otherwise an exception is thrown. If no match is found, -1 is returned.

Vector<Int> casa::TableIndexProxy::getRowNumbers ( const Record key  ) 

Find the row numbers matching the key.

It should be used instead of getRowNumber if the same key can exist multiple times.

Vector<Int> casa::TableIndexProxy::getRowNumbersRange ( const Record lower,
const Record upper,
Bool  lowerInclusive,
Bool  upperInclusive 
)

Find the row numbers matching the key range.

The boolean arguments tell if the lower and upper key are part of the range.

Bool casa::TableIndexProxy::isUnique (  )  const

Are all keys in the index unique?

TableIndexProxy& casa::TableIndexProxy::operator= ( const TableIndexProxy  )  [private]

Assignment is forbidden.

void casa::TableIndexProxy::setChanged ( const Vector< String > &  columnNames  ) 

Something has changed in the table, so the index has to be recreated.

An empty vector means that all columns have changed, otherwise only the given columns.


Member Data Documentation

Definition at line 111 of file TableIndexProxy.h.

Definition at line 110 of file TableIndexProxy.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines