20 std::stringstream str;
23 std::string varStr(str.str()), outputStr(
""), strCheck(
" \t\n/.:-");
24 for(
size_t i(0lu); i < varStr.size(); ++i){
26 bool isNotFound(
true);
27 for(
size_t j(0lu); j < strCheck.size() && isNotFound; ++j){
28 isNotFound &= ch != strCheck[j];
40template<
typename T,
typename UIdx>
49template<
typename T,
typename UIdx>
59template<
typename T,
typename UIdx>
65template<
typename T,
typename UIdx>
74template<
typename T,
typename UIdx>
83template<
typename T,
typename UIdx>
91template<
typename T,
typename UIdx>
99template<
typename T,
typename UIdx>
107template<
typename T,
typename UIdx>
115template<
typename T,
typename UIdx>
121template<
typename T,
typename UIdx>
127template<
typename T,
typename UIdx>
133template<
typename T,
typename UIdx>
139template<
typename T,
typename UIdx>
145template<
typename T,
typename UIdx>
151template<
typename T,
typename UIdx>
157template<
typename T,
typename UIdx>
163template<
typename T,
typename UIdx>
169template<
typename T,
typename UIdx>
175template<
typename T,
typename UIdx>
181template<
typename T,
typename UIdx>
187template<
typename T,
typename UIdx>
193template<
typename T,
typename UIdx>
199template<
typename T,
typename UIdx>
205template<
typename T,
typename UIdx>
211template<
typename T,
typename UIdx>
217template<
typename T,
typename UIdx>
223template<
typename T,
typename UIdx>
229template<
typename T,
typename UIdx>
231 std::string body(
"");
240template<
typename T,
typename UIdx>
242 std::string body(
"");
243 std::string strName(
p_name);
247 body +=
"\t" +
getDotName() +
"[label=\"" + strName +
"\"][color=\"blue\"]";
249 body +=
"[shape=octagon]";
251 body +=
"[shape=cylinder]";
253 body +=
"[shape=record]";
262template<
typename T,
typename UIdx>
273template<
typename T,
typename UIdx>
std::string node_convertToString(const T &val)
Convert a type into a string.
void setName(const std::string &name)
Set the name of the Node.
const std::list< UIdx > & getListParent() const
Get the list of parents of the Node.
const T & getData() const
Get the data of the Node.
void setIsUpdated(bool isUpdated)
Say if the node is updated.
std::string getDotName() const
Get the dot name of the current Node.
std::string p_name
Name of the current Node.
void setData(const T &data)
Set the data of the Node.
std::list< UIdx > p_listParent
List of parent Node.
void setListChild(const std::list< UIdx > &listChild)
Set the list of children of the Node.
std::string getDotDefinition() const
Get the dot definition name of the current Node.
Node & operator=(const Node< T, UIdx > &other)
Definition of equal operator of Node.
void removeParent(UIdx parent)
Remove connection with parent.
void addChild(UIdx child)
Add a child to the current Node.
Node(const std::string &name="")
Default constructor of Node.
const std::list< UIdx > & getListChild() const
Get the list of children of the Node.
UIdx getIndex() const
Get the index of the Node.
void setIndex(UIdx index)
Set the index of the Node.
void addParent(UIdx parent)
Add a parent to the current Node.
virtual ~Node()
Destructor of Node.
void copyNode(const Node< T, UIdx > &other)
Copy function of Node.
void setListParent(const std::list< UIdx > &listParent)
Set the list of parents of the Node.
bool p_isUpdated
Check if the current Node has been already updated.
bool isEnd() const
Say if the current Node has no child.
void initialisationNode()
Initialisation function of the class Node.
bool getIsUpdated() const
Say if the node is updated.
const std::string & getName() const
Get the name of the Node.
std::list< UIdx > p_listChild
List of children Node.
void removeChild(UIdx child)
Remove connection with child.
T p_data
Data of the node.
bool isStart() const
Say if the current Node has no parent.
UIdx p_index
Index of the current Node.
void listindex_remove(std::list< UIdx > &listIndex, UIdx index)
Remove index from listIndex.