ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/utils/StringUtils.hpp
(Generate patch)

Comparing trunk/src/utils/StringUtils.hpp (file contents):
Revision 1390 by gezelter, Wed Nov 25 20:02:06 2009 UTC vs.
Revision 2048 by gezelter, Thu Dec 11 21:18:03 2014 UTC

# Line 35 | Line 35
35   *                                                                      
36   * [1]  Meineke, et al., J. Comp. Chem. 26, 252-271 (2005).            
37   * [2]  Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006).          
38 < * [3]  Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008).          
39 < * [4]  Vardeman & Gezelter, in progress (2009).                        
38 > * [3]  Sun, Lin & Gezelter, J. Chem. Phys. 128, 234107 (2008).          
39 > * [4]  Kuang & Gezelter,  J. Chem. Phys. 133, 164101 (2010).
40 > * [5]  Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011).
41   */
42  
43   /**
# Line 110 | Line 111 | namespace OpenMD {
111  
112    /**
113     * Convert a variable to a string
114 <   * @param T data type
114 >   * @tparam T data type
115     * @param v data to be converted
116     * @return a string
117     */
# Line 145 | Line 146 | namespace OpenMD {
146      return ret;
147    }
148  
149 +  template <typename T>
150 +  std::string to_string(T value) {
151 +    std::ostringstream os ;
152 +    os << value ;
153 +    return os.str() ;
154 +  }
155 +
156    bool isInteger(const std::string& str);
157    
158    std::string OpenMD_itoa(int value, unsigned int base = 10);
# Line 172 | Line 180 | std::string containerToString(const ContainerType& con
180      oss << ")";
181      return oss.str();
182   }  
183 <
176 <  
183 >  unsigned long long memparse (char *ptr,  char **retptr);
184   }  
185   #endif

Comparing trunk/src/utils/StringUtils.hpp (property svn:keywords):
Revision 1390 by gezelter, Wed Nov 25 20:02:06 2009 UTC vs.
Revision 2048 by gezelter, Thu Dec 11 21:18:03 2014 UTC

# Line 0 | Line 1
1 + Author Id Revision Date

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines