Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

IdList Class Reference

calculate which molecules to operate upon from the given molecule name; put the data in idList, and return the pointer to the integer list. If NULL is returned, there was an error or no molecules were specified. If an error occurs, this prints out the error message as well. Molecule names are of the form n1[|n2[.... [|nN]...]] where ni is either "all", "top", "active", "inactive", "displayed", "on", "off", "fixed", "free", "none", or an ID. There should be no spaces in the name. More...

List of all members.


Public Methods

IdList ()
int find (Tcl_Interp *, VMDApp *app, const char *txt, int *allmolsflag=NULL)
~IdList ()
int num () const
int operator[] (int i) const

Detailed Description

calculate which molecules to operate upon from the given molecule name; put the data in idList, and return the pointer to the integer list. If NULL is returned, there was an error or no molecules were specified. If an error occurs, this prints out the error message as well. Molecule names are of the form n1[|n2[.... [|nN]...]] where ni is either "all", "top", "active", "inactive", "displayed", "on", "off", "fixed", "free", "none", or an ID. There should be no spaces in the name.

Definition at line 59 of file cmd_mol.C.


Constructor & Destructor Documentation

IdList::IdList ( ) [inline]

Definition at line 74 of file cmd_mol.C.

IdList::~IdList ( ) [inline]

Definition at line 79 of file cmd_mol.C.


Member Function Documentation

int IdList::find ( Tcl_Interp * ,
VMDApp * app,
const char * txt,
int * allmolsflag = NULL
)

Definition at line 86 of file cmd_mol.C.

References VMDApp::molecule_id, VMDApp::molecule_is_active, VMDApp::molecule_is_displayed, VMDApp::molecule_is_fixed, VMDApp::molecule_top, VMDApp::molecule_valid_id, n, NULL, VMDApp::num_molecules, and strupncmp.

Referenced by cmd_mol_list, and text_cmd_mol.

int IdList::num ( ) const [inline]

Definition at line 82 of file cmd_mol.C.

Referenced by cmd_mol_list, and text_cmd_mol.

int IdList::operator[] ( int i ) const [inline]

Definition at line 83 of file cmd_mol.C.


The documentation for this class was generated from the following file:
Generated on Mon Nov 17 02:48:44 2025 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002

AltStyle によって変換されたページ (->オリジナル) /