diff --git a/alib2integrationtest/test-src/tests/glushkovRteTestGenerators.hpp b/alib2integrationtest/test-src/tests/glushkovRteTestGenerators.hpp index 3c89442911d22d1a1e4b622f711348a2d43214b8..341b7b82f53d148628d2dd5e315a5496a6b7dac7 100644 --- a/alib2integrationtest/test-src/tests/glushkovRteTestGenerators.hpp +++ b/alib2integrationtest/test-src/tests/glushkovRteTestGenerators.hpp @@ -29,7 +29,7 @@ size_t TreeGenerator::MAX_LENGTH = 1000; /** Generator for rte1.xml */ class TreeGenerator1 : public TreeGenerator { private: - void S ( size_t depth = 1 ) { + void S ( size_t depth = 1 ) override { S2 ( depth + 1 ); m_Str += ( depth > MAX_DEPTH || randint ( 0, 1 ) == 0 ) ? "b 0 " : "c 0 "; } @@ -48,7 +48,7 @@ class TreeGenerator1 : public TreeGenerator { /** Generator for rte2.xml */ class TreeGenerator2 : public TreeGenerator { private: - void S ( size_t /* depth = 1 */ ) { + void S ( size_t /* depth = 1 */ ) override { m_Str += "a 2 b 0 b 0 "; } }; @@ -56,7 +56,7 @@ class TreeGenerator2 : public TreeGenerator { /** Generator for rte3.xml */ class TreeGenerator3 : public TreeGenerator { private: - void S ( size_t depth = 1 ) { + void S ( size_t depth = 1 ) override { if ( depth > MAX_DEPTH || randint ( 0, 1 ) == 0 ) { m_Str += "b 0 "; return; @@ -71,7 +71,7 @@ class TreeGenerator3 : public TreeGenerator { /** Generator for rte4.xml */ class TreeGenerator4 : public TreeGenerator { private: - void S ( size_t depth = 1 ) { + void S ( size_t depth = 1 ) override { if ( depth > MAX_DEPTH || randint ( 0, 1 ) == 0 ) { m_Str += "a 2 b 0 b 0 "; return; @@ -86,7 +86,7 @@ class TreeGenerator4 : public TreeGenerator { /** Generator for rte5.xml */ class TreeGenerator5 : public TreeGenerator { private: - void S ( size_t /* depth = 1 */ ) { + void S ( size_t /* depth = 1 */ ) override { m_Str += "a 0 "; } }; @@ -94,7 +94,7 @@ class TreeGenerator5 : public TreeGenerator { /** Generator for rte6.xml */ class TreeGenerator6 : public TreeGenerator { private: - void S ( size_t depth = 1 ) { + void S ( size_t depth = 1 ) override { m_Str += "a 2 "; SL ( depth + 1 ); SR ( depth + 1 ); @@ -120,7 +120,7 @@ class TreeGenerator6 : public TreeGenerator { /** Generator for rte7.xml */ class TreeGenerator7 : public TreeGenerator { private: - void S ( size_t depth = 1 ) { + void S ( size_t depth = 1 ) override { S2 ( depth + 1 ); m_Str += "a 2 c 0 b 0 "; } @@ -137,7 +137,7 @@ class TreeGenerator7 : public TreeGenerator { /** Generator for rte8.xml */ class TreeGenerator8 : public TreeGenerator { private: - void S ( size_t depth = 1 ) { + void S ( size_t depth = 1 ) override { if ( depth > MAX_DEPTH || randint ( 0, 1 ) == 0 ) { m_Str += std::string ( 1, 'b' + randint ( 0, 3 ) ) + " 0 "; return; @@ -152,7 +152,7 @@ class TreeGenerator8 : public TreeGenerator { /** Generator for rte9.xml */ class TreeGenerator9 : public TreeGenerator { private: - void S ( size_t depth = 1 ) { + void S ( size_t depth = 1 ) override { if ( depth > MAX_DEPTH || randint ( 0, 1 ) == 0 ) { m_Str += "b 0 "; } else { @@ -166,7 +166,7 @@ class TreeGenerator9 : public TreeGenerator { /** Generator for rte0.xml */ class TreeGenerator0 : public TreeGenerator { private: - void S ( size_t depth = 1 ) { + void S ( size_t depth = 1 ) override { a1 ( depth ); }