PhoenixGraph  01.0.0
Set of tools to simplify graph manipulation
Loading...
Searching...
No Matches
Node_impl.h File Reference
#include <sstream>
#include "Node.h"
+ Include dependency graph for Node_impl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T>
std::string node_convertToString (const T &val)
 Convert a type into a string.
 

Function Documentation

◆ node_convertToString()

template<typename T>
std::string node_convertToString ( const T & val)

Convert a type into a string.

Parameters
val: value to be converted
Returns
converted string

Definition at line 19 of file Node_impl.h.

19 {
20 std::stringstream str;
21 str << val;
22
23 std::string varStr(str.str()), outputStr(""), strCheck(" \t\n/.:-");
24 for(size_t i(0lu); i < varStr.size(); ++i){
25 char ch = varStr[i];
26 bool isNotFound(true);
27 for(size_t j(0lu); j < strCheck.size() && isNotFound; ++j){
28 isNotFound &= ch != strCheck[j];
29 }
30 if(isNotFound){
31 outputStr += ch;
32 }
33 }
34 return outputStr;
35}

Referenced by Node< T, UIdx >::getDotDefinition(), and Node< T, UIdx >::getDotName().

+ Here is the caller graph for this function: