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

Go to the source code of this file.

Functions

template<typename UIdx>
void listindex_remove (std::list< UIdx > &listIndex, UIdx index)
 Remove index from listIndex.
 

Function Documentation

◆ listindex_remove()

template<typename UIdx>
void listindex_remove ( std::list< UIdx > & listIndex,
UIdx index )

Remove index from listIndex.

Parameters
[out]listIndex: list of index to be modified
index: index to be removed from list of index

Definition at line 17 of file list_index_utils_impl.h.

17 {
18 if(listIndex.size() == 0lu){return;}
19 typename std::list<UIdx>::iterator it(listIndex.begin());
20 while(it != listIndex.end()){
21 if(*it == index){
22 it = listIndex.erase(it);
23 }else{
24 ++it;
25 }
26 }
27}

Referenced by Node< T, UIdx >::removeChild(), Graph< T, UIdx >::removeNode(), and Node< T, UIdx >::removeParent().

+ Here is the caller graph for this function: