Creating the class
class storeProcess{
public:
vector< vector<int> > vectores;
vector< vector<int> > vetores_fila;
vector< vector<int> > vetores_class;
};
Here I declare a vector of this class
vector < storeProcess > storeStack;
After this, the storage is done as follows
void armazenarProcesso()
{
indiceVet++;
storeStack.push_back(storeProcess());
storeStack[indiceVet].vectores = vectores;
storeStack[indiceVet].vetores_fila = vetores_fila;
storeStack[indiceVet].vetores_class = vetores_class;
}
After that, I do the process, and eventually I have to search for one of these processes, because the program works in a dynamic way.
void retornarProcesso()
{
vectores = storeStack[indiceVet].vectores;
vetores_fila = storeStack[indiceVet].vetores_fila;
vetores_class = storeStack[indiceVet].vetores_class;
indiceVet--;
}
After getting this data I do not use it any more, I would like to know if there is any way to clear this data?