GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Inherits gd::SPtrList< gd::Instruction >.
Public Member Functions | |
void | InsertInstructions (const InstructionsList &list, size_t begin, size_t end, size_t position=(size_t) -1) |
void | RemoveAfter (size_t position) |
Serialization | |
void | SerializeTo (gd::SerializerElement &element) const |
Serialize the instructions to the specified element. More... | |
void | UnserializeFrom (gd::Project &project, const gd::SerializerElement &element) |
Load the instructions from the specified element. More... | |
Public Member Functions inherited from gd::SPtrList< gd::Instruction > | |
SPtrList (const SPtrList< gd::Instruction > &) | |
SPtrList< gd::Instruction > & | operator= (const SPtrList< gd::Instruction > &rhs) |
gd::Instruction & | Insert (const gd::Instruction &element, size_t position=(size_t) -1) |
Insert the specified element to the list. More... | |
void | Insert (std::shared_ptr< gd::Instruction > element, size_t position=(size_t) -1) |
Insert the specified element to the list. More... | |
void | Insert (const SPtrList< gd::Instruction > &otherEvents, size_t begin, size_t end, size_t position=(size_t) -1) |
Copy elements from another list. | |
size_t | GetCount () const |
Return the number of elements. | |
std::shared_ptr< gd::Instruction > | GetSmartPtr (size_t index) |
Return the smart pointer to the element at position index in the elements list. | |
gd::Instruction & | Get (size_t index) |
Return a reference to the element at position index in the elements list. | |
const gd::Instruction & | Get (size_t index) const |
Return a reference to the element at position index in the elements list. | |
void | Remove (const gd::Instruction &element) |
Remove the specified element. | |
void | Remove (size_t index) |
Remove the element at the specified index in the list. | |
bool | IsEmpty () const |
Return true if there isn't any element in the list. | |
void | Clear () |
Clear the list of elements. | |
bool | Contains (const gd::Instruction &elementToSearch) const |
size_t | size () const |
Alias for GetCount() More... | |
bool | empty () const |
Alias for IsEmpty() More... | |
gd::Instruction & | operator[] (size_t index) |
Alias for Get() More... | |
const gd::Instruction & | operator[] (size_t index) const |
Alias for Get() More... | |
gd::Instruction & | at (size_t index) |
Alias for Get() More... | |
const gd::Instruction & | at (size_t index) const |
Alias for Get() More... | |
Additional Inherited Members | |
Protected Member Functions inherited from gd::SPtrList< gd::Instruction > | |
void | Init (const SPtrList< gd::Instruction > &other) |
Protected Attributes inherited from gd::SPtrList< gd::Instruction > | |
std::vector< std::shared_ptr< gd::Instruction > > | elements |
void gd::InstructionsList::SerializeTo | ( | gd::SerializerElement & | element | ) | const |
Serialize the instructions to the specified element.
void gd::InstructionsList::UnserializeFrom | ( | gd::Project & | project, |
const gd::SerializerElement & | element | ||
) |
Load the instructions from the specified element.