NAMD
Classes | Macros | Typedefs | Functions
MoleculeQM.C File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include "ResizeArray.h"
#include "InfoStream.h"
#include "Molecule.h"
#include "strlib.h"
#include "MStream.h"
#include "Communicate.h"
#include "Node.h"
#include "ObjectArena.h"
#include "Parameters.h"
#include "PDB.h"
#include "SimParameters.h"
#include "Hydrogen.h"
#include "UniqueSetIter.h"
#include "charm++.h"
#include "ConfigList.h"
#include "Debug.h"
#include "CompressPsf.h"
#include "ParallelIOMgr.h"
#include <deque>
#include <algorithm>
#include <string>
#include <sstream>
#include <fstream>

Go to the source code of this file.

Classes

class  qmSolvData
 
struct  refSelStr
 

Macros

#define MIN_DEBUG_LEVEL   3
 
#define CODE_REDUNDANT   0
 

Typedefs

typedef std::vector< refSelStrrefSelStrVec
 
typedef std::map< Real, refSelStrVecrefSelStrMap
 
typedef std::pair< Real, refSelStrVecrefSelStrPair
 
typedef std::pair< int, int > cSMDPair
 

Functions

std::vector< std::string > split (const std::string &text, std::string delimiter)
 

Macro Definition Documentation

◆ CODE_REDUNDANT

#define CODE_REDUNDANT   0

Definition at line 40 of file MoleculeQM.C.

◆ MIN_DEBUG_LEVEL

#define MIN_DEBUG_LEVEL   3

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

Definition at line 31 of file MoleculeQM.C.

Typedef Documentation

◆ cSMDPair

typedef std::pair<int,int> cSMDPair

Definition at line 1757 of file MoleculeQM.C.

◆ refSelStrMap

typedef std::map<Real, refSelStrVec> refSelStrMap

Definition at line 107 of file MoleculeQM.C.

◆ refSelStrPair

typedef std::pair<Real,refSelStrVec> refSelStrPair

Definition at line 108 of file MoleculeQM.C.

◆ refSelStrVec

typedef std::vector<refSelStr> refSelStrVec

Definition at line 106 of file MoleculeQM.C.

Function Documentation

◆ split()

std::vector<std::string> split ( const std::string &  text,
std::string  delimiter 
)

Definition at line 74 of file MoleculeQM.C.

Referenced by bin_evaluation_1away(), bin_evaluation_k_away(), ReductionMgr::buildSpanTree(), Communicate::Communicate(), NL_msm_configure(), NL_msm_split_name(), partition(), partition_SOA(), Molecule::prepare_qm(), ComputeMsmSerialMgr::recvCoord(), WorkDistrib::savePatchMap(), and setup_grids().

74  {
75 
76  std::vector<std::string> tokens;
77  std::size_t start = 0, end = 0;
78 
79  while ((end = text.find(delimiter, start)) != std::string::npos) {
80 
81  std::string temp = text.substr(start, end - start);
82 
83  if (! temp.empty()) tokens.push_back(temp);
84 
85  start = end + delimiter.length();
86  }
87 
88  // Gets last item
89  std::string temp = text.substr(start);
90  if (! temp.empty()) tokens.push_back(temp);
91 
92  return tokens;
93 }