#include <ConfigList.h>
Public Member Functions | |
| ConfigListNode (ConfigListNode *newnext, char *newname, StringList *newdata) | |
| ~ConfigListNode (void) | |
Public Attributes | |
| char * | name |
| StringList * | data |
| ConfigListNode * | next |
|
||||||||||||||||
|
Definition at line 75 of file ConfigList.h. References NAMD_die(). 00076 {
00077 name = new char[strlen(newname)+1]; // create space for the name
00078 if ( name == NULL )
00079 {
00080 NAMD_die("new failed in ConfigListNode::ConfigListNode");
00081 }
00082 strcpy((char *) name, newname); // and copy the new name
00083 data = newdata;
00084 next = newnext;
00085 }
|
|
|
Definition at line 86 of file ConfigList.h. References StringList::next. 00087 {
00088 delete [] name; // delete the new'ed name
00089 name = NULL;
00090 next = NULL;
00091 StringList *curr=data, *next_local=NULL; // go through the string list
00092
00093 while ( curr!=NULL )
00094 {
00095 next_local = curr->next; // and delete each element
00096 delete curr;
00097 curr = next_local;
00098 }
00099 }
|
|
|
Definition at line 73 of file ConfigList.h. |
|
|
Definition at line 72 of file ConfigList.h. |
|
|
Definition at line 74 of file ConfigList.h. |
1.3.9.1