Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | synthesis | |
Module | componentmodels | |
Tool | componentlist |
Components are marked as selected using the
select
function. This function will be used in conjunction with the
graphical user interface and other functions in the componentlist
tool will behave no differently if a component is marked as
``selected'' or not.
Determine which components are selected
Synopsis
selected()
Description
The selected function is used to determine which components in a
list are selected. It returns a vector with indices that indicate
which components are selected. A zero length vector is returned if
no components are selected.
Returns
A vector of integers between 1 and the list length
Example
include 'componentlist.g'
cl := componentlist('crux.cl');
cl.select([1,3]);
cl.deselect([2,3]);
cl.selected()
This example reads a list from disk. After the deselect operation
only the first component is still selected and the selected
function will return [1]
Next: componentlist.getlabel - Function
Up: componentlist - Tool
Previous: componentlist.deselect - Function
  Contents
  Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc.,
Washington, D.C.
Return to AIPS++ Home Page
2006-10-15