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

Used as a base class for classes that will own events-backed functions. More...

#include <ParameterMetadataContainer.h>

Inherits gd::SerializableWithNameList< gd::ParameterMetadata >.

Public Member Functions

Events Functions management
bool HasParameterNamed (const gd::String &name) const
 Check if the function with the specified name exists.
 
gd::ParameterMetadataGetParameter (const gd::String &name)
 Get the function with the specified name. More...
 
const gd::ParameterMetadataGetParameter (const gd::String &name) const
 Get the function with the specified name. More...
 
gd::ParameterMetadataGetParameter (std::size_t index)
 Get the function at the specified index in the list. More...
 
const gd::ParameterMetadataGetParameter (std::size_t index) const
 Get the function at the specified index in the list. More...
 
std::size_t GetParametersCount () const
 Return the number of functions.
 
gd::ParameterMetadataInsertNewParameter (const gd::String &name, std::size_t position)
 
gd::ParameterMetadataInsertParameter (const gd::ParameterMetadata &object, std::size_t position)
 
gd::ParameterMetadataAddNewParameter (const gd::String &name)
 
gd::ParameterMetadataAddParameter (const gd::ParameterMetadata &object)
 
void RemoveParameter (const gd::String &name)
 
void ClearParameters ()
 
void MoveParameter (std::size_t oldIndex, std::size_t newIndex)
 
std::size_t GetParameterPosition (const gd::ParameterMetadata &parameterMetadata)
 
const std::vector< std::unique_ptr< gd::ParameterMetadata > > & GetInternalVector () const
 Provide a raw access to the vector containing the functions.
 
std::vector< std::unique_ptr< gd::ParameterMetadata > > & GetInternalVector ()
 Provide a raw access to the vector containing the functions.
 
Serialization
void SerializeParametersTo (SerializerElement &element) const
 Serialize events functions.
 
void UnserializeParametersFrom (const SerializerElement &element)
 Unserialize the events functions.
 

Protected Member Functions

void Init (const gd::ParameterMetadataContainer &other)
 

Detailed Description

Used as a base class for classes that will own events-backed functions.

See also
gd::ParameterMetadata

Member Function Documentation

◆ GetParameter() [1/4]

gd::ParameterMetadata& gd::ParameterMetadataContainer::GetParameter ( const gd::String name)
inline

Get the function with the specified name.

Warning
Trying to access to a not existing function will result in undefined behavior.

◆ GetParameter() [2/4]

const gd::ParameterMetadata& gd::ParameterMetadataContainer::GetParameter ( const gd::String name) const
inline

Get the function with the specified name.

Warning
Trying to access to a not existing function will result in undefined behavior.

◆ GetParameter() [3/4]

gd::ParameterMetadata& gd::ParameterMetadataContainer::GetParameter ( std::size_t  index)
inline

Get the function at the specified index in the list.

Warning
Trying to access to a not existing function will result in undefined behavior.

◆ GetParameter() [4/4]

const gd::ParameterMetadata& gd::ParameterMetadataContainer::GetParameter ( std::size_t  index) const
inline

Get the function at the specified index in the list.

Warning
Trying to access to a not existing function will result in undefined behavior.

◆ Init()

void gd::ParameterMetadataContainer::Init ( const gd::ParameterMetadataContainer other)
inlineprotected

Initialize object using another object. Used by copy-ctor and assign-op. Don't forget to update me if members were changed!


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