5 #ifndef TPZPERMUTATION_H 6 #define TPZPERMUTATION_H 66 out <<
"imprimindo TPZPermutation::fCounter\n";
69 out << obj.
Counter()[i] << std::endl;
73 out <<
"imprimindo TPZPermutation::fOrder\n";
76 out << obj.
Order()[i] << std::endl;
void Permute(const TPZVec< int > &in, TPZVec< int > &out) const
Applies the current permutation on the vector in and produces the vector out.
Contains declaration of the TPZSavable class which defines the interface to save and restore objects ...
void Read(TPZStream &buf, void *context) override
read objects from the stream
TPZManVector< int > fOrder
Variable which contains the current permutations.
TPZManVector< int > Order()
TPZPermutation(int n)
Constructor with number of permutations.
std::ostream & operator<<(std::ostream &out, TPZPermutation &obj)
Overloading operator << to print permutation object at ostream out.
Free store vector implementation.
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
TPZManVector< int > Counter()
Returns the counter of the permutations.
TPZManVector< int > fCounter
Variable which represents a counter for the permutations.
void operator++()
Operator increment.
TPZPermutation & operator=(const TPZPermutation ©)
Operator attribution.
~TPZPermutation()
Default destructor.
Defines the interface for saving and reading data. Persistency.
int64_t NElements() const
Returns the number of elements of the vector.
int ClassId() const override
Define the class id associated with the class.
This class defines the interface to save and restore objects from TPZStream objects. Persistency.
This class generates all permutations of n values. Utility.