Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: componentlist.getlabel - Function Up: componentlist - Tool Previous: componentlist.deselect - Function


componentlist.selected - Function



Package synthesis
Module componentmodels
Tool componentlist


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.

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.



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 up previous contents index
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