Class VectWithRandVal

Class Documentation

class VectWithRandVal

A class for handling a vector with random values and operations on it.

Public Functions

std::shared_ptr<StringInt> FillWithUniqueInd(int nbElSub)

Fills the vector with unique indices.

Parameters:

nbElSub – Number of elements to select.

Returns:

A shared pointer to the StringInt object containing the selected indices.

void Append(StringInt *originalList, StringInt *toAppend)

Appends elements from one list to another.

Parameters:
  • originalList – The original list to append to.

  • toAppend – The list of elements to append.

explicit VectWithRandVal(int nbElAll)

Constructor to initialize the vector with a given number of elements.

Parameters:

nbElAll – The total number of elements.

~VectWithRandVal() = default

Default destructor.