next up previous contents
Next: ResizeArray Up: Utility objects Previous: Inform   Contents

Subsections


NameList

Files: NameList.h, NameList.c
Derived from: none
Global instance (if any): none
Used in optional component: Part of main VMD code

Description

This is a template class which implements a simple associative array. A NameList consists of N items, where each item has a name, an index, and an associated data value (the type of which is determined by the type given to the template).

Constructors

Internal data structures

Nonvirtual member functions

Method of use

This is a template used to associate sets of data of any type with character strings (names). Names and data are added with add_name, and the other routines are used to query info about these names. Many objects in VMD use NameLists, for example the colors are all stored this way.


next up previous contents
Next: ResizeArray Up: Utility objects Previous: Inform   Contents
vmd@ks.uiuc.edu