StringList Class Reference

#include <ConfigList.h>

List of all members.

Public Member Functions

 StringList (char *newdata)
void set (const char *newdata)
 ~StringList (void)

Public Attributes

char * data
StringListnext


Detailed Description

Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.

Definition at line 46 of file ConfigList.h.


Constructor & Destructor Documentation

StringList::StringList ( char *  newdata  )  [inline]

Definition at line 50 of file ConfigList.h.

References data, NAMD_die(), and next.

00050                             {  // take a string, and copy it
00051      data = new char[strlen(newdata)+1];
00052      if ( data == NULL )
00053      {
00054        NAMD_die("new failed in struct StringList");
00055      }
00056      strcpy( data, newdata);
00057      next = NULL;
00058   }

StringList::~StringList ( void   )  [inline]

Definition at line 68 of file ConfigList.h.

References data, and next.

00068                      {  // just clear out my info
00069     delete [] data;
00070     data = NULL;
00071     next = NULL;
00072   }


Member Function Documentation

void StringList::set ( const char *  newdata  )  [inline]

Definition at line 59 of file ConfigList.h.

References data, and NAMD_die().

00059                                 {  // take a string, and copy it
00060     delete [] data;
00061     data = new char[strlen(newdata)+1];
00062     if ( data == NULL )
00063     {
00064       NAMD_die("new failed in struct StringList");
00065     }
00066     strcpy( data, newdata);
00067   }


Member Data Documentation

char* StringList::data

Definition at line 48 of file ConfigList.h.

Referenced by Molecule::build_go_arrays(), Molecule::build_go_params(), Molecule::build_go_sigmas(), Molecule::build_go_sigmas2(), colvarproxy_namd::colvarproxy_namd(), WorkDistrib::createAtomLists(), ParseOptions::get(), ParseOptions::getfromptr(), GlobalMasterSymmetry::GlobalMasterSymmetry(), NamdState::loadStructure(), Molecule::prepare_qm(), ComputeQMMgr::recvPntChrg(), ParseOptions::set(), set(), StringList(), and ~StringList().

StringList* StringList::next

Definition at line 49 of file ConfigList.h.

Referenced by Molecule::build_go_arrays(), Molecule::build_go_params(), Molecule::build_go_sigmas(), Molecule::build_go_sigmas2(), ParseOptions::get(), GlobalMasterSymmetry::GlobalMasterSymmetry(), ParseOptions::num(), Molecule::prepare_qm(), ComputeQMMgr::recvPntChrg(), ParseOptions::set(), StringList(), ConfigList::ConfigListNode::~ConfigListNode(), and ~StringList().


The documentation for this class was generated from the following file:
Generated on Sat Sep 23 01:17:21 2017 for NAMD by  doxygen 1.4.7