PhoenixLecture  2.0.0
Set of tools to make lectures
platexobj_updateId.cpp File Reference
+ Include dependency graph for platexobj_updateId.cpp:

Go to the source code of this file.

Functions

void platexobj_updateId (PLatexObj &obj)
 Update the id of the PLatexObj. More...
 
void platexobj_updateId (PLatexObj &obj, long unsigned int &id)
 Update the id of the PLatexObj. More...
 

Function Documentation

◆ platexobj_updateId() [1/2]

void platexobj_updateId ( PLatexObj obj)

Update the id of the PLatexObj.

Parameters
[out]obj: PLatexObj to be updated

Definition at line 28 of file platexobj_updateId.cpp.

28  {
29  long unsigned int id(0lu);
30  platexobj_updateId(obj, id);
31 }
void platexobj_updateId(PLatexObj &obj, long unsigned int &id)
Update the id of the PLatexObj.

References platexobj_updateId().

+ Here is the call graph for this function:

◆ platexobj_updateId() [2/2]

void platexobj_updateId ( PLatexObj obj,
long unsigned int &  id 
)

Update the id of the PLatexObj.

Parameters
[out]obj: PLatexObj to be updated
[out]id: current id

Definition at line 14 of file platexobj_updateId.cpp.

14  {
15  obj.setId(id);
16  ++id;
17  PVecLatexObj & vecContent = obj.getVecContent();
18  if(vecContent.size() != 0lu){
19  for(PVecLatexObj::iterator it(vecContent.begin()); it != vecContent.end(); ++it){
20  platexobj_updateId(*it, id);
21  }
22  }
23 }
const std::vector< PLatexObj > & getVecContent() const
Gets the vecContent of the PLatexObj.
Definition: PLatexObj.cpp:410
void setId(long unsigned int id)
Sets the id of the PLatexObj.
Definition: PLatexObj.cpp:123
std::vector< PLatexObj > PVecLatexObj
Vector of obj.

References PLatexObj::getVecContent(), and PLatexObj::setId().

Referenced by platexobj_updateId(), and processAllFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: