GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Public Member Functions | List of all members
gd::InstructionsList Class Reference

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::InstructionInsert (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::InstructionGetSmartPtr (size_t index)
 Return the smart pointer to the element at position index in the elements list.
 
gd::InstructionGet (size_t index)
 Return a reference to the element at position index in the elements list.
 
const gd::InstructionGet (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::Instructionoperator[] (size_t index)
 Alias for Get() More...
 
const gd::Instructionoperator[] (size_t index) const
 Alias for Get() More...
 
gd::Instructionat (size_t index)
 Alias for Get() More...
 
const gd::Instructionat (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
 

Member Function Documentation

◆ SerializeTo()

void gd::InstructionsList::SerializeTo ( gd::SerializerElement element) const

Serialize the instructions to the specified element.

See also
EventsListSerialization

◆ UnserializeFrom()

void gd::InstructionsList::UnserializeFrom ( gd::Project project,
const gd::SerializerElement element 
)

Load the instructions from the specified element.

See also
EventsListSerialization

The documentation for this class was generated from the following files: