![]() |
GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
A container of tests (gd::Test), used by gd::Project and gd::EventsFunctionsExtension. More...
#include <TestsContainer.h>
Inherits gd::SerializableWithNameList< gd::Test >.
Public Member Functions | |
| TestsContainer (const TestsContainer &other) | |
| TestsContainer & | operator= (const TestsContainer &other) |
Tests management | |
| bool | HasTestNamed (const gd::String &name) const |
| Check if a test with the specified name exists. | |
| gd::Test & | GetTest (const gd::String &name) |
| Get the test with the specified name. More... | |
| const gd::Test & | GetTest (const gd::String &name) const |
| Get the test with the specified name. More... | |
| gd::Test & | GetTest (std::size_t index) |
| Get the test at the specified index in the list. More... | |
| const gd::Test & | GetTest (std::size_t index) const |
| Get the test at the specified index in the list. More... | |
| std::size_t | GetTestsCount () const |
| Return the number of tests. | |
| gd::Test & | InsertNewTest (const gd::String &name, std::size_t position) |
| gd::Test & | InsertTest (const gd::Test &test, std::size_t position) |
| void | RemoveTest (const gd::String &name) |
| void | ClearTests () |
| void | MoveTest (std::size_t oldIndex, std::size_t newIndex) |
| std::size_t | GetTestPosition (const gd::Test &test) |
| const std::vector< std::unique_ptr< gd::Test > > & | GetInternalVector () const |
| Provide a raw access to the vector containing the tests. | |
| std::vector< std::unique_ptr< gd::Test > > & | GetInternalVector () |
| Provide a raw access to the vector containing the tests. | |
Serialization | |
| void | SerializeTestsTo (SerializerElement &element) const |
| Serialize the tests. | |
| void | UnserializeTestsFrom (const SerializerElement &element) |
| Unserialize the tests. | |
Protected Member Functions | |
| void | Init (const gd::TestsContainer &other) |
A container of tests (gd::Test), used by gd::Project and gd::EventsFunctionsExtension.
|
inline |
Get the test with the specified name.
|
inline |
Get the test with the specified name.
|
inline |
Get the test at the specified index in the list.
|
inline |
Get the test at the specified index in the list.
|
inlineprotected |
Initialize object using another object. Used by copy-ctor and assign-op. Don't forget to update me if members were changed!