diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index bd55f61b..cf96446b 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -40,6 +40,7 @@ jobs: - name: Install Asio and TinyXML2 shell: pwsh run: | + mkdir "$pwdpath/choco_packages" Invoke-WebRequest -Uri https://github.com/ros2/choco-packages/releases/download/2020-02-24/asio.1.12.1.nupkg -OutFile "$pwdpath/choco_packages/asio.1.12.1.nupkg" Invoke-WebRequest -Uri https://github.com/ros2/choco-packages/releases/download/2020-02-24/tinyxml2.6.0.0.nupkg -OutFile "$pwdpath/choco_packages/tinyxml2.6.0.0.nupkg" choco install -y -s "$pwdpath/choco_packages" asio tinyxml2 diff --git a/fastdds_python/test/CMakeLists.txt b/fastdds_python/test/CMakeLists.txt index 4213aa82..7a5df110 100644 --- a/fastdds_python/test/CMakeLists.txt +++ b/fastdds_python/test/CMakeLists.txt @@ -15,4 +15,18 @@ # Compile types add_subdirectory(types) -add_test(NAME api_tests COMMAND ${Python3_EXECUTABLE} -m pytest -vrP WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/api) +set(fastcdr_version_argument "v2") +if (${fastcdr_VERSION_MAJOR} EQUAL 1) + set(fastcdr_version_argument "v1") +endif() + + +add_test(NAME api_tests + COMMAND + ${Python3_EXECUTABLE} + -m pytest + -vrP + --cdr ${fastcdr_version_argument} + WORKING_DIRECTORY + ${CMAKE_CURRENT_SOURCE_DIR}/api + ) diff --git a/fastdds_python/test/api/conftest.py b/fastdds_python/test/api/conftest.py new file mode 100644 index 00000000..1d776c09 --- /dev/null +++ b/fastdds_python/test/api/conftest.py @@ -0,0 +1,3 @@ + +def pytest_addoption(parser): + parser.addoption("--cdr", action="store", default="v2") diff --git a/fastdds_python/test/api/test_datareader.py b/fastdds_python/test/api/test_datareader.py index 2ecd251b..6e83e0ba 100644 --- a/fastdds_python/test/api/test_datareader.py +++ b/fastdds_python/test/api/test_datareader.py @@ -10,11 +10,14 @@ import pytest import time - class DataReaderListener (fastdds.DataReaderListener): def __init__(self): super().__init__() +@pytest.fixture +def cdr_version(request): + return request.config.getoption('--cdr') + @pytest.fixture(params=['no_module', 'module'], autouse=True) def data_type(request): if request.param == 'no_module': @@ -117,7 +120,8 @@ def datawriter(writer_participant, writer_topic, publisher): factory.delete_participant(writer_participant)) -def fill_keyed_complete_test_type(data): +# This function should be used in a test which uses 'cdr_version' fixture +def fill_keyed_complete_test_type(data, cdr_version): # Auxiliary StructTypes struct_type1 = pytest.dds_type.StructType() struct_type1.char_field('\x01') @@ -190,19 +194,34 @@ def fill_keyed_complete_test_type(data): data.struct_field().string_field("Test string") data.struct_field().enum_field(pytest.dds_type.MAGENTA) data.struct_field().enum2_field(pytest.dds_type.METAL) - data.char_opt_field().set_value('\x01') - data.uint8_opt_field().set_value(254) - data.int16_opt_field().set_value(-10) - data.uint16_opt_field().set_value(10) - data.int32_opt_field().set_value(-1000) - data.uint32_opt_field().set_value(1000) - data.int64_opt_field().set_value(-36000) - data.uint64_opt_field().set_value(36000) - data.float_opt_field().set_value(1.0) - data.double_opt_field().set_value(1202.5) - data.bool_opt_field().set_value(True) - data.string_opt_field().set_value("Test string") - data.enum_opt_field().set_value(pytest.dds_type.MAGENTA) + if (cdr_version == 'v1'): + data.char_opt_field('\x01') + data.uint8_opt_field(254) + data.int16_opt_field(-10) + data.uint16_opt_field(10) + data.int32_opt_field(-1000) + data.uint32_opt_field(1000) + data.int64_opt_field(-36000) + data.uint64_opt_field(36000) + data.float_opt_field(1.0) + data.double_opt_field(1202.5) + data.bool_opt_field(True) + data.string_opt_field("Test string") + data.enum_opt_field(pytest.dds_type.MAGENTA) + else: + data.char_opt_field().set_value('\x01') + data.uint8_opt_field().set_value(254) + data.int16_opt_field().set_value(-10) + data.uint16_opt_field().set_value(10) + data.int32_opt_field().set_value(-1000) + data.uint32_opt_field().set_value(1000) + data.int64_opt_field().set_value(-36000) + data.uint64_opt_field().set_value(36000) + data.float_opt_field().set_value(1.0) + data.double_opt_field().set_value(1202.5) + data.bool_opt_field().set_value(True) + data.string_opt_field().set_value("Test string") + data.enum_opt_field().set_value(pytest.dds_type.MAGENTA) struct_field = pytest.dds_type.StructType() struct_field.char_field('\x01') struct_field.uint8_field(254) @@ -218,7 +237,10 @@ def fill_keyed_complete_test_type(data): struct_field.string_field("Test string") struct_field.enum_field(pytest.dds_type.MAGENTA) struct_field.enum2_field(pytest.dds_type.METAL) - data.struct_opt_field().set_value(struct_field) + if (cdr_version == 'v1'): + data.struct_opt_field(struct_field) + else: + data.struct_opt_field().set_value(struct_field) data.array_char_field(['\x01', '\x02', '\x03']) data.array_uint8_field([254, 255, 1]) data.array_int16_field([-10, 10, -20]) @@ -269,7 +291,8 @@ def fill_keyed_complete_test_type(data): data.unbounded_sequence_struct_field([struct_type1, struct_type2, struct_type3]) -def check_keyed_complete_test_type(data): +# This function should be used in a test which uses 'cdr_version' fixture +def check_keyed_complete_test_type(data, cdr_version): assert(data.char_field() == '\x01') assert(data.uint8_field() == 254) assert(data.int16_field() == -10) @@ -298,34 +321,49 @@ def check_keyed_complete_test_type(data): assert(data.struct_field().string_field() == "Test string") assert(data.struct_field().enum_field() == pytest.dds_type.MAGENTA) assert(data.struct_field().enum2_field() == pytest.dds_type.METAL) - assert(data.char_opt_field().has_value()) - assert(data.char_opt_field().get_value() == '\x01') - assert(data.uint8_opt_field().has_value()) - assert(data.uint8_opt_field().get_value() == 254) - assert(data.int16_opt_field().has_value()) - assert(data.int16_opt_field().get_value() == -10) - assert(data.uint16_opt_field().has_value()) - assert(data.uint16_opt_field().get_value() == 10) - assert(data.int32_opt_field().has_value()) - assert(data.int32_opt_field().get_value() == -1000) - assert(data.uint32_opt_field().has_value()) - assert(data.uint32_opt_field().get_value() == 1000) - assert(data.int64_opt_field().has_value()) - assert(data.int64_opt_field().get_value() == -36000) - assert(data.uint64_opt_field().has_value()) - assert(data.uint64_opt_field().get_value() == 36000) - assert(data.float_opt_field().has_value()) - assert(data.float_opt_field().get_value() == 1.0) - assert(data.double_opt_field().has_value()) - assert(data.double_opt_field().get_value() == 1202.5) - assert(data.bool_opt_field().has_value()) - assert(data.bool_opt_field().get_value() == True) - assert(data.string_opt_field().has_value()) - assert(data.string_opt_field().get_value() == "Test string") - assert(data.enum_opt_field().has_value()) - assert(data.enum_opt_field().get_value() == pytest.dds_type.MAGENTA) - assert(not data.enum2_opt_field().has_value()) - assert(data.struct_opt_field().has_value()) + if cdr_version == 'v1': + assert(data.char_opt_field() == '\x01') + assert(data.uint8_opt_field() == 254) + assert(data.int16_opt_field() == -10) + assert(data.uint16_opt_field() == 10) + assert(data.int32_opt_field() == -1000) + assert(data.uint32_opt_field() == 1000) + assert(data.int64_opt_field() == -36000) + assert(data.uint64_opt_field() == 36000) + assert(data.float_opt_field() == 1.0) + assert(data.double_opt_field() == 1202.5) + assert(data.bool_opt_field() == True) + assert(data.string_opt_field() == "Test string") + assert(data.enum_opt_field() == pytest.dds_type.MAGENTA) + else: + assert(data.char_opt_field().has_value()) + assert(data.char_opt_field().get_value() == '\x01') + assert(data.uint8_opt_field().has_value()) + assert(data.uint8_opt_field().get_value() == 254) + assert(data.int16_opt_field().has_value()) + assert(data.int16_opt_field().get_value() == -10) + assert(data.uint16_opt_field().has_value()) + assert(data.uint16_opt_field().get_value() == 10) + assert(data.int32_opt_field().has_value()) + assert(data.int32_opt_field().get_value() == -1000) + assert(data.uint32_opt_field().has_value()) + assert(data.uint32_opt_field().get_value() == 1000) + assert(data.int64_opt_field().has_value()) + assert(data.int64_opt_field().get_value() == -36000) + assert(data.uint64_opt_field().has_value()) + assert(data.uint64_opt_field().get_value() == 36000) + assert(data.float_opt_field().has_value()) + assert(data.float_opt_field().get_value() == 1.0) + assert(data.double_opt_field().has_value()) + assert(data.double_opt_field().get_value() == 1202.5) + assert(data.bool_opt_field().has_value()) + assert(data.bool_opt_field().get_value() == True) + assert(data.string_opt_field().has_value()) + assert(data.string_opt_field().get_value() == "Test string") + assert(data.enum_opt_field().has_value()) + assert(data.enum_opt_field().get_value() == pytest.dds_type.MAGENTA) + assert(not data.enum2_opt_field().has_value()) + assert(data.struct_opt_field().has_value()) assert(data.struct_opt_field().char_field() == '\x01') assert(data.struct_opt_field().uint8_field() == 254) assert(data.struct_opt_field().int16_field() == -10) @@ -995,7 +1033,7 @@ def test_lookup_instance(transient_datareader_qos, test_keyed_type, datareader, def test_read(transient_datareader_qos, datareader, - datawriter): + datawriter, cdr_version): """ This test checks: - DataReader::read @@ -1012,7 +1050,7 @@ def test_read(transient_datareader_qos, datareader, assert(0 == len(info_seq)) sample = pytest.dds_type.CompleteTestType() - fill_keyed_complete_test_type(sample) + fill_keyed_complete_test_type(sample, cdr_version) assert(datawriter.write(sample)) assert(datareader.wait_for_unread_message( @@ -1027,13 +1065,13 @@ def test_read(transient_datareader_qos, datareader, assert(0 < info_seq[0].source_timestamp.to_ns()) assert(0 < info_seq[0].reception_timestamp.to_ns()) assert(sample == data_seq[0]) - check_keyed_complete_test_type(data_seq[0]) + check_keyed_complete_test_type(data_seq[0], cdr_version) assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) def test_read_instance(transient_datareader_qos, test_keyed_type, - datareader, datawriter): + datareader, datawriter, cdr_version): """ This test checks: - DataReader::read_instance @@ -1051,7 +1089,7 @@ def test_read_instance(transient_datareader_qos, test_keyed_type, assert(0 == len(info_seq)) sample = pytest.dds_type.KeyedCompleteTestType() - fill_keyed_complete_test_type(sample) + fill_keyed_complete_test_type(sample, cdr_version) ih = datawriter.register_instance(sample) assert(datawriter.write(sample, ih)) @@ -1068,13 +1106,13 @@ def test_read_instance(transient_datareader_qos, test_keyed_type, assert(0 < info_seq[0].source_timestamp.to_ns()) assert(0 < info_seq[0].reception_timestamp.to_ns()) assert(sample == data_seq[0]) - check_keyed_complete_test_type(data_seq[0]) + check_keyed_complete_test_type(data_seq[0], cdr_version) assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) def test_read_next_instance(transient_datareader_qos, test_keyed_type, - datareader, datawriter): + datareader, datawriter, cdr_version): """ This test checks: - DataReader::read_next_instance @@ -1092,7 +1130,7 @@ def test_read_next_instance(transient_datareader_qos, test_keyed_type, assert(0 == len(info_seq)) sample = pytest.dds_type.KeyedCompleteTestType() - fill_keyed_complete_test_type(sample) + fill_keyed_complete_test_type(sample, cdr_version) assert(datawriter.write(sample)) assert(datareader.wait_for_unread_message( @@ -1108,13 +1146,13 @@ def test_read_next_instance(transient_datareader_qos, test_keyed_type, assert(0 < info_seq[0].source_timestamp.to_ns()) assert(0 < info_seq[0].reception_timestamp.to_ns()) assert(sample == data_seq[0]) - check_keyed_complete_test_type(data_seq[0]) + check_keyed_complete_test_type(data_seq[0], cdr_version) assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) def test_read_next_sample(transient_datareader_qos, datareader, - datawriter): + datawriter, cdr_version): """ This test checks: - DataReader::read_next_sample @@ -1126,7 +1164,7 @@ def test_read_next_sample(transient_datareader_qos, datareader, data, info)) sample = pytest.dds_type.CompleteTestType() - fill_keyed_complete_test_type(sample) + fill_keyed_complete_test_type(sample, cdr_version) assert(datawriter.write(sample)) assert(datareader.wait_for_unread_message( @@ -1137,11 +1175,11 @@ def test_read_next_sample(transient_datareader_qos, datareader, assert(0 < info.source_timestamp.to_ns()) assert(0 < info.reception_timestamp.to_ns()) assert(sample == data) - check_keyed_complete_test_type(data) + check_keyed_complete_test_type(data, cdr_version) def test_take(transient_datareader_qos, datareader, - datawriter): + datawriter, cdr_version): """ This test checks: - DataReader::take @@ -1158,7 +1196,7 @@ def test_take(transient_datareader_qos, datareader, assert(0 == len(info_seq)) sample = pytest.dds_type.CompleteTestType() - fill_keyed_complete_test_type(sample) + fill_keyed_complete_test_type(sample, cdr_version) assert(datawriter.write(sample)) assert(datareader.wait_for_unread_message( @@ -1173,13 +1211,13 @@ def test_take(transient_datareader_qos, datareader, assert(0 < info_seq[0].source_timestamp.to_ns()) assert(0 < info_seq[0].reception_timestamp.to_ns()) assert(sample == data_seq[0]) - check_keyed_complete_test_type(data_seq[0]) + check_keyed_complete_test_type(data_seq[0], cdr_version) assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) def test_take_instance(transient_datareader_qos, test_keyed_type, - datareader, datawriter): + datareader, datawriter, cdr_version): """ This test checks: - DataReader::take_instance @@ -1197,7 +1235,7 @@ def test_take_instance(transient_datareader_qos, test_keyed_type, assert(0 == len(info_seq)) sample = pytest.dds_type.KeyedCompleteTestType() - fill_keyed_complete_test_type(sample) + fill_keyed_complete_test_type(sample, cdr_version) ih = datawriter.register_instance(sample) assert(datawriter.write(sample, ih)) @@ -1214,13 +1252,13 @@ def test_take_instance(transient_datareader_qos, test_keyed_type, assert(0 < info_seq[0].source_timestamp.to_ns()) assert(0 < info_seq[0].reception_timestamp.to_ns()) assert(sample == data_seq[0]) - check_keyed_complete_test_type(data_seq[0]) + check_keyed_complete_test_type(data_seq[0], cdr_version) assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) def test_take_next_instance(transient_datareader_qos, test_keyed_type, - datareader, datawriter): + datareader, datawriter, cdr_version): """ This test checks: - DataReader::take_next_instance @@ -1238,7 +1276,7 @@ def test_take_next_instance(transient_datareader_qos, test_keyed_type, assert(0 == len(info_seq)) sample = pytest.dds_type.KeyedCompleteTestType() - fill_keyed_complete_test_type(sample) + fill_keyed_complete_test_type(sample, cdr_version) assert(datawriter.write(sample)) assert(datareader.wait_for_unread_message( @@ -1254,13 +1292,13 @@ def test_take_next_instance(transient_datareader_qos, test_keyed_type, assert(0 < info_seq[0].source_timestamp.to_ns()) assert(0 < info_seq[0].reception_timestamp.to_ns()) assert(sample == data_seq[0]) - check_keyed_complete_test_type(data_seq[0]) + check_keyed_complete_test_type(data_seq[0], cdr_version) assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) def test_take_next_sample(transient_datareader_qos, datareader, - datawriter): + datawriter, cdr_version): """ This test checks: - DataReader::take_next_sample @@ -1272,7 +1310,7 @@ def test_take_next_sample(transient_datareader_qos, datareader, data, info)) sample = pytest.dds_type.CompleteTestType() - fill_keyed_complete_test_type(sample) + fill_keyed_complete_test_type(sample, cdr_version) assert(datawriter.write(sample)) assert(datareader.wait_for_unread_message( @@ -1283,7 +1321,7 @@ def test_take_next_sample(transient_datareader_qos, datareader, assert(0 < info.source_timestamp.to_ns()) assert(0 < info.reception_timestamp.to_ns()) assert(sample == data) - check_keyed_complete_test_type(data) + check_keyed_complete_test_type(data, cdr_version) def test_get_type(test_type, datareader): diff --git a/fastdds_python/test/types/test_complete.i b/fastdds_python/test/types/test_complete.i index fc4018a9..629d3567 100644 --- a/fastdds_python/test/types/test_complete.i +++ b/fastdds_python/test/types/test_complete.i @@ -840,8 +840,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_char_field() const; -%template(char_3_array) std::array; -%extend std::array +%template(char_3_array) std::array; +%extend std::array { const char* get_buffer() const { @@ -857,8 +857,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_uint8_field() const; -%template(uint8_t_3_array) std::array; -%extend std::array +%template(uint8_t_3_array) std::array; +%extend std::array { const uint8_t* get_buffer() const { @@ -874,8 +874,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_int16_field() const; -%template(int16_t_3_array) std::array; -%extend std::array +%template(int16_t_3_array) std::array; +%extend std::array { const int16_t* get_buffer() const { @@ -891,8 +891,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_uint16_field() const; -%template(uint16_t_3_array) std::array; -%extend std::array +%template(uint16_t_3_array) std::array; +%extend std::array { const uint16_t* get_buffer() const { @@ -908,8 +908,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_int32_field() const; -%template(int32_t_3_array) std::array; -%extend std::array +%template(int32_t_3_array) std::array; +%extend std::array { const int32_t* get_buffer() const { @@ -925,8 +925,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_uint32_field() const; -%template(uint32_t_3_array) std::array; -%extend std::array +%template(uint32_t_3_array) std::array; +%extend std::array { const uint32_t* get_buffer() const { @@ -942,8 +942,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_int64_field() const; -%template(int64_t_3_array) std::array; -%extend std::array +%template(int64_t_3_array) std::array; +%extend std::array { const int64_t* get_buffer() const { @@ -959,8 +959,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_uint64_field() const; -%template(uint64_t_3_array) std::array; -%extend std::array +%template(uint64_t_3_array) std::array; +%extend std::array { const uint64_t* get_buffer() const { @@ -976,8 +976,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_float_field() const; -%template(float_3_array) std::array; -%extend std::array +%template(float_3_array) std::array; +%extend std::array { const float* get_buffer() const { @@ -993,8 +993,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_double_field() const; -%template(double_3_array) std::array; -%extend std::array +%template(double_3_array) std::array; +%extend std::array { const double* get_buffer() const { @@ -1010,8 +1010,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_bool_field() const; -%template(bool_3_array) std::array; -%extend std::array +%template(bool_3_array) std::array; +%extend std::array { const bool* get_buffer() const { @@ -1027,8 +1027,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_enum_field() const; -%template(Color_3_array) std::array; -%extend std::array +%template(Color_3_array) std::array; +%extend std::array { const enum Color* get_buffer() const { @@ -1044,8 +1044,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_enum2_field() const; -%template(Material_3_array) std::array; -%extend std::array +%template(Material_3_array) std::array; +%extend std::array { const enum Material* get_buffer() const { @@ -1061,7 +1061,7 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore CompleteTestType::array_struct_field() const; -%template(StructType_3_array) std::array; +%template(StructType_3_array) std::array; %ignore CompleteTestType::bounded_sequence_char_field(std::vector&&); @@ -2138,8 +2138,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_char_field() const; -%template(char_3_array) std::array; -%extend std::array +%template(char_3_array) std::array; +%extend std::array { const char* get_buffer() const { @@ -2155,8 +2155,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_uint8_field() const; -%template(uint8_t_3_array) std::array; -%extend std::array +%template(uint8_t_3_array) std::array; +%extend std::array { const uint8_t* get_buffer() const { @@ -2172,8 +2172,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_int16_field() const; -%template(int16_t_3_array) std::array; -%extend std::array +%template(int16_t_3_array) std::array; +%extend std::array { const int16_t* get_buffer() const { @@ -2189,8 +2189,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_uint16_field() const; -%template(uint16_t_3_array) std::array; -%extend std::array +%template(uint16_t_3_array) std::array; +%extend std::array { const uint16_t* get_buffer() const { @@ -2206,8 +2206,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_int32_field() const; -%template(int32_t_3_array) std::array; -%extend std::array +%template(int32_t_3_array) std::array; +%extend std::array { const int32_t* get_buffer() const { @@ -2223,8 +2223,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_uint32_field() const; -%template(uint32_t_3_array) std::array; -%extend std::array +%template(uint32_t_3_array) std::array; +%extend std::array { const uint32_t* get_buffer() const { @@ -2240,8 +2240,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_int64_field() const; -%template(int64_t_3_array) std::array; -%extend std::array +%template(int64_t_3_array) std::array; +%extend std::array { const int64_t* get_buffer() const { @@ -2257,8 +2257,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_uint64_field() const; -%template(uint64_t_3_array) std::array; -%extend std::array +%template(uint64_t_3_array) std::array; +%extend std::array { const uint64_t* get_buffer() const { @@ -2274,8 +2274,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_float_field() const; -%template(float_3_array) std::array; -%extend std::array +%template(float_3_array) std::array; +%extend std::array { const float* get_buffer() const { @@ -2291,8 +2291,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_double_field() const; -%template(double_3_array) std::array; -%extend std::array +%template(double_3_array) std::array; +%extend std::array { const double* get_buffer() const { @@ -2308,8 +2308,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_bool_field() const; -%template(bool_3_array) std::array; -%extend std::array +%template(bool_3_array) std::array; +%extend std::array { const bool* get_buffer() const { @@ -2325,8 +2325,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_enum_field() const; -%template(Color_3_array) std::array; -%extend std::array +%template(Color_3_array) std::array; +%extend std::array { const enum Color* get_buffer() const { @@ -2342,8 +2342,8 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_enum2_field() const; -%template(Material_3_array) std::array; -%extend std::array +%template(Material_3_array) std::array; +%extend std::array { const enum Material* get_buffer() const { @@ -2359,7 +2359,7 @@ namespace swig { // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore KeyedCompleteTestType::array_struct_field() const; -%template(StructType_3_array) std::array; +%template(StructType_3_array) std::array; %ignore KeyedCompleteTestType::bounded_sequence_char_field(std::vector&&); diff --git a/fastdds_python/test/types/test_modules.cxx b/fastdds_python/test/types/test_modules.cxx index 91a5da05..1f07eea0 100644 --- a/fastdds_python/test/types/test_modules.cxx +++ b/fastdds_python/test/types/test_modules.cxx @@ -2028,7 +2028,7 @@ eprosima::fastcdr::optional& CompleteTestType::struc * @param _array_char_field New value to be copied in member array_char_field */ void CompleteTestType::array_char_field( - const std::array& _array_char_field) + const std::array& _array_char_field) { m_array_char_field = _array_char_field; } @@ -2038,7 +2038,7 @@ void CompleteTestType::array_char_field( * @param _array_char_field New value to be moved in member array_char_field */ void CompleteTestType::array_char_field( - std::array&& _array_char_field) + std::array&& _array_char_field) { m_array_char_field = std::move(_array_char_field); } @@ -2047,7 +2047,7 @@ void CompleteTestType::array_char_field( * @brief This function returns a constant reference to member array_char_field * @return Constant reference to member array_char_field */ -const std::array& CompleteTestType::array_char_field() const +const std::array& CompleteTestType::array_char_field() const { return m_array_char_field; } @@ -2056,7 +2056,7 @@ const std::array& CompleteTestType::array_ * @brief This function returns a reference to member array_char_field * @return Reference to member array_char_field */ -std::array& CompleteTestType::array_char_field() +std::array& CompleteTestType::array_char_field() { return m_array_char_field; } @@ -2067,7 +2067,7 @@ std::array& CompleteTestType::array_char_f * @param _array_uint8_field New value to be copied in member array_uint8_field */ void CompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) + const std::array& _array_uint8_field) { m_array_uint8_field = _array_uint8_field; } @@ -2077,7 +2077,7 @@ void CompleteTestType::array_uint8_field( * @param _array_uint8_field New value to be moved in member array_uint8_field */ void CompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) + std::array&& _array_uint8_field) { m_array_uint8_field = std::move(_array_uint8_field); } @@ -2086,7 +2086,7 @@ void CompleteTestType::array_uint8_field( * @brief This function returns a constant reference to member array_uint8_field * @return Constant reference to member array_uint8_field */ -const std::array& CompleteTestType::array_uint8_field() const +const std::array& CompleteTestType::array_uint8_field() const { return m_array_uint8_field; } @@ -2095,7 +2095,7 @@ const std::array& CompleteTestType::arr * @brief This function returns a reference to member array_uint8_field * @return Reference to member array_uint8_field */ -std::array& CompleteTestType::array_uint8_field() +std::array& CompleteTestType::array_uint8_field() { return m_array_uint8_field; } @@ -2106,7 +2106,7 @@ std::array& CompleteTestType::array_uin * @param _array_int16_field New value to be copied in member array_int16_field */ void CompleteTestType::array_int16_field( - const std::array& _array_int16_field) + const std::array& _array_int16_field) { m_array_int16_field = _array_int16_field; } @@ -2116,7 +2116,7 @@ void CompleteTestType::array_int16_field( * @param _array_int16_field New value to be moved in member array_int16_field */ void CompleteTestType::array_int16_field( - std::array&& _array_int16_field) + std::array&& _array_int16_field) { m_array_int16_field = std::move(_array_int16_field); } @@ -2125,7 +2125,7 @@ void CompleteTestType::array_int16_field( * @brief This function returns a constant reference to member array_int16_field * @return Constant reference to member array_int16_field */ -const std::array& CompleteTestType::array_int16_field() const +const std::array& CompleteTestType::array_int16_field() const { return m_array_int16_field; } @@ -2134,7 +2134,7 @@ const std::array& CompleteTestType::arr * @brief This function returns a reference to member array_int16_field * @return Reference to member array_int16_field */ -std::array& CompleteTestType::array_int16_field() +std::array& CompleteTestType::array_int16_field() { return m_array_int16_field; } @@ -2145,7 +2145,7 @@ std::array& CompleteTestType::array_int * @param _array_uint16_field New value to be copied in member array_uint16_field */ void CompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) + const std::array& _array_uint16_field) { m_array_uint16_field = _array_uint16_field; } @@ -2155,7 +2155,7 @@ void CompleteTestType::array_uint16_field( * @param _array_uint16_field New value to be moved in member array_uint16_field */ void CompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) + std::array&& _array_uint16_field) { m_array_uint16_field = std::move(_array_uint16_field); } @@ -2164,7 +2164,7 @@ void CompleteTestType::array_uint16_field( * @brief This function returns a constant reference to member array_uint16_field * @return Constant reference to member array_uint16_field */ -const std::array& CompleteTestType::array_uint16_field() const +const std::array& CompleteTestType::array_uint16_field() const { return m_array_uint16_field; } @@ -2173,7 +2173,7 @@ const std::array& CompleteTestType::ar * @brief This function returns a reference to member array_uint16_field * @return Reference to member array_uint16_field */ -std::array& CompleteTestType::array_uint16_field() +std::array& CompleteTestType::array_uint16_field() { return m_array_uint16_field; } @@ -2184,7 +2184,7 @@ std::array& CompleteTestType::array_ui * @param _array_int32_field New value to be copied in member array_int32_field */ void CompleteTestType::array_int32_field( - const std::array& _array_int32_field) + const std::array& _array_int32_field) { m_array_int32_field = _array_int32_field; } @@ -2194,7 +2194,7 @@ void CompleteTestType::array_int32_field( * @param _array_int32_field New value to be moved in member array_int32_field */ void CompleteTestType::array_int32_field( - std::array&& _array_int32_field) + std::array&& _array_int32_field) { m_array_int32_field = std::move(_array_int32_field); } @@ -2203,7 +2203,7 @@ void CompleteTestType::array_int32_field( * @brief This function returns a constant reference to member array_int32_field * @return Constant reference to member array_int32_field */ -const std::array& CompleteTestType::array_int32_field() const +const std::array& CompleteTestType::array_int32_field() const { return m_array_int32_field; } @@ -2212,7 +2212,7 @@ const std::array& CompleteTestType::arr * @brief This function returns a reference to member array_int32_field * @return Reference to member array_int32_field */ -std::array& CompleteTestType::array_int32_field() +std::array& CompleteTestType::array_int32_field() { return m_array_int32_field; } @@ -2223,7 +2223,7 @@ std::array& CompleteTestType::array_int * @param _array_uint32_field New value to be copied in member array_uint32_field */ void CompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) + const std::array& _array_uint32_field) { m_array_uint32_field = _array_uint32_field; } @@ -2233,7 +2233,7 @@ void CompleteTestType::array_uint32_field( * @param _array_uint32_field New value to be moved in member array_uint32_field */ void CompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) + std::array&& _array_uint32_field) { m_array_uint32_field = std::move(_array_uint32_field); } @@ -2242,7 +2242,7 @@ void CompleteTestType::array_uint32_field( * @brief This function returns a constant reference to member array_uint32_field * @return Constant reference to member array_uint32_field */ -const std::array& CompleteTestType::array_uint32_field() const +const std::array& CompleteTestType::array_uint32_field() const { return m_array_uint32_field; } @@ -2251,7 +2251,7 @@ const std::array& CompleteTestType::ar * @brief This function returns a reference to member array_uint32_field * @return Reference to member array_uint32_field */ -std::array& CompleteTestType::array_uint32_field() +std::array& CompleteTestType::array_uint32_field() { return m_array_uint32_field; } @@ -2262,7 +2262,7 @@ std::array& CompleteTestType::array_ui * @param _array_int64_field New value to be copied in member array_int64_field */ void CompleteTestType::array_int64_field( - const std::array& _array_int64_field) + const std::array& _array_int64_field) { m_array_int64_field = _array_int64_field; } @@ -2272,7 +2272,7 @@ void CompleteTestType::array_int64_field( * @param _array_int64_field New value to be moved in member array_int64_field */ void CompleteTestType::array_int64_field( - std::array&& _array_int64_field) + std::array&& _array_int64_field) { m_array_int64_field = std::move(_array_int64_field); } @@ -2281,7 +2281,7 @@ void CompleteTestType::array_int64_field( * @brief This function returns a constant reference to member array_int64_field * @return Constant reference to member array_int64_field */ -const std::array& CompleteTestType::array_int64_field() const +const std::array& CompleteTestType::array_int64_field() const { return m_array_int64_field; } @@ -2290,7 +2290,7 @@ const std::array& CompleteTestType::arr * @brief This function returns a reference to member array_int64_field * @return Reference to member array_int64_field */ -std::array& CompleteTestType::array_int64_field() +std::array& CompleteTestType::array_int64_field() { return m_array_int64_field; } @@ -2301,7 +2301,7 @@ std::array& CompleteTestType::array_int * @param _array_uint64_field New value to be copied in member array_uint64_field */ void CompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) + const std::array& _array_uint64_field) { m_array_uint64_field = _array_uint64_field; } @@ -2311,7 +2311,7 @@ void CompleteTestType::array_uint64_field( * @param _array_uint64_field New value to be moved in member array_uint64_field */ void CompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) + std::array&& _array_uint64_field) { m_array_uint64_field = std::move(_array_uint64_field); } @@ -2320,7 +2320,7 @@ void CompleteTestType::array_uint64_field( * @brief This function returns a constant reference to member array_uint64_field * @return Constant reference to member array_uint64_field */ -const std::array& CompleteTestType::array_uint64_field() const +const std::array& CompleteTestType::array_uint64_field() const { return m_array_uint64_field; } @@ -2329,7 +2329,7 @@ const std::array& CompleteTestType::ar * @brief This function returns a reference to member array_uint64_field * @return Reference to member array_uint64_field */ -std::array& CompleteTestType::array_uint64_field() +std::array& CompleteTestType::array_uint64_field() { return m_array_uint64_field; } @@ -2340,7 +2340,7 @@ std::array& CompleteTestType::array_ui * @param _array_float_field New value to be copied in member array_float_field */ void CompleteTestType::array_float_field( - const std::array& _array_float_field) + const std::array& _array_float_field) { m_array_float_field = _array_float_field; } @@ -2350,7 +2350,7 @@ void CompleteTestType::array_float_field( * @param _array_float_field New value to be moved in member array_float_field */ void CompleteTestType::array_float_field( - std::array&& _array_float_field) + std::array&& _array_float_field) { m_array_float_field = std::move(_array_float_field); } @@ -2359,7 +2359,7 @@ void CompleteTestType::array_float_field( * @brief This function returns a constant reference to member array_float_field * @return Constant reference to member array_float_field */ -const std::array& CompleteTestType::array_float_field() const +const std::array& CompleteTestType::array_float_field() const { return m_array_float_field; } @@ -2368,7 +2368,7 @@ const std::array& CompleteTestType::array * @brief This function returns a reference to member array_float_field * @return Reference to member array_float_field */ -std::array& CompleteTestType::array_float_field() +std::array& CompleteTestType::array_float_field() { return m_array_float_field; } @@ -2379,7 +2379,7 @@ std::array& CompleteTestType::array_float * @param _array_double_field New value to be copied in member array_double_field */ void CompleteTestType::array_double_field( - const std::array& _array_double_field) + const std::array& _array_double_field) { m_array_double_field = _array_double_field; } @@ -2389,7 +2389,7 @@ void CompleteTestType::array_double_field( * @param _array_double_field New value to be moved in member array_double_field */ void CompleteTestType::array_double_field( - std::array&& _array_double_field) + std::array&& _array_double_field) { m_array_double_field = std::move(_array_double_field); } @@ -2398,7 +2398,7 @@ void CompleteTestType::array_double_field( * @brief This function returns a constant reference to member array_double_field * @return Constant reference to member array_double_field */ -const std::array& CompleteTestType::array_double_field() const +const std::array& CompleteTestType::array_double_field() const { return m_array_double_field; } @@ -2407,7 +2407,7 @@ const std::array& CompleteTestType::arra * @brief This function returns a reference to member array_double_field * @return Reference to member array_double_field */ -std::array& CompleteTestType::array_double_field() +std::array& CompleteTestType::array_double_field() { return m_array_double_field; } @@ -2418,7 +2418,7 @@ std::array& CompleteTestType::array_doub * @param _array_bool_field New value to be copied in member array_bool_field */ void CompleteTestType::array_bool_field( - const std::array& _array_bool_field) + const std::array& _array_bool_field) { m_array_bool_field = _array_bool_field; } @@ -2428,7 +2428,7 @@ void CompleteTestType::array_bool_field( * @param _array_bool_field New value to be moved in member array_bool_field */ void CompleteTestType::array_bool_field( - std::array&& _array_bool_field) + std::array&& _array_bool_field) { m_array_bool_field = std::move(_array_bool_field); } @@ -2437,7 +2437,7 @@ void CompleteTestType::array_bool_field( * @brief This function returns a constant reference to member array_bool_field * @return Constant reference to member array_bool_field */ -const std::array& CompleteTestType::array_bool_field() const +const std::array& CompleteTestType::array_bool_field() const { return m_array_bool_field; } @@ -2446,7 +2446,7 @@ const std::array& CompleteTestType::array_ * @brief This function returns a reference to member array_bool_field * @return Reference to member array_bool_field */ -std::array& CompleteTestType::array_bool_field() +std::array& CompleteTestType::array_bool_field() { return m_array_bool_field; } @@ -2457,7 +2457,7 @@ std::array& CompleteTestType::array_bool_f * @param _array_enum_field New value to be copied in member array_enum_field */ void CompleteTestType::array_enum_field( - const std::array& _array_enum_field) + const std::array& _array_enum_field) { m_array_enum_field = _array_enum_field; } @@ -2467,7 +2467,7 @@ void CompleteTestType::array_enum_field( * @param _array_enum_field New value to be moved in member array_enum_field */ void CompleteTestType::array_enum_field( - std::array&& _array_enum_field) + std::array&& _array_enum_field) { m_array_enum_field = std::move(_array_enum_field); } @@ -2476,7 +2476,7 @@ void CompleteTestType::array_enum_field( * @brief This function returns a constant reference to member array_enum_field * @return Constant reference to member array_enum_field */ -const std::array& CompleteTestType::array_enum_field() const +const std::array& CompleteTestType::array_enum_field() const { return m_array_enum_field; } @@ -2485,7 +2485,7 @@ const std::array& Complet * @brief This function returns a reference to member array_enum_field * @return Reference to member array_enum_field */ -std::array& CompleteTestType::array_enum_field() +std::array& CompleteTestType::array_enum_field() { return m_array_enum_field; } @@ -2496,7 +2496,7 @@ std::array& CompleteTestT * @param _array_enum2_field New value to be copied in member array_enum2_field */ void CompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) + const std::array& _array_enum2_field) { m_array_enum2_field = _array_enum2_field; } @@ -2506,7 +2506,7 @@ void CompleteTestType::array_enum2_field( * @param _array_enum2_field New value to be moved in member array_enum2_field */ void CompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) + std::array&& _array_enum2_field) { m_array_enum2_field = std::move(_array_enum2_field); } @@ -2515,7 +2515,7 @@ void CompleteTestType::array_enum2_field( * @brief This function returns a constant reference to member array_enum2_field * @return Constant reference to member array_enum2_field */ -const std::array& CompleteTestType::array_enum2_field() const +const std::array& CompleteTestType::array_enum2_field() const { return m_array_enum2_field; } @@ -2524,7 +2524,7 @@ const std::array& Comp * @brief This function returns a reference to member array_enum2_field * @return Reference to member array_enum2_field */ -std::array& CompleteTestType::array_enum2_field() +std::array& CompleteTestType::array_enum2_field() { return m_array_enum2_field; } @@ -2535,7 +2535,7 @@ std::array& CompleteTe * @param _array_struct_field New value to be copied in member array_struct_field */ void CompleteTestType::array_struct_field( - const std::array& _array_struct_field) + const std::array& _array_struct_field) { m_array_struct_field = _array_struct_field; } @@ -2545,7 +2545,7 @@ void CompleteTestType::array_struct_field( * @param _array_struct_field New value to be moved in member array_struct_field */ void CompleteTestType::array_struct_field( - std::array&& _array_struct_field) + std::array&& _array_struct_field) { m_array_struct_field = std::move(_array_struct_field); } @@ -2554,7 +2554,7 @@ void CompleteTestType::array_struct_field( * @brief This function returns a constant reference to member array_struct_field * @return Constant reference to member array_struct_field */ -const std::array& CompleteTestType::array_struct_field() const +const std::array& CompleteTestType::array_struct_field() const { return m_array_struct_field; } @@ -2563,7 +2563,7 @@ const std::array& Co * @brief This function returns a reference to member array_struct_field * @return Reference to member array_struct_field */ -std::array& CompleteTestType::array_struct_field() +std::array& CompleteTestType::array_struct_field() { return m_array_struct_field; } @@ -5147,7 +5147,7 @@ eprosima::fastcdr::optional& KeyedCompleteTestType:: * @param _array_char_field New value to be copied in member array_char_field */ void KeyedCompleteTestType::array_char_field( - const std::array& _array_char_field) + const std::array& _array_char_field) { m_array_char_field = _array_char_field; } @@ -5157,7 +5157,7 @@ void KeyedCompleteTestType::array_char_field( * @param _array_char_field New value to be moved in member array_char_field */ void KeyedCompleteTestType::array_char_field( - std::array&& _array_char_field) + std::array&& _array_char_field) { m_array_char_field = std::move(_array_char_field); } @@ -5166,7 +5166,7 @@ void KeyedCompleteTestType::array_char_field( * @brief This function returns a constant reference to member array_char_field * @return Constant reference to member array_char_field */ -const std::array& KeyedCompleteTestType::array_char_field() const +const std::array& KeyedCompleteTestType::array_char_field() const { return m_array_char_field; } @@ -5175,7 +5175,7 @@ const std::array& KeyedCompleteTestType::a * @brief This function returns a reference to member array_char_field * @return Reference to member array_char_field */ -std::array& KeyedCompleteTestType::array_char_field() +std::array& KeyedCompleteTestType::array_char_field() { return m_array_char_field; } @@ -5186,7 +5186,7 @@ std::array& KeyedCompleteTestType::array_c * @param _array_uint8_field New value to be copied in member array_uint8_field */ void KeyedCompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) + const std::array& _array_uint8_field) { m_array_uint8_field = _array_uint8_field; } @@ -5196,7 +5196,7 @@ void KeyedCompleteTestType::array_uint8_field( * @param _array_uint8_field New value to be moved in member array_uint8_field */ void KeyedCompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) + std::array&& _array_uint8_field) { m_array_uint8_field = std::move(_array_uint8_field); } @@ -5205,7 +5205,7 @@ void KeyedCompleteTestType::array_uint8_field( * @brief This function returns a constant reference to member array_uint8_field * @return Constant reference to member array_uint8_field */ -const std::array& KeyedCompleteTestType::array_uint8_field() const +const std::array& KeyedCompleteTestType::array_uint8_field() const { return m_array_uint8_field; } @@ -5214,7 +5214,7 @@ const std::array& KeyedCompleteTestType * @brief This function returns a reference to member array_uint8_field * @return Reference to member array_uint8_field */ -std::array& KeyedCompleteTestType::array_uint8_field() +std::array& KeyedCompleteTestType::array_uint8_field() { return m_array_uint8_field; } @@ -5225,7 +5225,7 @@ std::array& KeyedCompleteTestType::arra * @param _array_int16_field New value to be copied in member array_int16_field */ void KeyedCompleteTestType::array_int16_field( - const std::array& _array_int16_field) + const std::array& _array_int16_field) { m_array_int16_field = _array_int16_field; } @@ -5235,7 +5235,7 @@ void KeyedCompleteTestType::array_int16_field( * @param _array_int16_field New value to be moved in member array_int16_field */ void KeyedCompleteTestType::array_int16_field( - std::array&& _array_int16_field) + std::array&& _array_int16_field) { m_array_int16_field = std::move(_array_int16_field); } @@ -5244,7 +5244,7 @@ void KeyedCompleteTestType::array_int16_field( * @brief This function returns a constant reference to member array_int16_field * @return Constant reference to member array_int16_field */ -const std::array& KeyedCompleteTestType::array_int16_field() const +const std::array& KeyedCompleteTestType::array_int16_field() const { return m_array_int16_field; } @@ -5253,7 +5253,7 @@ const std::array& KeyedCompleteTestType * @brief This function returns a reference to member array_int16_field * @return Reference to member array_int16_field */ -std::array& KeyedCompleteTestType::array_int16_field() +std::array& KeyedCompleteTestType::array_int16_field() { return m_array_int16_field; } @@ -5264,7 +5264,7 @@ std::array& KeyedCompleteTestType::arra * @param _array_uint16_field New value to be copied in member array_uint16_field */ void KeyedCompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) + const std::array& _array_uint16_field) { m_array_uint16_field = _array_uint16_field; } @@ -5274,7 +5274,7 @@ void KeyedCompleteTestType::array_uint16_field( * @param _array_uint16_field New value to be moved in member array_uint16_field */ void KeyedCompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) + std::array&& _array_uint16_field) { m_array_uint16_field = std::move(_array_uint16_field); } @@ -5283,7 +5283,7 @@ void KeyedCompleteTestType::array_uint16_field( * @brief This function returns a constant reference to member array_uint16_field * @return Constant reference to member array_uint16_field */ -const std::array& KeyedCompleteTestType::array_uint16_field() const +const std::array& KeyedCompleteTestType::array_uint16_field() const { return m_array_uint16_field; } @@ -5292,7 +5292,7 @@ const std::array& KeyedCompleteTestTyp * @brief This function returns a reference to member array_uint16_field * @return Reference to member array_uint16_field */ -std::array& KeyedCompleteTestType::array_uint16_field() +std::array& KeyedCompleteTestType::array_uint16_field() { return m_array_uint16_field; } @@ -5303,7 +5303,7 @@ std::array& KeyedCompleteTestType::arr * @param _array_int32_field New value to be copied in member array_int32_field */ void KeyedCompleteTestType::array_int32_field( - const std::array& _array_int32_field) + const std::array& _array_int32_field) { m_array_int32_field = _array_int32_field; } @@ -5313,7 +5313,7 @@ void KeyedCompleteTestType::array_int32_field( * @param _array_int32_field New value to be moved in member array_int32_field */ void KeyedCompleteTestType::array_int32_field( - std::array&& _array_int32_field) + std::array&& _array_int32_field) { m_array_int32_field = std::move(_array_int32_field); } @@ -5322,7 +5322,7 @@ void KeyedCompleteTestType::array_int32_field( * @brief This function returns a constant reference to member array_int32_field * @return Constant reference to member array_int32_field */ -const std::array& KeyedCompleteTestType::array_int32_field() const +const std::array& KeyedCompleteTestType::array_int32_field() const { return m_array_int32_field; } @@ -5331,7 +5331,7 @@ const std::array& KeyedCompleteTestType * @brief This function returns a reference to member array_int32_field * @return Reference to member array_int32_field */ -std::array& KeyedCompleteTestType::array_int32_field() +std::array& KeyedCompleteTestType::array_int32_field() { return m_array_int32_field; } @@ -5342,7 +5342,7 @@ std::array& KeyedCompleteTestType::arra * @param _array_uint32_field New value to be copied in member array_uint32_field */ void KeyedCompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) + const std::array& _array_uint32_field) { m_array_uint32_field = _array_uint32_field; } @@ -5352,7 +5352,7 @@ void KeyedCompleteTestType::array_uint32_field( * @param _array_uint32_field New value to be moved in member array_uint32_field */ void KeyedCompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) + std::array&& _array_uint32_field) { m_array_uint32_field = std::move(_array_uint32_field); } @@ -5361,7 +5361,7 @@ void KeyedCompleteTestType::array_uint32_field( * @brief This function returns a constant reference to member array_uint32_field * @return Constant reference to member array_uint32_field */ -const std::array& KeyedCompleteTestType::array_uint32_field() const +const std::array& KeyedCompleteTestType::array_uint32_field() const { return m_array_uint32_field; } @@ -5370,7 +5370,7 @@ const std::array& KeyedCompleteTestTyp * @brief This function returns a reference to member array_uint32_field * @return Reference to member array_uint32_field */ -std::array& KeyedCompleteTestType::array_uint32_field() +std::array& KeyedCompleteTestType::array_uint32_field() { return m_array_uint32_field; } @@ -5381,7 +5381,7 @@ std::array& KeyedCompleteTestType::arr * @param _array_int64_field New value to be copied in member array_int64_field */ void KeyedCompleteTestType::array_int64_field( - const std::array& _array_int64_field) + const std::array& _array_int64_field) { m_array_int64_field = _array_int64_field; } @@ -5391,7 +5391,7 @@ void KeyedCompleteTestType::array_int64_field( * @param _array_int64_field New value to be moved in member array_int64_field */ void KeyedCompleteTestType::array_int64_field( - std::array&& _array_int64_field) + std::array&& _array_int64_field) { m_array_int64_field = std::move(_array_int64_field); } @@ -5400,7 +5400,7 @@ void KeyedCompleteTestType::array_int64_field( * @brief This function returns a constant reference to member array_int64_field * @return Constant reference to member array_int64_field */ -const std::array& KeyedCompleteTestType::array_int64_field() const +const std::array& KeyedCompleteTestType::array_int64_field() const { return m_array_int64_field; } @@ -5409,7 +5409,7 @@ const std::array& KeyedCompleteTestType * @brief This function returns a reference to member array_int64_field * @return Reference to member array_int64_field */ -std::array& KeyedCompleteTestType::array_int64_field() +std::array& KeyedCompleteTestType::array_int64_field() { return m_array_int64_field; } @@ -5420,7 +5420,7 @@ std::array& KeyedCompleteTestType::arra * @param _array_uint64_field New value to be copied in member array_uint64_field */ void KeyedCompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) + const std::array& _array_uint64_field) { m_array_uint64_field = _array_uint64_field; } @@ -5430,7 +5430,7 @@ void KeyedCompleteTestType::array_uint64_field( * @param _array_uint64_field New value to be moved in member array_uint64_field */ void KeyedCompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) + std::array&& _array_uint64_field) { m_array_uint64_field = std::move(_array_uint64_field); } @@ -5439,7 +5439,7 @@ void KeyedCompleteTestType::array_uint64_field( * @brief This function returns a constant reference to member array_uint64_field * @return Constant reference to member array_uint64_field */ -const std::array& KeyedCompleteTestType::array_uint64_field() const +const std::array& KeyedCompleteTestType::array_uint64_field() const { return m_array_uint64_field; } @@ -5448,7 +5448,7 @@ const std::array& KeyedCompleteTestTyp * @brief This function returns a reference to member array_uint64_field * @return Reference to member array_uint64_field */ -std::array& KeyedCompleteTestType::array_uint64_field() +std::array& KeyedCompleteTestType::array_uint64_field() { return m_array_uint64_field; } @@ -5459,7 +5459,7 @@ std::array& KeyedCompleteTestType::arr * @param _array_float_field New value to be copied in member array_float_field */ void KeyedCompleteTestType::array_float_field( - const std::array& _array_float_field) + const std::array& _array_float_field) { m_array_float_field = _array_float_field; } @@ -5469,7 +5469,7 @@ void KeyedCompleteTestType::array_float_field( * @param _array_float_field New value to be moved in member array_float_field */ void KeyedCompleteTestType::array_float_field( - std::array&& _array_float_field) + std::array&& _array_float_field) { m_array_float_field = std::move(_array_float_field); } @@ -5478,7 +5478,7 @@ void KeyedCompleteTestType::array_float_field( * @brief This function returns a constant reference to member array_float_field * @return Constant reference to member array_float_field */ -const std::array& KeyedCompleteTestType::array_float_field() const +const std::array& KeyedCompleteTestType::array_float_field() const { return m_array_float_field; } @@ -5487,7 +5487,7 @@ const std::array& KeyedCompleteTestType:: * @brief This function returns a reference to member array_float_field * @return Reference to member array_float_field */ -std::array& KeyedCompleteTestType::array_float_field() +std::array& KeyedCompleteTestType::array_float_field() { return m_array_float_field; } @@ -5498,7 +5498,7 @@ std::array& KeyedCompleteTestType::array_ * @param _array_double_field New value to be copied in member array_double_field */ void KeyedCompleteTestType::array_double_field( - const std::array& _array_double_field) + const std::array& _array_double_field) { m_array_double_field = _array_double_field; } @@ -5508,7 +5508,7 @@ void KeyedCompleteTestType::array_double_field( * @param _array_double_field New value to be moved in member array_double_field */ void KeyedCompleteTestType::array_double_field( - std::array&& _array_double_field) + std::array&& _array_double_field) { m_array_double_field = std::move(_array_double_field); } @@ -5517,7 +5517,7 @@ void KeyedCompleteTestType::array_double_field( * @brief This function returns a constant reference to member array_double_field * @return Constant reference to member array_double_field */ -const std::array& KeyedCompleteTestType::array_double_field() const +const std::array& KeyedCompleteTestType::array_double_field() const { return m_array_double_field; } @@ -5526,7 +5526,7 @@ const std::array& KeyedCompleteTestType: * @brief This function returns a reference to member array_double_field * @return Reference to member array_double_field */ -std::array& KeyedCompleteTestType::array_double_field() +std::array& KeyedCompleteTestType::array_double_field() { return m_array_double_field; } @@ -5537,7 +5537,7 @@ std::array& KeyedCompleteTestType::array * @param _array_bool_field New value to be copied in member array_bool_field */ void KeyedCompleteTestType::array_bool_field( - const std::array& _array_bool_field) + const std::array& _array_bool_field) { m_array_bool_field = _array_bool_field; } @@ -5547,7 +5547,7 @@ void KeyedCompleteTestType::array_bool_field( * @param _array_bool_field New value to be moved in member array_bool_field */ void KeyedCompleteTestType::array_bool_field( - std::array&& _array_bool_field) + std::array&& _array_bool_field) { m_array_bool_field = std::move(_array_bool_field); } @@ -5556,7 +5556,7 @@ void KeyedCompleteTestType::array_bool_field( * @brief This function returns a constant reference to member array_bool_field * @return Constant reference to member array_bool_field */ -const std::array& KeyedCompleteTestType::array_bool_field() const +const std::array& KeyedCompleteTestType::array_bool_field() const { return m_array_bool_field; } @@ -5565,7 +5565,7 @@ const std::array& KeyedCompleteTestType::a * @brief This function returns a reference to member array_bool_field * @return Reference to member array_bool_field */ -std::array& KeyedCompleteTestType::array_bool_field() +std::array& KeyedCompleteTestType::array_bool_field() { return m_array_bool_field; } @@ -5576,7 +5576,7 @@ std::array& KeyedCompleteTestType::array_b * @param _array_enum_field New value to be copied in member array_enum_field */ void KeyedCompleteTestType::array_enum_field( - const std::array& _array_enum_field) + const std::array& _array_enum_field) { m_array_enum_field = _array_enum_field; } @@ -5586,7 +5586,7 @@ void KeyedCompleteTestType::array_enum_field( * @param _array_enum_field New value to be moved in member array_enum_field */ void KeyedCompleteTestType::array_enum_field( - std::array&& _array_enum_field) + std::array&& _array_enum_field) { m_array_enum_field = std::move(_array_enum_field); } @@ -5595,7 +5595,7 @@ void KeyedCompleteTestType::array_enum_field( * @brief This function returns a constant reference to member array_enum_field * @return Constant reference to member array_enum_field */ -const std::array& KeyedCompleteTestType::array_enum_field() const +const std::array& KeyedCompleteTestType::array_enum_field() const { return m_array_enum_field; } @@ -5604,7 +5604,7 @@ const std::array& KeyedCo * @brief This function returns a reference to member array_enum_field * @return Reference to member array_enum_field */ -std::array& KeyedCompleteTestType::array_enum_field() +std::array& KeyedCompleteTestType::array_enum_field() { return m_array_enum_field; } @@ -5615,7 +5615,7 @@ std::array& KeyedComplete * @param _array_enum2_field New value to be copied in member array_enum2_field */ void KeyedCompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) + const std::array& _array_enum2_field) { m_array_enum2_field = _array_enum2_field; } @@ -5625,7 +5625,7 @@ void KeyedCompleteTestType::array_enum2_field( * @param _array_enum2_field New value to be moved in member array_enum2_field */ void KeyedCompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) + std::array&& _array_enum2_field) { m_array_enum2_field = std::move(_array_enum2_field); } @@ -5634,7 +5634,7 @@ void KeyedCompleteTestType::array_enum2_field( * @brief This function returns a constant reference to member array_enum2_field * @return Constant reference to member array_enum2_field */ -const std::array& KeyedCompleteTestType::array_enum2_field() const +const std::array& KeyedCompleteTestType::array_enum2_field() const { return m_array_enum2_field; } @@ -5643,7 +5643,7 @@ const std::array& Keye * @brief This function returns a reference to member array_enum2_field * @return Reference to member array_enum2_field */ -std::array& KeyedCompleteTestType::array_enum2_field() +std::array& KeyedCompleteTestType::array_enum2_field() { return m_array_enum2_field; } @@ -5654,7 +5654,7 @@ std::array& KeyedCompl * @param _array_struct_field New value to be copied in member array_struct_field */ void KeyedCompleteTestType::array_struct_field( - const std::array& _array_struct_field) + const std::array& _array_struct_field) { m_array_struct_field = _array_struct_field; } @@ -5664,7 +5664,7 @@ void KeyedCompleteTestType::array_struct_field( * @param _array_struct_field New value to be moved in member array_struct_field */ void KeyedCompleteTestType::array_struct_field( - std::array&& _array_struct_field) + std::array&& _array_struct_field) { m_array_struct_field = std::move(_array_struct_field); } @@ -5673,7 +5673,7 @@ void KeyedCompleteTestType::array_struct_field( * @brief This function returns a constant reference to member array_struct_field * @return Constant reference to member array_struct_field */ -const std::array& KeyedCompleteTestType::array_struct_field() const +const std::array& KeyedCompleteTestType::array_struct_field() const { return m_array_struct_field; } @@ -5682,7 +5682,7 @@ const std::array& Ke * @brief This function returns a reference to member array_struct_field * @return Reference to member array_struct_field */ -std::array& KeyedCompleteTestType::array_struct_field() +std::array& KeyedCompleteTestType::array_struct_field() { return m_array_struct_field; } diff --git a/fastdds_python/test/types/test_modules.h b/fastdds_python/test/types/test_modules.h index 6138cf7a..a74ede6d 100644 --- a/fastdds_python/test/types/test_modules.h +++ b/fastdds_python/test/types/test_modules.h @@ -1257,26 +1257,26 @@ class CompleteTestType * @param _array_char_field New value to be copied in member array_char_field */ eProsima_user_DllExport void array_char_field( - const std::array& _array_char_field); + const std::array& _array_char_field); /*! * @brief This function moves the value in member array_char_field * @param _array_char_field New value to be moved in member array_char_field */ eProsima_user_DllExport void array_char_field( - std::array&& _array_char_field); + std::array&& _array_char_field); /*! * @brief This function returns a constant reference to member array_char_field * @return Constant reference to member array_char_field */ - eProsima_user_DllExport const std::array& array_char_field() const; + eProsima_user_DllExport const std::array& array_char_field() const; /*! * @brief This function returns a reference to member array_char_field * @return Reference to member array_char_field */ - eProsima_user_DllExport std::array& array_char_field(); + eProsima_user_DllExport std::array& array_char_field(); /*! @@ -1284,26 +1284,26 @@ class CompleteTestType * @param _array_uint8_field New value to be copied in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - const std::array& _array_uint8_field); + const std::array& _array_uint8_field); /*! * @brief This function moves the value in member array_uint8_field * @param _array_uint8_field New value to be moved in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - std::array&& _array_uint8_field); + std::array&& _array_uint8_field); /*! * @brief This function returns a constant reference to member array_uint8_field * @return Constant reference to member array_uint8_field */ - eProsima_user_DllExport const std::array& array_uint8_field() const; + eProsima_user_DllExport const std::array& array_uint8_field() const; /*! * @brief This function returns a reference to member array_uint8_field * @return Reference to member array_uint8_field */ - eProsima_user_DllExport std::array& array_uint8_field(); + eProsima_user_DllExport std::array& array_uint8_field(); /*! @@ -1311,26 +1311,26 @@ class CompleteTestType * @param _array_int16_field New value to be copied in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - const std::array& _array_int16_field); + const std::array& _array_int16_field); /*! * @brief This function moves the value in member array_int16_field * @param _array_int16_field New value to be moved in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - std::array&& _array_int16_field); + std::array&& _array_int16_field); /*! * @brief This function returns a constant reference to member array_int16_field * @return Constant reference to member array_int16_field */ - eProsima_user_DllExport const std::array& array_int16_field() const; + eProsima_user_DllExport const std::array& array_int16_field() const; /*! * @brief This function returns a reference to member array_int16_field * @return Reference to member array_int16_field */ - eProsima_user_DllExport std::array& array_int16_field(); + eProsima_user_DllExport std::array& array_int16_field(); /*! @@ -1338,26 +1338,26 @@ class CompleteTestType * @param _array_uint16_field New value to be copied in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - const std::array& _array_uint16_field); + const std::array& _array_uint16_field); /*! * @brief This function moves the value in member array_uint16_field * @param _array_uint16_field New value to be moved in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - std::array&& _array_uint16_field); + std::array&& _array_uint16_field); /*! * @brief This function returns a constant reference to member array_uint16_field * @return Constant reference to member array_uint16_field */ - eProsima_user_DllExport const std::array& array_uint16_field() const; + eProsima_user_DllExport const std::array& array_uint16_field() const; /*! * @brief This function returns a reference to member array_uint16_field * @return Reference to member array_uint16_field */ - eProsima_user_DllExport std::array& array_uint16_field(); + eProsima_user_DllExport std::array& array_uint16_field(); /*! @@ -1365,26 +1365,26 @@ class CompleteTestType * @param _array_int32_field New value to be copied in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - const std::array& _array_int32_field); + const std::array& _array_int32_field); /*! * @brief This function moves the value in member array_int32_field * @param _array_int32_field New value to be moved in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - std::array&& _array_int32_field); + std::array&& _array_int32_field); /*! * @brief This function returns a constant reference to member array_int32_field * @return Constant reference to member array_int32_field */ - eProsima_user_DllExport const std::array& array_int32_field() const; + eProsima_user_DllExport const std::array& array_int32_field() const; /*! * @brief This function returns a reference to member array_int32_field * @return Reference to member array_int32_field */ - eProsima_user_DllExport std::array& array_int32_field(); + eProsima_user_DllExport std::array& array_int32_field(); /*! @@ -1392,26 +1392,26 @@ class CompleteTestType * @param _array_uint32_field New value to be copied in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - const std::array& _array_uint32_field); + const std::array& _array_uint32_field); /*! * @brief This function moves the value in member array_uint32_field * @param _array_uint32_field New value to be moved in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - std::array&& _array_uint32_field); + std::array&& _array_uint32_field); /*! * @brief This function returns a constant reference to member array_uint32_field * @return Constant reference to member array_uint32_field */ - eProsima_user_DllExport const std::array& array_uint32_field() const; + eProsima_user_DllExport const std::array& array_uint32_field() const; /*! * @brief This function returns a reference to member array_uint32_field * @return Reference to member array_uint32_field */ - eProsima_user_DllExport std::array& array_uint32_field(); + eProsima_user_DllExport std::array& array_uint32_field(); /*! @@ -1419,26 +1419,26 @@ class CompleteTestType * @param _array_int64_field New value to be copied in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - const std::array& _array_int64_field); + const std::array& _array_int64_field); /*! * @brief This function moves the value in member array_int64_field * @param _array_int64_field New value to be moved in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - std::array&& _array_int64_field); + std::array&& _array_int64_field); /*! * @brief This function returns a constant reference to member array_int64_field * @return Constant reference to member array_int64_field */ - eProsima_user_DllExport const std::array& array_int64_field() const; + eProsima_user_DllExport const std::array& array_int64_field() const; /*! * @brief This function returns a reference to member array_int64_field * @return Reference to member array_int64_field */ - eProsima_user_DllExport std::array& array_int64_field(); + eProsima_user_DllExport std::array& array_int64_field(); /*! @@ -1446,26 +1446,26 @@ class CompleteTestType * @param _array_uint64_field New value to be copied in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - const std::array& _array_uint64_field); + const std::array& _array_uint64_field); /*! * @brief This function moves the value in member array_uint64_field * @param _array_uint64_field New value to be moved in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - std::array&& _array_uint64_field); + std::array&& _array_uint64_field); /*! * @brief This function returns a constant reference to member array_uint64_field * @return Constant reference to member array_uint64_field */ - eProsima_user_DllExport const std::array& array_uint64_field() const; + eProsima_user_DllExport const std::array& array_uint64_field() const; /*! * @brief This function returns a reference to member array_uint64_field * @return Reference to member array_uint64_field */ - eProsima_user_DllExport std::array& array_uint64_field(); + eProsima_user_DllExport std::array& array_uint64_field(); /*! @@ -1473,26 +1473,26 @@ class CompleteTestType * @param _array_float_field New value to be copied in member array_float_field */ eProsima_user_DllExport void array_float_field( - const std::array& _array_float_field); + const std::array& _array_float_field); /*! * @brief This function moves the value in member array_float_field * @param _array_float_field New value to be moved in member array_float_field */ eProsima_user_DllExport void array_float_field( - std::array&& _array_float_field); + std::array&& _array_float_field); /*! * @brief This function returns a constant reference to member array_float_field * @return Constant reference to member array_float_field */ - eProsima_user_DllExport const std::array& array_float_field() const; + eProsima_user_DllExport const std::array& array_float_field() const; /*! * @brief This function returns a reference to member array_float_field * @return Reference to member array_float_field */ - eProsima_user_DllExport std::array& array_float_field(); + eProsima_user_DllExport std::array& array_float_field(); /*! @@ -1500,26 +1500,26 @@ class CompleteTestType * @param _array_double_field New value to be copied in member array_double_field */ eProsima_user_DllExport void array_double_field( - const std::array& _array_double_field); + const std::array& _array_double_field); /*! * @brief This function moves the value in member array_double_field * @param _array_double_field New value to be moved in member array_double_field */ eProsima_user_DllExport void array_double_field( - std::array&& _array_double_field); + std::array&& _array_double_field); /*! * @brief This function returns a constant reference to member array_double_field * @return Constant reference to member array_double_field */ - eProsima_user_DllExport const std::array& array_double_field() const; + eProsima_user_DllExport const std::array& array_double_field() const; /*! * @brief This function returns a reference to member array_double_field * @return Reference to member array_double_field */ - eProsima_user_DllExport std::array& array_double_field(); + eProsima_user_DllExport std::array& array_double_field(); /*! @@ -1527,26 +1527,26 @@ class CompleteTestType * @param _array_bool_field New value to be copied in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - const std::array& _array_bool_field); + const std::array& _array_bool_field); /*! * @brief This function moves the value in member array_bool_field * @param _array_bool_field New value to be moved in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - std::array&& _array_bool_field); + std::array&& _array_bool_field); /*! * @brief This function returns a constant reference to member array_bool_field * @return Constant reference to member array_bool_field */ - eProsima_user_DllExport const std::array& array_bool_field() const; + eProsima_user_DllExport const std::array& array_bool_field() const; /*! * @brief This function returns a reference to member array_bool_field * @return Reference to member array_bool_field */ - eProsima_user_DllExport std::array& array_bool_field(); + eProsima_user_DllExport std::array& array_bool_field(); /*! @@ -1554,26 +1554,26 @@ class CompleteTestType * @param _array_enum_field New value to be copied in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - const std::array& _array_enum_field); + const std::array& _array_enum_field); /*! * @brief This function moves the value in member array_enum_field * @param _array_enum_field New value to be moved in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - std::array&& _array_enum_field); + std::array&& _array_enum_field); /*! * @brief This function returns a constant reference to member array_enum_field * @return Constant reference to member array_enum_field */ - eProsima_user_DllExport const std::array& array_enum_field() const; + eProsima_user_DllExport const std::array& array_enum_field() const; /*! * @brief This function returns a reference to member array_enum_field * @return Reference to member array_enum_field */ - eProsima_user_DllExport std::array& array_enum_field(); + eProsima_user_DllExport std::array& array_enum_field(); /*! @@ -1581,26 +1581,26 @@ class CompleteTestType * @param _array_enum2_field New value to be copied in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - const std::array& _array_enum2_field); + const std::array& _array_enum2_field); /*! * @brief This function moves the value in member array_enum2_field * @param _array_enum2_field New value to be moved in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - std::array&& _array_enum2_field); + std::array&& _array_enum2_field); /*! * @brief This function returns a constant reference to member array_enum2_field * @return Constant reference to member array_enum2_field */ - eProsima_user_DllExport const std::array& array_enum2_field() const; + eProsima_user_DllExport const std::array& array_enum2_field() const; /*! * @brief This function returns a reference to member array_enum2_field * @return Reference to member array_enum2_field */ - eProsima_user_DllExport std::array& array_enum2_field(); + eProsima_user_DllExport std::array& array_enum2_field(); /*! @@ -1608,26 +1608,26 @@ class CompleteTestType * @param _array_struct_field New value to be copied in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - const std::array& _array_struct_field); + const std::array& _array_struct_field); /*! * @brief This function moves the value in member array_struct_field * @param _array_struct_field New value to be moved in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - std::array&& _array_struct_field); + std::array&& _array_struct_field); /*! * @brief This function returns a constant reference to member array_struct_field * @return Constant reference to member array_struct_field */ - eProsima_user_DllExport const std::array& array_struct_field() const; + eProsima_user_DllExport const std::array& array_struct_field() const; /*! * @brief This function returns a reference to member array_struct_field * @return Reference to member array_struct_field */ - eProsima_user_DllExport std::array& array_struct_field(); + eProsima_user_DllExport std::array& array_struct_field(); /*! @@ -2417,20 +2417,20 @@ class CompleteTestType eprosima::fastcdr::optional m_enum_opt_field; eprosima::fastcdr::optional m_enum2_opt_field; eprosima::fastcdr::optional m_struct_opt_field; - std::array m_array_char_field{0}; - std::array m_array_uint8_field{0}; - std::array m_array_int16_field{0}; - std::array m_array_uint16_field{0}; - std::array m_array_int32_field{0}; - std::array m_array_uint32_field{0}; - std::array m_array_int64_field{0}; - std::array m_array_uint64_field{0}; - std::array m_array_float_field{0.0}; - std::array m_array_double_field{0.0}; - std::array m_array_bool_field{false}; - std::array m_array_enum_field{eprosima::test::RED}; - std::array m_array_enum2_field{eprosima::test::WOOD}; - std::array m_array_struct_field; + std::array m_array_char_field{0}; + std::array m_array_uint8_field{0}; + std::array m_array_int16_field{0}; + std::array m_array_uint16_field{0}; + std::array m_array_int32_field{0}; + std::array m_array_uint32_field{0}; + std::array m_array_int64_field{0}; + std::array m_array_uint64_field{0}; + std::array m_array_float_field{0.0}; + std::array m_array_double_field{0.0}; + std::array m_array_bool_field{false}; + std::array m_array_enum_field{eprosima::test::RED}; + std::array m_array_enum2_field{eprosima::test::WOOD}; + std::array m_array_struct_field; std::vector m_bounded_sequence_char_field; std::vector m_bounded_sequence_uint8_field; std::vector m_bounded_sequence_int16_field; @@ -3269,26 +3269,26 @@ class KeyedCompleteTestType * @param _array_char_field New value to be copied in member array_char_field */ eProsima_user_DllExport void array_char_field( - const std::array& _array_char_field); + const std::array& _array_char_field); /*! * @brief This function moves the value in member array_char_field * @param _array_char_field New value to be moved in member array_char_field */ eProsima_user_DllExport void array_char_field( - std::array&& _array_char_field); + std::array&& _array_char_field); /*! * @brief This function returns a constant reference to member array_char_field * @return Constant reference to member array_char_field */ - eProsima_user_DllExport const std::array& array_char_field() const; + eProsima_user_DllExport const std::array& array_char_field() const; /*! * @brief This function returns a reference to member array_char_field * @return Reference to member array_char_field */ - eProsima_user_DllExport std::array& array_char_field(); + eProsima_user_DllExport std::array& array_char_field(); /*! @@ -3296,26 +3296,26 @@ class KeyedCompleteTestType * @param _array_uint8_field New value to be copied in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - const std::array& _array_uint8_field); + const std::array& _array_uint8_field); /*! * @brief This function moves the value in member array_uint8_field * @param _array_uint8_field New value to be moved in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - std::array&& _array_uint8_field); + std::array&& _array_uint8_field); /*! * @brief This function returns a constant reference to member array_uint8_field * @return Constant reference to member array_uint8_field */ - eProsima_user_DllExport const std::array& array_uint8_field() const; + eProsima_user_DllExport const std::array& array_uint8_field() const; /*! * @brief This function returns a reference to member array_uint8_field * @return Reference to member array_uint8_field */ - eProsima_user_DllExport std::array& array_uint8_field(); + eProsima_user_DllExport std::array& array_uint8_field(); /*! @@ -3323,26 +3323,26 @@ class KeyedCompleteTestType * @param _array_int16_field New value to be copied in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - const std::array& _array_int16_field); + const std::array& _array_int16_field); /*! * @brief This function moves the value in member array_int16_field * @param _array_int16_field New value to be moved in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - std::array&& _array_int16_field); + std::array&& _array_int16_field); /*! * @brief This function returns a constant reference to member array_int16_field * @return Constant reference to member array_int16_field */ - eProsima_user_DllExport const std::array& array_int16_field() const; + eProsima_user_DllExport const std::array& array_int16_field() const; /*! * @brief This function returns a reference to member array_int16_field * @return Reference to member array_int16_field */ - eProsima_user_DllExport std::array& array_int16_field(); + eProsima_user_DllExport std::array& array_int16_field(); /*! @@ -3350,26 +3350,26 @@ class KeyedCompleteTestType * @param _array_uint16_field New value to be copied in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - const std::array& _array_uint16_field); + const std::array& _array_uint16_field); /*! * @brief This function moves the value in member array_uint16_field * @param _array_uint16_field New value to be moved in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - std::array&& _array_uint16_field); + std::array&& _array_uint16_field); /*! * @brief This function returns a constant reference to member array_uint16_field * @return Constant reference to member array_uint16_field */ - eProsima_user_DllExport const std::array& array_uint16_field() const; + eProsima_user_DllExport const std::array& array_uint16_field() const; /*! * @brief This function returns a reference to member array_uint16_field * @return Reference to member array_uint16_field */ - eProsima_user_DllExport std::array& array_uint16_field(); + eProsima_user_DllExport std::array& array_uint16_field(); /*! @@ -3377,26 +3377,26 @@ class KeyedCompleteTestType * @param _array_int32_field New value to be copied in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - const std::array& _array_int32_field); + const std::array& _array_int32_field); /*! * @brief This function moves the value in member array_int32_field * @param _array_int32_field New value to be moved in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - std::array&& _array_int32_field); + std::array&& _array_int32_field); /*! * @brief This function returns a constant reference to member array_int32_field * @return Constant reference to member array_int32_field */ - eProsima_user_DllExport const std::array& array_int32_field() const; + eProsima_user_DllExport const std::array& array_int32_field() const; /*! * @brief This function returns a reference to member array_int32_field * @return Reference to member array_int32_field */ - eProsima_user_DllExport std::array& array_int32_field(); + eProsima_user_DllExport std::array& array_int32_field(); /*! @@ -3404,26 +3404,26 @@ class KeyedCompleteTestType * @param _array_uint32_field New value to be copied in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - const std::array& _array_uint32_field); + const std::array& _array_uint32_field); /*! * @brief This function moves the value in member array_uint32_field * @param _array_uint32_field New value to be moved in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - std::array&& _array_uint32_field); + std::array&& _array_uint32_field); /*! * @brief This function returns a constant reference to member array_uint32_field * @return Constant reference to member array_uint32_field */ - eProsima_user_DllExport const std::array& array_uint32_field() const; + eProsima_user_DllExport const std::array& array_uint32_field() const; /*! * @brief This function returns a reference to member array_uint32_field * @return Reference to member array_uint32_field */ - eProsima_user_DllExport std::array& array_uint32_field(); + eProsima_user_DllExport std::array& array_uint32_field(); /*! @@ -3431,26 +3431,26 @@ class KeyedCompleteTestType * @param _array_int64_field New value to be copied in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - const std::array& _array_int64_field); + const std::array& _array_int64_field); /*! * @brief This function moves the value in member array_int64_field * @param _array_int64_field New value to be moved in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - std::array&& _array_int64_field); + std::array&& _array_int64_field); /*! * @brief This function returns a constant reference to member array_int64_field * @return Constant reference to member array_int64_field */ - eProsima_user_DllExport const std::array& array_int64_field() const; + eProsima_user_DllExport const std::array& array_int64_field() const; /*! * @brief This function returns a reference to member array_int64_field * @return Reference to member array_int64_field */ - eProsima_user_DllExport std::array& array_int64_field(); + eProsima_user_DllExport std::array& array_int64_field(); /*! @@ -3458,26 +3458,26 @@ class KeyedCompleteTestType * @param _array_uint64_field New value to be copied in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - const std::array& _array_uint64_field); + const std::array& _array_uint64_field); /*! * @brief This function moves the value in member array_uint64_field * @param _array_uint64_field New value to be moved in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - std::array&& _array_uint64_field); + std::array&& _array_uint64_field); /*! * @brief This function returns a constant reference to member array_uint64_field * @return Constant reference to member array_uint64_field */ - eProsima_user_DllExport const std::array& array_uint64_field() const; + eProsima_user_DllExport const std::array& array_uint64_field() const; /*! * @brief This function returns a reference to member array_uint64_field * @return Reference to member array_uint64_field */ - eProsima_user_DllExport std::array& array_uint64_field(); + eProsima_user_DllExport std::array& array_uint64_field(); /*! @@ -3485,26 +3485,26 @@ class KeyedCompleteTestType * @param _array_float_field New value to be copied in member array_float_field */ eProsima_user_DllExport void array_float_field( - const std::array& _array_float_field); + const std::array& _array_float_field); /*! * @brief This function moves the value in member array_float_field * @param _array_float_field New value to be moved in member array_float_field */ eProsima_user_DllExport void array_float_field( - std::array&& _array_float_field); + std::array&& _array_float_field); /*! * @brief This function returns a constant reference to member array_float_field * @return Constant reference to member array_float_field */ - eProsima_user_DllExport const std::array& array_float_field() const; + eProsima_user_DllExport const std::array& array_float_field() const; /*! * @brief This function returns a reference to member array_float_field * @return Reference to member array_float_field */ - eProsima_user_DllExport std::array& array_float_field(); + eProsima_user_DllExport std::array& array_float_field(); /*! @@ -3512,26 +3512,26 @@ class KeyedCompleteTestType * @param _array_double_field New value to be copied in member array_double_field */ eProsima_user_DllExport void array_double_field( - const std::array& _array_double_field); + const std::array& _array_double_field); /*! * @brief This function moves the value in member array_double_field * @param _array_double_field New value to be moved in member array_double_field */ eProsima_user_DllExport void array_double_field( - std::array&& _array_double_field); + std::array&& _array_double_field); /*! * @brief This function returns a constant reference to member array_double_field * @return Constant reference to member array_double_field */ - eProsima_user_DllExport const std::array& array_double_field() const; + eProsima_user_DllExport const std::array& array_double_field() const; /*! * @brief This function returns a reference to member array_double_field * @return Reference to member array_double_field */ - eProsima_user_DllExport std::array& array_double_field(); + eProsima_user_DllExport std::array& array_double_field(); /*! @@ -3539,26 +3539,26 @@ class KeyedCompleteTestType * @param _array_bool_field New value to be copied in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - const std::array& _array_bool_field); + const std::array& _array_bool_field); /*! * @brief This function moves the value in member array_bool_field * @param _array_bool_field New value to be moved in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - std::array&& _array_bool_field); + std::array&& _array_bool_field); /*! * @brief This function returns a constant reference to member array_bool_field * @return Constant reference to member array_bool_field */ - eProsima_user_DllExport const std::array& array_bool_field() const; + eProsima_user_DllExport const std::array& array_bool_field() const; /*! * @brief This function returns a reference to member array_bool_field * @return Reference to member array_bool_field */ - eProsima_user_DllExport std::array& array_bool_field(); + eProsima_user_DllExport std::array& array_bool_field(); /*! @@ -3566,26 +3566,26 @@ class KeyedCompleteTestType * @param _array_enum_field New value to be copied in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - const std::array& _array_enum_field); + const std::array& _array_enum_field); /*! * @brief This function moves the value in member array_enum_field * @param _array_enum_field New value to be moved in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - std::array&& _array_enum_field); + std::array&& _array_enum_field); /*! * @brief This function returns a constant reference to member array_enum_field * @return Constant reference to member array_enum_field */ - eProsima_user_DllExport const std::array& array_enum_field() const; + eProsima_user_DllExport const std::array& array_enum_field() const; /*! * @brief This function returns a reference to member array_enum_field * @return Reference to member array_enum_field */ - eProsima_user_DllExport std::array& array_enum_field(); + eProsima_user_DllExport std::array& array_enum_field(); /*! @@ -3593,26 +3593,26 @@ class KeyedCompleteTestType * @param _array_enum2_field New value to be copied in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - const std::array& _array_enum2_field); + const std::array& _array_enum2_field); /*! * @brief This function moves the value in member array_enum2_field * @param _array_enum2_field New value to be moved in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - std::array&& _array_enum2_field); + std::array&& _array_enum2_field); /*! * @brief This function returns a constant reference to member array_enum2_field * @return Constant reference to member array_enum2_field */ - eProsima_user_DllExport const std::array& array_enum2_field() const; + eProsima_user_DllExport const std::array& array_enum2_field() const; /*! * @brief This function returns a reference to member array_enum2_field * @return Reference to member array_enum2_field */ - eProsima_user_DllExport std::array& array_enum2_field(); + eProsima_user_DllExport std::array& array_enum2_field(); /*! @@ -3620,26 +3620,26 @@ class KeyedCompleteTestType * @param _array_struct_field New value to be copied in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - const std::array& _array_struct_field); + const std::array& _array_struct_field); /*! * @brief This function moves the value in member array_struct_field * @param _array_struct_field New value to be moved in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - std::array&& _array_struct_field); + std::array&& _array_struct_field); /*! * @brief This function returns a constant reference to member array_struct_field * @return Constant reference to member array_struct_field */ - eProsima_user_DllExport const std::array& array_struct_field() const; + eProsima_user_DllExport const std::array& array_struct_field() const; /*! * @brief This function returns a reference to member array_struct_field * @return Reference to member array_struct_field */ - eProsima_user_DllExport std::array& array_struct_field(); + eProsima_user_DllExport std::array& array_struct_field(); /*! @@ -4430,20 +4430,20 @@ class KeyedCompleteTestType eprosima::fastcdr::optional m_enum_opt_field; eprosima::fastcdr::optional m_enum2_opt_field; eprosima::fastcdr::optional m_struct_opt_field; - std::array m_array_char_field{0}; - std::array m_array_uint8_field{0}; - std::array m_array_int16_field{0}; - std::array m_array_uint16_field{0}; - std::array m_array_int32_field{0}; - std::array m_array_uint32_field{0}; - std::array m_array_int64_field{0}; - std::array m_array_uint64_field{0}; - std::array m_array_float_field{0.0}; - std::array m_array_double_field{0.0}; - std::array m_array_bool_field{false}; - std::array m_array_enum_field{eprosima::test::RED}; - std::array m_array_enum2_field{eprosima::test::WOOD}; - std::array m_array_struct_field; + std::array m_array_char_field{0}; + std::array m_array_uint8_field{0}; + std::array m_array_int16_field{0}; + std::array m_array_uint16_field{0}; + std::array m_array_int32_field{0}; + std::array m_array_uint32_field{0}; + std::array m_array_int64_field{0}; + std::array m_array_uint64_field{0}; + std::array m_array_float_field{0.0}; + std::array m_array_double_field{0.0}; + std::array m_array_bool_field{false}; + std::array m_array_enum_field{eprosima::test::RED}; + std::array m_array_enum2_field{eprosima::test::WOOD}; + std::array m_array_struct_field; std::vector m_bounded_sequence_char_field; std::vector m_bounded_sequence_uint8_field; std::vector m_bounded_sequence_int16_field; diff --git a/fastdds_python/test/types/test_modules.i b/fastdds_python/test/types/test_modules.i index b076a464..b26a9895 100644 --- a/fastdds_python/test/types/test_modules.i +++ b/fastdds_python/test/types/test_modules.i @@ -821,15 +821,15 @@ namespace swig { -%ignore eprosima::test::CompleteTestType::array_char_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_char_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_char_field() const; -%template(char_3_array) std::array; -%extend std::array +%template(char_3_array) std::array; +%extend std::array { const char* get_buffer() const { @@ -838,15 +838,15 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_uint8_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_uint8_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_uint8_field() const; -%template(uint8_t_3_array) std::array; -%extend std::array +%template(uint8_t_3_array) std::array; +%extend std::array { const uint8_t* get_buffer() const { @@ -855,15 +855,15 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_int16_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_int16_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_int16_field() const; -%template(int16_t_3_array) std::array; -%extend std::array +%template(int16_t_3_array) std::array; +%extend std::array { const int16_t* get_buffer() const { @@ -872,15 +872,15 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_uint16_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_uint16_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_uint16_field() const; -%template(uint16_t_3_array) std::array; -%extend std::array +%template(uint16_t_3_array) std::array; +%extend std::array { const uint16_t* get_buffer() const { @@ -889,15 +889,15 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_int32_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_int32_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_int32_field() const; -%template(int32_t_3_array) std::array; -%extend std::array +%template(int32_t_3_array) std::array; +%extend std::array { const int32_t* get_buffer() const { @@ -906,15 +906,15 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_uint32_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_uint32_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_uint32_field() const; -%template(uint32_t_3_array) std::array; -%extend std::array +%template(uint32_t_3_array) std::array; +%extend std::array { const uint32_t* get_buffer() const { @@ -923,15 +923,15 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_int64_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_int64_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_int64_field() const; -%template(int64_t_3_array) std::array; -%extend std::array +%template(int64_t_3_array) std::array; +%extend std::array { const int64_t* get_buffer() const { @@ -940,15 +940,15 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_uint64_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_uint64_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_uint64_field() const; -%template(uint64_t_3_array) std::array; -%extend std::array +%template(uint64_t_3_array) std::array; +%extend std::array { const uint64_t* get_buffer() const { @@ -957,15 +957,15 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_float_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_float_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_float_field() const; -%template(float_3_array) std::array; -%extend std::array +%template(float_3_array) std::array; +%extend std::array { const float* get_buffer() const { @@ -974,15 +974,15 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_double_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_double_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_double_field() const; -%template(double_3_array) std::array; -%extend std::array +%template(double_3_array) std::array; +%extend std::array { const double* get_buffer() const { @@ -991,15 +991,15 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_bool_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_bool_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_bool_field() const; -%template(bool_3_array) std::array; -%extend std::array +%template(bool_3_array) std::array; +%extend std::array { const bool* get_buffer() const { @@ -1008,15 +1008,15 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_enum_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_enum_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_enum_field() const; -%template(Color_3_array) std::array; -%extend std::array +%template(Color_3_array) std::array; +%extend std::array { const enum eprosima::test::Color* get_buffer() const { @@ -1025,15 +1025,15 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_enum2_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_enum2_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_enum2_field() const; -%template(Material_3_array) std::array; -%extend std::array +%template(Material_3_array) std::array; +%extend std::array { const enum eprosima::test::Material* get_buffer() const { @@ -1042,14 +1042,14 @@ namespace swig { } -%ignore eprosima::test::CompleteTestType::array_struct_field(std::array&&); +%ignore eprosima::test::CompleteTestType::array_struct_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::CompleteTestType::array_struct_field() const; -%template(StructType_3_array) std::array; +%template(StructType_3_array) std::array; %ignore eprosima::test::CompleteTestType::bounded_sequence_char_field(std::vector&&); @@ -2119,15 +2119,15 @@ namespace swig { -%ignore eprosima::test::KeyedCompleteTestType::array_char_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_char_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_char_field() const; -%template(char_3_array) std::array; -%extend std::array +%template(char_3_array) std::array; +%extend std::array { const char* get_buffer() const { @@ -2136,15 +2136,15 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_uint8_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_uint8_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_uint8_field() const; -%template(uint8_t_3_array) std::array; -%extend std::array +%template(uint8_t_3_array) std::array; +%extend std::array { const uint8_t* get_buffer() const { @@ -2153,15 +2153,15 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_int16_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_int16_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_int16_field() const; -%template(int16_t_3_array) std::array; -%extend std::array +%template(int16_t_3_array) std::array; +%extend std::array { const int16_t* get_buffer() const { @@ -2170,15 +2170,15 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_uint16_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_uint16_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_uint16_field() const; -%template(uint16_t_3_array) std::array; -%extend std::array +%template(uint16_t_3_array) std::array; +%extend std::array { const uint16_t* get_buffer() const { @@ -2187,15 +2187,15 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_int32_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_int32_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_int32_field() const; -%template(int32_t_3_array) std::array; -%extend std::array +%template(int32_t_3_array) std::array; +%extend std::array { const int32_t* get_buffer() const { @@ -2204,15 +2204,15 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_uint32_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_uint32_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_uint32_field() const; -%template(uint32_t_3_array) std::array; -%extend std::array +%template(uint32_t_3_array) std::array; +%extend std::array { const uint32_t* get_buffer() const { @@ -2221,15 +2221,15 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_int64_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_int64_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_int64_field() const; -%template(int64_t_3_array) std::array; -%extend std::array +%template(int64_t_3_array) std::array; +%extend std::array { const int64_t* get_buffer() const { @@ -2238,15 +2238,15 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_uint64_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_uint64_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_uint64_field() const; -%template(uint64_t_3_array) std::array; -%extend std::array +%template(uint64_t_3_array) std::array; +%extend std::array { const uint64_t* get_buffer() const { @@ -2255,15 +2255,15 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_float_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_float_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_float_field() const; -%template(float_3_array) std::array; -%extend std::array +%template(float_3_array) std::array; +%extend std::array { const float* get_buffer() const { @@ -2272,15 +2272,15 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_double_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_double_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_double_field() const; -%template(double_3_array) std::array; -%extend std::array +%template(double_3_array) std::array; +%extend std::array { const double* get_buffer() const { @@ -2289,15 +2289,15 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_bool_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_bool_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_bool_field() const; -%template(bool_3_array) std::array; -%extend std::array +%template(bool_3_array) std::array; +%extend std::array { const bool* get_buffer() const { @@ -2306,15 +2306,15 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_enum_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_enum_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_enum_field() const; -%template(Color_3_array) std::array; -%extend std::array +%template(Color_3_array) std::array; +%extend std::array { const enum eprosima::test::Color* get_buffer() const { @@ -2323,15 +2323,15 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_enum2_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_enum2_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_enum2_field() const; -%template(Material_3_array) std::array; -%extend std::array +%template(Material_3_array) std::array; +%extend std::array { const enum eprosima::test::Material* get_buffer() const { @@ -2340,14 +2340,14 @@ namespace swig { } -%ignore eprosima::test::KeyedCompleteTestType::array_struct_field(std::array&&); +%ignore eprosima::test::KeyedCompleteTestType::array_struct_field(std::array&&); // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this %ignore eprosima::test::KeyedCompleteTestType::array_struct_field() const; -%template(StructType_3_array) std::array; +%template(StructType_3_array) std::array; %ignore eprosima::test::KeyedCompleteTestType::bounded_sequence_char_field(std::vector&&); diff --git a/fastdds_python/test/types/test_modules.idl b/fastdds_python/test/types/test_modules.idl index e0b64543..4b674cdf 100644 --- a/fastdds_python/test/types/test_modules.idl +++ b/fastdds_python/test/types/test_modules.idl @@ -81,40 +81,40 @@ module eprosima @optional StructType struct_opt_field; // Array fields - char array_char_field[eprosima::test::max_array_size]; - octet array_uint8_field[eprosima::test::max_array_size]; - short array_int16_field[eprosima::test::max_array_size]; - unsigned short array_uint16_field[eprosima::test::max_array_size]; - long array_int32_field[eprosima::test::max_array_size]; - unsigned long array_uint32_field[eprosima::test::max_array_size]; - long long array_int64_field[eprosima::test::max_array_size]; - unsigned long long array_uint64_field[eprosima::test::max_array_size]; - float array_float_field[eprosima::test::max_array_size]; - double array_double_field[eprosima::test::max_array_size]; - //long double array_long_double_field[eprosima::test::max_array_size]; - boolean array_bool_field[eprosima::test::max_array_size]; - //string array_string_field[eprosima::test::max_array_size]; - Color array_enum_field[eprosima::test::max_array_size]; - Material array_enum2_field[eprosima::test::max_array_size]; - StructType array_struct_field[eprosima::test::max_array_size]; + char array_char_field[max_array_size]; + octet array_uint8_field[max_array_size]; + short array_int16_field[max_array_size]; + unsigned short array_uint16_field[max_array_size]; + long array_int32_field[max_array_size]; + unsigned long array_uint32_field[max_array_size]; + long long array_int64_field[max_array_size]; + unsigned long long array_uint64_field[max_array_size]; + float array_float_field[max_array_size]; + double array_double_field[max_array_size]; + //long double array_long_double_field[max_array_size]; + boolean array_bool_field[max_array_size]; + //string array_string_field[max_array_size]; + Color array_enum_field[max_array_size]; + Material array_enum2_field[max_array_size]; + StructType array_struct_field[max_array_size]; // Bounded sequence fields - sequence bounded_sequence_char_field; - sequence bounded_sequence_uint8_field; - sequence bounded_sequence_int16_field; - sequence bounded_sequence_uint16_field; - sequence bounded_sequence_int32_field; - sequence bounded_sequence_uint32_field; - sequence bounded_sequence_int64_field; - sequence bounded_sequence_uint64_field; - sequence bounded_sequence_float_field; - sequence bounded_sequence_double_field; - //sequence bounded_sequence_long_double_field; - sequence bounded_sequence_bool_field; - //sequence bounded_sequence_string_field; - sequence bounded_sequence_enum_field; - sequence bounded_sequence_enum2_field; - sequence bounded_sequence_struct_field; + sequence bounded_sequence_char_field; + sequence bounded_sequence_uint8_field; + sequence bounded_sequence_int16_field; + sequence bounded_sequence_uint16_field; + sequence bounded_sequence_int32_field; + sequence bounded_sequence_uint32_field; + sequence bounded_sequence_int64_field; + sequence bounded_sequence_uint64_field; + sequence bounded_sequence_float_field; + sequence bounded_sequence_double_field; + //sequence bounded_sequence_long_double_field; + sequence bounded_sequence_bool_field; + //sequence bounded_sequence_string_field; + sequence bounded_sequence_enum_field; + sequence bounded_sequence_enum2_field; + sequence bounded_sequence_struct_field; // Unbounded sequence fields sequence unbounded_sequence_char_field; @@ -177,40 +177,40 @@ module eprosima @optional StructType struct_opt_field; // Array fields - char array_char_field[eprosima::test::max_array_size]; - octet array_uint8_field[eprosima::test::max_array_size]; - short array_int16_field[eprosima::test::max_array_size]; - unsigned short array_uint16_field[eprosima::test::max_array_size]; - long array_int32_field[eprosima::test::max_array_size]; - unsigned long array_uint32_field[eprosima::test::max_array_size]; - long long array_int64_field[eprosima::test::max_array_size]; - unsigned long long array_uint64_field[eprosima::test::max_array_size]; - float array_float_field[eprosima::test::max_array_size]; - double array_double_field[eprosima::test::max_array_size]; - //long double array_long_double_field[eprosima::test::max_array_size]; - boolean array_bool_field[eprosima::test::max_array_size]; - //string array_string_field[eprosima::test::max_array_size]; - Color array_enum_field[eprosima::test::max_array_size]; - Material array_enum2_field[eprosima::test::max_array_size]; - StructType array_struct_field[eprosima::test::max_array_size]; + char array_char_field[max_array_size]; + octet array_uint8_field[max_array_size]; + short array_int16_field[max_array_size]; + unsigned short array_uint16_field[max_array_size]; + long array_int32_field[max_array_size]; + unsigned long array_uint32_field[max_array_size]; + long long array_int64_field[max_array_size]; + unsigned long long array_uint64_field[max_array_size]; + float array_float_field[max_array_size]; + double array_double_field[max_array_size]; + //long double array_long_double_field[max_array_size]; + boolean array_bool_field[max_array_size]; + //string array_string_field[max_array_size]; + Color array_enum_field[max_array_size]; + Material array_enum2_field[max_array_size]; + StructType array_struct_field[max_array_size]; // Bounded sequence fields - sequence bounded_sequence_char_field; - sequence bounded_sequence_uint8_field; - sequence bounded_sequence_int16_field; - sequence bounded_sequence_uint16_field; - sequence bounded_sequence_int32_field; - sequence bounded_sequence_uint32_field; - sequence bounded_sequence_int64_field; - sequence bounded_sequence_uint64_field; - sequence bounded_sequence_float_field; - sequence bounded_sequence_double_field; - //sequence bounded_sequence_long_double_field; - sequence bounded_sequence_bool_field; - //sequence bounded_sequence_string_field; - sequence bounded_sequence_enum_field; - sequence bounded_sequence_enum2_field; - sequence bounded_sequence_struct_field; + sequence bounded_sequence_char_field; + sequence bounded_sequence_uint8_field; + sequence bounded_sequence_int16_field; + sequence bounded_sequence_uint16_field; + sequence bounded_sequence_int32_field; + sequence bounded_sequence_uint32_field; + sequence bounded_sequence_int64_field; + sequence bounded_sequence_uint64_field; + sequence bounded_sequence_float_field; + sequence bounded_sequence_double_field; + //sequence bounded_sequence_long_double_field; + sequence bounded_sequence_bool_field; + //sequence bounded_sequence_string_field; + sequence bounded_sequence_enum_field; + sequence bounded_sequence_enum2_field; + sequence bounded_sequence_struct_field; // Unbounded sequence fields sequence unbounded_sequence_char_field; diff --git a/fastdds_python/test/types/test_modulesv1.cxx b/fastdds_python/test/types/test_modulesv1.cxx index d3384d61..9122a6fc 100644 --- a/fastdds_python/test/types/test_modulesv1.cxx +++ b/fastdds_python/test/types/test_modulesv1.cxx @@ -1002,60 +1002,60 @@ CompleteTestType::CompleteTestType() // eprosima::test::StructType m_struct_opt_field // char m_array_char_field - memset(&m_array_char_field, 0, ((eprosima::test::max_array_size)) * 1); + memset(&m_array_char_field, 0, ((max_array_size)) * 1); // octet m_array_uint8_field - memset(&m_array_uint8_field, 0, ((eprosima::test::max_array_size)) * 1); + memset(&m_array_uint8_field, 0, ((max_array_size)) * 1); // short m_array_int16_field - memset(&m_array_int16_field, 0, ((eprosima::test::max_array_size)) * 2); + memset(&m_array_int16_field, 0, ((max_array_size)) * 2); // unsigned short m_array_uint16_field - memset(&m_array_uint16_field, 0, ((eprosima::test::max_array_size)) * 2); + memset(&m_array_uint16_field, 0, ((max_array_size)) * 2); // long m_array_int32_field - memset(&m_array_int32_field, 0, ((eprosima::test::max_array_size)) * 4); + memset(&m_array_int32_field, 0, ((max_array_size)) * 4); // unsigned long m_array_uint32_field - memset(&m_array_uint32_field, 0, ((eprosima::test::max_array_size)) * 4); + memset(&m_array_uint32_field, 0, ((max_array_size)) * 4); // long long m_array_int64_field - memset(&m_array_int64_field, 0, ((eprosima::test::max_array_size)) * 8); + memset(&m_array_int64_field, 0, ((max_array_size)) * 8); // unsigned long long m_array_uint64_field - memset(&m_array_uint64_field, 0, ((eprosima::test::max_array_size)) * 8); + memset(&m_array_uint64_field, 0, ((max_array_size)) * 8); // float m_array_float_field - memset(&m_array_float_field, 0, ((eprosima::test::max_array_size)) * 4); + memset(&m_array_float_field, 0, ((max_array_size)) * 4); // double m_array_double_field - memset(&m_array_double_field, 0, ((eprosima::test::max_array_size)) * 8); + memset(&m_array_double_field, 0, ((max_array_size)) * 8); // boolean m_array_bool_field - memset(&m_array_bool_field, 0, ((eprosima::test::max_array_size)) * 1); + memset(&m_array_bool_field, 0, ((max_array_size)) * 1); // eprosima::test::Color m_array_enum_field - memset(&m_array_enum_field, 0, ((eprosima::test::max_array_size)) * 4); + memset(&m_array_enum_field, 0, ((max_array_size)) * 4); // eprosima::test::Material m_array_enum2_field - memset(&m_array_enum2_field, 0, ((eprosima::test::max_array_size)) * 4); + memset(&m_array_enum2_field, 0, ((max_array_size)) * 4); // eprosima::test::StructType m_array_struct_field - // sequence m_bounded_sequence_char_field + // sequence m_bounded_sequence_char_field - // sequence m_bounded_sequence_uint8_field + // sequence m_bounded_sequence_uint8_field - // sequence m_bounded_sequence_int16_field + // sequence m_bounded_sequence_int16_field - // sequence m_bounded_sequence_uint16_field + // sequence m_bounded_sequence_uint16_field - // sequence m_bounded_sequence_int32_field + // sequence m_bounded_sequence_int32_field - // sequence m_bounded_sequence_uint32_field + // sequence m_bounded_sequence_uint32_field - // sequence m_bounded_sequence_int64_field + // sequence m_bounded_sequence_int64_field - // sequence m_bounded_sequence_uint64_field + // sequence m_bounded_sequence_uint64_field - // sequence m_bounded_sequence_float_field + // sequence m_bounded_sequence_float_field - // sequence m_bounded_sequence_double_field + // sequence m_bounded_sequence_double_field - // sequence m_bounded_sequence_bool_field + // sequence m_bounded_sequence_bool_field - // sequence m_bounded_sequence_enum_field + // sequence m_bounded_sequence_enum_field - // sequence m_bounded_sequence_enum2_field + // sequence m_bounded_sequence_enum2_field - // sequence m_bounded_sequence_struct_field + // sequence m_bounded_sequence_struct_field // sequence m_unbounded_sequence_char_field @@ -2161,55 +2161,55 @@ size_t CompleteTestType::getCdrSerializedSize( current_alignment += eprosima::test::StructType::getCdrSerializedSize(data.struct_opt_field(), current_alignment); - current_alignment += (((eprosima::test::max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); + current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - current_alignment += (((eprosima::test::max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); + current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - current_alignment += (((eprosima::test::max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); + current_alignment += (((max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - current_alignment += (((eprosima::test::max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); + current_alignment += (((max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - current_alignment += (((eprosima::test::max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - current_alignment += (((eprosima::test::max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - current_alignment += (((eprosima::test::max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); + current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - current_alignment += (((eprosima::test::max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); + current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - current_alignment += (((eprosima::test::max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - current_alignment += (((eprosima::test::max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); + current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - current_alignment += (((eprosima::test::max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); + current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - current_alignment += (((eprosima::test::max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - current_alignment += (((eprosima::test::max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); @@ -3956,7 +3956,7 @@ eprosima::test::StructType& CompleteTestType::struct_opt_field() * @param _array_char_field New value to be copied in member array_char_field */ void CompleteTestType::array_char_field( - const std::array& _array_char_field) + const std::array& _array_char_field) { m_array_char_field = _array_char_field; } @@ -3966,7 +3966,7 @@ void CompleteTestType::array_char_field( * @param _array_char_field New value to be moved in member array_char_field */ void CompleteTestType::array_char_field( - std::array&& _array_char_field) + std::array&& _array_char_field) { m_array_char_field = std::move(_array_char_field); } @@ -3975,7 +3975,7 @@ void CompleteTestType::array_char_field( * @brief This function returns a constant reference to member array_char_field * @return Constant reference to member array_char_field */ -const std::array& CompleteTestType::array_char_field() const +const std::array& CompleteTestType::array_char_field() const { return m_array_char_field; } @@ -3984,7 +3984,7 @@ const std::array& CompleteTestType::array_ * @brief This function returns a reference to member array_char_field * @return Reference to member array_char_field */ -std::array& CompleteTestType::array_char_field() +std::array& CompleteTestType::array_char_field() { return m_array_char_field; } @@ -3995,7 +3995,7 @@ std::array& CompleteTestType::array_char_f * @param _array_uint8_field New value to be copied in member array_uint8_field */ void CompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) + const std::array& _array_uint8_field) { m_array_uint8_field = _array_uint8_field; } @@ -4005,7 +4005,7 @@ void CompleteTestType::array_uint8_field( * @param _array_uint8_field New value to be moved in member array_uint8_field */ void CompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) + std::array&& _array_uint8_field) { m_array_uint8_field = std::move(_array_uint8_field); } @@ -4014,7 +4014,7 @@ void CompleteTestType::array_uint8_field( * @brief This function returns a constant reference to member array_uint8_field * @return Constant reference to member array_uint8_field */ -const std::array& CompleteTestType::array_uint8_field() const +const std::array& CompleteTestType::array_uint8_field() const { return m_array_uint8_field; } @@ -4023,7 +4023,7 @@ const std::array& CompleteTestType::arr * @brief This function returns a reference to member array_uint8_field * @return Reference to member array_uint8_field */ -std::array& CompleteTestType::array_uint8_field() +std::array& CompleteTestType::array_uint8_field() { return m_array_uint8_field; } @@ -4034,7 +4034,7 @@ std::array& CompleteTestType::array_uin * @param _array_int16_field New value to be copied in member array_int16_field */ void CompleteTestType::array_int16_field( - const std::array& _array_int16_field) + const std::array& _array_int16_field) { m_array_int16_field = _array_int16_field; } @@ -4044,7 +4044,7 @@ void CompleteTestType::array_int16_field( * @param _array_int16_field New value to be moved in member array_int16_field */ void CompleteTestType::array_int16_field( - std::array&& _array_int16_field) + std::array&& _array_int16_field) { m_array_int16_field = std::move(_array_int16_field); } @@ -4053,7 +4053,7 @@ void CompleteTestType::array_int16_field( * @brief This function returns a constant reference to member array_int16_field * @return Constant reference to member array_int16_field */ -const std::array& CompleteTestType::array_int16_field() const +const std::array& CompleteTestType::array_int16_field() const { return m_array_int16_field; } @@ -4062,7 +4062,7 @@ const std::array& CompleteTestType::arr * @brief This function returns a reference to member array_int16_field * @return Reference to member array_int16_field */ -std::array& CompleteTestType::array_int16_field() +std::array& CompleteTestType::array_int16_field() { return m_array_int16_field; } @@ -4073,7 +4073,7 @@ std::array& CompleteTestType::array_int * @param _array_uint16_field New value to be copied in member array_uint16_field */ void CompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) + const std::array& _array_uint16_field) { m_array_uint16_field = _array_uint16_field; } @@ -4083,7 +4083,7 @@ void CompleteTestType::array_uint16_field( * @param _array_uint16_field New value to be moved in member array_uint16_field */ void CompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) + std::array&& _array_uint16_field) { m_array_uint16_field = std::move(_array_uint16_field); } @@ -4092,7 +4092,7 @@ void CompleteTestType::array_uint16_field( * @brief This function returns a constant reference to member array_uint16_field * @return Constant reference to member array_uint16_field */ -const std::array& CompleteTestType::array_uint16_field() const +const std::array& CompleteTestType::array_uint16_field() const { return m_array_uint16_field; } @@ -4101,7 +4101,7 @@ const std::array& CompleteTestType::ar * @brief This function returns a reference to member array_uint16_field * @return Reference to member array_uint16_field */ -std::array& CompleteTestType::array_uint16_field() +std::array& CompleteTestType::array_uint16_field() { return m_array_uint16_field; } @@ -4112,7 +4112,7 @@ std::array& CompleteTestType::array_ui * @param _array_int32_field New value to be copied in member array_int32_field */ void CompleteTestType::array_int32_field( - const std::array& _array_int32_field) + const std::array& _array_int32_field) { m_array_int32_field = _array_int32_field; } @@ -4122,7 +4122,7 @@ void CompleteTestType::array_int32_field( * @param _array_int32_field New value to be moved in member array_int32_field */ void CompleteTestType::array_int32_field( - std::array&& _array_int32_field) + std::array&& _array_int32_field) { m_array_int32_field = std::move(_array_int32_field); } @@ -4131,7 +4131,7 @@ void CompleteTestType::array_int32_field( * @brief This function returns a constant reference to member array_int32_field * @return Constant reference to member array_int32_field */ -const std::array& CompleteTestType::array_int32_field() const +const std::array& CompleteTestType::array_int32_field() const { return m_array_int32_field; } @@ -4140,7 +4140,7 @@ const std::array& CompleteTestType::arr * @brief This function returns a reference to member array_int32_field * @return Reference to member array_int32_field */ -std::array& CompleteTestType::array_int32_field() +std::array& CompleteTestType::array_int32_field() { return m_array_int32_field; } @@ -4151,7 +4151,7 @@ std::array& CompleteTestType::array_int * @param _array_uint32_field New value to be copied in member array_uint32_field */ void CompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) + const std::array& _array_uint32_field) { m_array_uint32_field = _array_uint32_field; } @@ -4161,7 +4161,7 @@ void CompleteTestType::array_uint32_field( * @param _array_uint32_field New value to be moved in member array_uint32_field */ void CompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) + std::array&& _array_uint32_field) { m_array_uint32_field = std::move(_array_uint32_field); } @@ -4170,7 +4170,7 @@ void CompleteTestType::array_uint32_field( * @brief This function returns a constant reference to member array_uint32_field * @return Constant reference to member array_uint32_field */ -const std::array& CompleteTestType::array_uint32_field() const +const std::array& CompleteTestType::array_uint32_field() const { return m_array_uint32_field; } @@ -4179,7 +4179,7 @@ const std::array& CompleteTestType::ar * @brief This function returns a reference to member array_uint32_field * @return Reference to member array_uint32_field */ -std::array& CompleteTestType::array_uint32_field() +std::array& CompleteTestType::array_uint32_field() { return m_array_uint32_field; } @@ -4190,7 +4190,7 @@ std::array& CompleteTestType::array_ui * @param _array_int64_field New value to be copied in member array_int64_field */ void CompleteTestType::array_int64_field( - const std::array& _array_int64_field) + const std::array& _array_int64_field) { m_array_int64_field = _array_int64_field; } @@ -4200,7 +4200,7 @@ void CompleteTestType::array_int64_field( * @param _array_int64_field New value to be moved in member array_int64_field */ void CompleteTestType::array_int64_field( - std::array&& _array_int64_field) + std::array&& _array_int64_field) { m_array_int64_field = std::move(_array_int64_field); } @@ -4209,7 +4209,7 @@ void CompleteTestType::array_int64_field( * @brief This function returns a constant reference to member array_int64_field * @return Constant reference to member array_int64_field */ -const std::array& CompleteTestType::array_int64_field() const +const std::array& CompleteTestType::array_int64_field() const { return m_array_int64_field; } @@ -4218,7 +4218,7 @@ const std::array& CompleteTestType::arr * @brief This function returns a reference to member array_int64_field * @return Reference to member array_int64_field */ -std::array& CompleteTestType::array_int64_field() +std::array& CompleteTestType::array_int64_field() { return m_array_int64_field; } @@ -4229,7 +4229,7 @@ std::array& CompleteTestType::array_int * @param _array_uint64_field New value to be copied in member array_uint64_field */ void CompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) + const std::array& _array_uint64_field) { m_array_uint64_field = _array_uint64_field; } @@ -4239,7 +4239,7 @@ void CompleteTestType::array_uint64_field( * @param _array_uint64_field New value to be moved in member array_uint64_field */ void CompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) + std::array&& _array_uint64_field) { m_array_uint64_field = std::move(_array_uint64_field); } @@ -4248,7 +4248,7 @@ void CompleteTestType::array_uint64_field( * @brief This function returns a constant reference to member array_uint64_field * @return Constant reference to member array_uint64_field */ -const std::array& CompleteTestType::array_uint64_field() const +const std::array& CompleteTestType::array_uint64_field() const { return m_array_uint64_field; } @@ -4257,7 +4257,7 @@ const std::array& CompleteTestType::ar * @brief This function returns a reference to member array_uint64_field * @return Reference to member array_uint64_field */ -std::array& CompleteTestType::array_uint64_field() +std::array& CompleteTestType::array_uint64_field() { return m_array_uint64_field; } @@ -4268,7 +4268,7 @@ std::array& CompleteTestType::array_ui * @param _array_float_field New value to be copied in member array_float_field */ void CompleteTestType::array_float_field( - const std::array& _array_float_field) + const std::array& _array_float_field) { m_array_float_field = _array_float_field; } @@ -4278,7 +4278,7 @@ void CompleteTestType::array_float_field( * @param _array_float_field New value to be moved in member array_float_field */ void CompleteTestType::array_float_field( - std::array&& _array_float_field) + std::array&& _array_float_field) { m_array_float_field = std::move(_array_float_field); } @@ -4287,7 +4287,7 @@ void CompleteTestType::array_float_field( * @brief This function returns a constant reference to member array_float_field * @return Constant reference to member array_float_field */ -const std::array& CompleteTestType::array_float_field() const +const std::array& CompleteTestType::array_float_field() const { return m_array_float_field; } @@ -4296,7 +4296,7 @@ const std::array& CompleteTestType::array * @brief This function returns a reference to member array_float_field * @return Reference to member array_float_field */ -std::array& CompleteTestType::array_float_field() +std::array& CompleteTestType::array_float_field() { return m_array_float_field; } @@ -4307,7 +4307,7 @@ std::array& CompleteTestType::array_float * @param _array_double_field New value to be copied in member array_double_field */ void CompleteTestType::array_double_field( - const std::array& _array_double_field) + const std::array& _array_double_field) { m_array_double_field = _array_double_field; } @@ -4317,7 +4317,7 @@ void CompleteTestType::array_double_field( * @param _array_double_field New value to be moved in member array_double_field */ void CompleteTestType::array_double_field( - std::array&& _array_double_field) + std::array&& _array_double_field) { m_array_double_field = std::move(_array_double_field); } @@ -4326,7 +4326,7 @@ void CompleteTestType::array_double_field( * @brief This function returns a constant reference to member array_double_field * @return Constant reference to member array_double_field */ -const std::array& CompleteTestType::array_double_field() const +const std::array& CompleteTestType::array_double_field() const { return m_array_double_field; } @@ -4335,7 +4335,7 @@ const std::array& CompleteTestType::arra * @brief This function returns a reference to member array_double_field * @return Reference to member array_double_field */ -std::array& CompleteTestType::array_double_field() +std::array& CompleteTestType::array_double_field() { return m_array_double_field; } @@ -4346,7 +4346,7 @@ std::array& CompleteTestType::array_doub * @param _array_bool_field New value to be copied in member array_bool_field */ void CompleteTestType::array_bool_field( - const std::array& _array_bool_field) + const std::array& _array_bool_field) { m_array_bool_field = _array_bool_field; } @@ -4356,7 +4356,7 @@ void CompleteTestType::array_bool_field( * @param _array_bool_field New value to be moved in member array_bool_field */ void CompleteTestType::array_bool_field( - std::array&& _array_bool_field) + std::array&& _array_bool_field) { m_array_bool_field = std::move(_array_bool_field); } @@ -4365,7 +4365,7 @@ void CompleteTestType::array_bool_field( * @brief This function returns a constant reference to member array_bool_field * @return Constant reference to member array_bool_field */ -const std::array& CompleteTestType::array_bool_field() const +const std::array& CompleteTestType::array_bool_field() const { return m_array_bool_field; } @@ -4374,7 +4374,7 @@ const std::array& CompleteTestType::array_ * @brief This function returns a reference to member array_bool_field * @return Reference to member array_bool_field */ -std::array& CompleteTestType::array_bool_field() +std::array& CompleteTestType::array_bool_field() { return m_array_bool_field; } @@ -4385,7 +4385,7 @@ std::array& CompleteTestType::array_bool_f * @param _array_enum_field New value to be copied in member array_enum_field */ void CompleteTestType::array_enum_field( - const std::array& _array_enum_field) + const std::array& _array_enum_field) { m_array_enum_field = _array_enum_field; } @@ -4395,7 +4395,7 @@ void CompleteTestType::array_enum_field( * @param _array_enum_field New value to be moved in member array_enum_field */ void CompleteTestType::array_enum_field( - std::array&& _array_enum_field) + std::array&& _array_enum_field) { m_array_enum_field = std::move(_array_enum_field); } @@ -4404,7 +4404,7 @@ void CompleteTestType::array_enum_field( * @brief This function returns a constant reference to member array_enum_field * @return Constant reference to member array_enum_field */ -const std::array& CompleteTestType::array_enum_field() const +const std::array& CompleteTestType::array_enum_field() const { return m_array_enum_field; } @@ -4413,7 +4413,7 @@ const std::array& Complet * @brief This function returns a reference to member array_enum_field * @return Reference to member array_enum_field */ -std::array& CompleteTestType::array_enum_field() +std::array& CompleteTestType::array_enum_field() { return m_array_enum_field; } @@ -4424,7 +4424,7 @@ std::array& CompleteTestT * @param _array_enum2_field New value to be copied in member array_enum2_field */ void CompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) + const std::array& _array_enum2_field) { m_array_enum2_field = _array_enum2_field; } @@ -4434,7 +4434,7 @@ void CompleteTestType::array_enum2_field( * @param _array_enum2_field New value to be moved in member array_enum2_field */ void CompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) + std::array&& _array_enum2_field) { m_array_enum2_field = std::move(_array_enum2_field); } @@ -4443,7 +4443,7 @@ void CompleteTestType::array_enum2_field( * @brief This function returns a constant reference to member array_enum2_field * @return Constant reference to member array_enum2_field */ -const std::array& CompleteTestType::array_enum2_field() const +const std::array& CompleteTestType::array_enum2_field() const { return m_array_enum2_field; } @@ -4452,7 +4452,7 @@ const std::array& Comp * @brief This function returns a reference to member array_enum2_field * @return Reference to member array_enum2_field */ -std::array& CompleteTestType::array_enum2_field() +std::array& CompleteTestType::array_enum2_field() { return m_array_enum2_field; } @@ -4463,7 +4463,7 @@ std::array& CompleteTe * @param _array_struct_field New value to be copied in member array_struct_field */ void CompleteTestType::array_struct_field( - const std::array& _array_struct_field) + const std::array& _array_struct_field) { m_array_struct_field = _array_struct_field; } @@ -4473,7 +4473,7 @@ void CompleteTestType::array_struct_field( * @param _array_struct_field New value to be moved in member array_struct_field */ void CompleteTestType::array_struct_field( - std::array&& _array_struct_field) + std::array&& _array_struct_field) { m_array_struct_field = std::move(_array_struct_field); } @@ -4482,7 +4482,7 @@ void CompleteTestType::array_struct_field( * @brief This function returns a constant reference to member array_struct_field * @return Constant reference to member array_struct_field */ -const std::array& CompleteTestType::array_struct_field() const +const std::array& CompleteTestType::array_struct_field() const { return m_array_struct_field; } @@ -4491,7 +4491,7 @@ const std::array& Co * @brief This function returns a reference to member array_struct_field * @return Reference to member array_struct_field */ -std::array& CompleteTestType::array_struct_field() +std::array& CompleteTestType::array_struct_field() { return m_array_struct_field; } @@ -5659,60 +5659,60 @@ KeyedCompleteTestType::KeyedCompleteTestType() // eprosima::test::StructType m_struct_opt_field // char m_array_char_field - memset(&m_array_char_field, 0, ((eprosima::test::max_array_size)) * 1); + memset(&m_array_char_field, 0, ((max_array_size)) * 1); // octet m_array_uint8_field - memset(&m_array_uint8_field, 0, ((eprosima::test::max_array_size)) * 1); + memset(&m_array_uint8_field, 0, ((max_array_size)) * 1); // short m_array_int16_field - memset(&m_array_int16_field, 0, ((eprosima::test::max_array_size)) * 2); + memset(&m_array_int16_field, 0, ((max_array_size)) * 2); // unsigned short m_array_uint16_field - memset(&m_array_uint16_field, 0, ((eprosima::test::max_array_size)) * 2); + memset(&m_array_uint16_field, 0, ((max_array_size)) * 2); // long m_array_int32_field - memset(&m_array_int32_field, 0, ((eprosima::test::max_array_size)) * 4); + memset(&m_array_int32_field, 0, ((max_array_size)) * 4); // unsigned long m_array_uint32_field - memset(&m_array_uint32_field, 0, ((eprosima::test::max_array_size)) * 4); + memset(&m_array_uint32_field, 0, ((max_array_size)) * 4); // long long m_array_int64_field - memset(&m_array_int64_field, 0, ((eprosima::test::max_array_size)) * 8); + memset(&m_array_int64_field, 0, ((max_array_size)) * 8); // unsigned long long m_array_uint64_field - memset(&m_array_uint64_field, 0, ((eprosima::test::max_array_size)) * 8); + memset(&m_array_uint64_field, 0, ((max_array_size)) * 8); // float m_array_float_field - memset(&m_array_float_field, 0, ((eprosima::test::max_array_size)) * 4); + memset(&m_array_float_field, 0, ((max_array_size)) * 4); // double m_array_double_field - memset(&m_array_double_field, 0, ((eprosima::test::max_array_size)) * 8); + memset(&m_array_double_field, 0, ((max_array_size)) * 8); // boolean m_array_bool_field - memset(&m_array_bool_field, 0, ((eprosima::test::max_array_size)) * 1); + memset(&m_array_bool_field, 0, ((max_array_size)) * 1); // eprosima::test::Color m_array_enum_field - memset(&m_array_enum_field, 0, ((eprosima::test::max_array_size)) * 4); + memset(&m_array_enum_field, 0, ((max_array_size)) * 4); // eprosima::test::Material m_array_enum2_field - memset(&m_array_enum2_field, 0, ((eprosima::test::max_array_size)) * 4); + memset(&m_array_enum2_field, 0, ((max_array_size)) * 4); // eprosima::test::StructType m_array_struct_field - // sequence m_bounded_sequence_char_field + // sequence m_bounded_sequence_char_field - // sequence m_bounded_sequence_uint8_field + // sequence m_bounded_sequence_uint8_field - // sequence m_bounded_sequence_int16_field + // sequence m_bounded_sequence_int16_field - // sequence m_bounded_sequence_uint16_field + // sequence m_bounded_sequence_uint16_field - // sequence m_bounded_sequence_int32_field + // sequence m_bounded_sequence_int32_field - // sequence m_bounded_sequence_uint32_field + // sequence m_bounded_sequence_uint32_field - // sequence m_bounded_sequence_int64_field + // sequence m_bounded_sequence_int64_field - // sequence m_bounded_sequence_uint64_field + // sequence m_bounded_sequence_uint64_field - // sequence m_bounded_sequence_float_field + // sequence m_bounded_sequence_float_field - // sequence m_bounded_sequence_double_field + // sequence m_bounded_sequence_double_field - // sequence m_bounded_sequence_bool_field + // sequence m_bounded_sequence_bool_field - // sequence m_bounded_sequence_enum_field + // sequence m_bounded_sequence_enum_field - // sequence m_bounded_sequence_enum2_field + // sequence m_bounded_sequence_enum2_field - // sequence m_bounded_sequence_struct_field + // sequence m_bounded_sequence_struct_field // sequence m_unbounded_sequence_char_field @@ -6834,55 +6834,55 @@ size_t KeyedCompleteTestType::getCdrSerializedSize( current_alignment += eprosima::test::StructType::getCdrSerializedSize(data.struct_opt_field(), current_alignment); - current_alignment += (((eprosima::test::max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); + current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - current_alignment += (((eprosima::test::max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); + current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - current_alignment += (((eprosima::test::max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); + current_alignment += (((max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - current_alignment += (((eprosima::test::max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); + current_alignment += (((max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - current_alignment += (((eprosima::test::max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - current_alignment += (((eprosima::test::max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - current_alignment += (((eprosima::test::max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); + current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - current_alignment += (((eprosima::test::max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); + current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - current_alignment += (((eprosima::test::max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - current_alignment += (((eprosima::test::max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); + current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - current_alignment += (((eprosima::test::max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); + current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - current_alignment += (((eprosima::test::max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - current_alignment += (((eprosima::test::max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); + current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); @@ -8739,7 +8739,7 @@ eprosima::test::StructType& KeyedCompleteTestType::struct_opt_field() * @param _array_char_field New value to be copied in member array_char_field */ void KeyedCompleteTestType::array_char_field( - const std::array& _array_char_field) + const std::array& _array_char_field) { m_array_char_field = _array_char_field; } @@ -8749,7 +8749,7 @@ void KeyedCompleteTestType::array_char_field( * @param _array_char_field New value to be moved in member array_char_field */ void KeyedCompleteTestType::array_char_field( - std::array&& _array_char_field) + std::array&& _array_char_field) { m_array_char_field = std::move(_array_char_field); } @@ -8758,7 +8758,7 @@ void KeyedCompleteTestType::array_char_field( * @brief This function returns a constant reference to member array_char_field * @return Constant reference to member array_char_field */ -const std::array& KeyedCompleteTestType::array_char_field() const +const std::array& KeyedCompleteTestType::array_char_field() const { return m_array_char_field; } @@ -8767,7 +8767,7 @@ const std::array& KeyedCompleteTestType::a * @brief This function returns a reference to member array_char_field * @return Reference to member array_char_field */ -std::array& KeyedCompleteTestType::array_char_field() +std::array& KeyedCompleteTestType::array_char_field() { return m_array_char_field; } @@ -8778,7 +8778,7 @@ std::array& KeyedCompleteTestType::array_c * @param _array_uint8_field New value to be copied in member array_uint8_field */ void KeyedCompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) + const std::array& _array_uint8_field) { m_array_uint8_field = _array_uint8_field; } @@ -8788,7 +8788,7 @@ void KeyedCompleteTestType::array_uint8_field( * @param _array_uint8_field New value to be moved in member array_uint8_field */ void KeyedCompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) + std::array&& _array_uint8_field) { m_array_uint8_field = std::move(_array_uint8_field); } @@ -8797,7 +8797,7 @@ void KeyedCompleteTestType::array_uint8_field( * @brief This function returns a constant reference to member array_uint8_field * @return Constant reference to member array_uint8_field */ -const std::array& KeyedCompleteTestType::array_uint8_field() const +const std::array& KeyedCompleteTestType::array_uint8_field() const { return m_array_uint8_field; } @@ -8806,7 +8806,7 @@ const std::array& KeyedCompleteTestType * @brief This function returns a reference to member array_uint8_field * @return Reference to member array_uint8_field */ -std::array& KeyedCompleteTestType::array_uint8_field() +std::array& KeyedCompleteTestType::array_uint8_field() { return m_array_uint8_field; } @@ -8817,7 +8817,7 @@ std::array& KeyedCompleteTestType::arra * @param _array_int16_field New value to be copied in member array_int16_field */ void KeyedCompleteTestType::array_int16_field( - const std::array& _array_int16_field) + const std::array& _array_int16_field) { m_array_int16_field = _array_int16_field; } @@ -8827,7 +8827,7 @@ void KeyedCompleteTestType::array_int16_field( * @param _array_int16_field New value to be moved in member array_int16_field */ void KeyedCompleteTestType::array_int16_field( - std::array&& _array_int16_field) + std::array&& _array_int16_field) { m_array_int16_field = std::move(_array_int16_field); } @@ -8836,7 +8836,7 @@ void KeyedCompleteTestType::array_int16_field( * @brief This function returns a constant reference to member array_int16_field * @return Constant reference to member array_int16_field */ -const std::array& KeyedCompleteTestType::array_int16_field() const +const std::array& KeyedCompleteTestType::array_int16_field() const { return m_array_int16_field; } @@ -8845,7 +8845,7 @@ const std::array& KeyedCompleteTestType * @brief This function returns a reference to member array_int16_field * @return Reference to member array_int16_field */ -std::array& KeyedCompleteTestType::array_int16_field() +std::array& KeyedCompleteTestType::array_int16_field() { return m_array_int16_field; } @@ -8856,7 +8856,7 @@ std::array& KeyedCompleteTestType::arra * @param _array_uint16_field New value to be copied in member array_uint16_field */ void KeyedCompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) + const std::array& _array_uint16_field) { m_array_uint16_field = _array_uint16_field; } @@ -8866,7 +8866,7 @@ void KeyedCompleteTestType::array_uint16_field( * @param _array_uint16_field New value to be moved in member array_uint16_field */ void KeyedCompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) + std::array&& _array_uint16_field) { m_array_uint16_field = std::move(_array_uint16_field); } @@ -8875,7 +8875,7 @@ void KeyedCompleteTestType::array_uint16_field( * @brief This function returns a constant reference to member array_uint16_field * @return Constant reference to member array_uint16_field */ -const std::array& KeyedCompleteTestType::array_uint16_field() const +const std::array& KeyedCompleteTestType::array_uint16_field() const { return m_array_uint16_field; } @@ -8884,7 +8884,7 @@ const std::array& KeyedCompleteTestTyp * @brief This function returns a reference to member array_uint16_field * @return Reference to member array_uint16_field */ -std::array& KeyedCompleteTestType::array_uint16_field() +std::array& KeyedCompleteTestType::array_uint16_field() { return m_array_uint16_field; } @@ -8895,7 +8895,7 @@ std::array& KeyedCompleteTestType::arr * @param _array_int32_field New value to be copied in member array_int32_field */ void KeyedCompleteTestType::array_int32_field( - const std::array& _array_int32_field) + const std::array& _array_int32_field) { m_array_int32_field = _array_int32_field; } @@ -8905,7 +8905,7 @@ void KeyedCompleteTestType::array_int32_field( * @param _array_int32_field New value to be moved in member array_int32_field */ void KeyedCompleteTestType::array_int32_field( - std::array&& _array_int32_field) + std::array&& _array_int32_field) { m_array_int32_field = std::move(_array_int32_field); } @@ -8914,7 +8914,7 @@ void KeyedCompleteTestType::array_int32_field( * @brief This function returns a constant reference to member array_int32_field * @return Constant reference to member array_int32_field */ -const std::array& KeyedCompleteTestType::array_int32_field() const +const std::array& KeyedCompleteTestType::array_int32_field() const { return m_array_int32_field; } @@ -8923,7 +8923,7 @@ const std::array& KeyedCompleteTestType * @brief This function returns a reference to member array_int32_field * @return Reference to member array_int32_field */ -std::array& KeyedCompleteTestType::array_int32_field() +std::array& KeyedCompleteTestType::array_int32_field() { return m_array_int32_field; } @@ -8934,7 +8934,7 @@ std::array& KeyedCompleteTestType::arra * @param _array_uint32_field New value to be copied in member array_uint32_field */ void KeyedCompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) + const std::array& _array_uint32_field) { m_array_uint32_field = _array_uint32_field; } @@ -8944,7 +8944,7 @@ void KeyedCompleteTestType::array_uint32_field( * @param _array_uint32_field New value to be moved in member array_uint32_field */ void KeyedCompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) + std::array&& _array_uint32_field) { m_array_uint32_field = std::move(_array_uint32_field); } @@ -8953,7 +8953,7 @@ void KeyedCompleteTestType::array_uint32_field( * @brief This function returns a constant reference to member array_uint32_field * @return Constant reference to member array_uint32_field */ -const std::array& KeyedCompleteTestType::array_uint32_field() const +const std::array& KeyedCompleteTestType::array_uint32_field() const { return m_array_uint32_field; } @@ -8962,7 +8962,7 @@ const std::array& KeyedCompleteTestTyp * @brief This function returns a reference to member array_uint32_field * @return Reference to member array_uint32_field */ -std::array& KeyedCompleteTestType::array_uint32_field() +std::array& KeyedCompleteTestType::array_uint32_field() { return m_array_uint32_field; } @@ -8973,7 +8973,7 @@ std::array& KeyedCompleteTestType::arr * @param _array_int64_field New value to be copied in member array_int64_field */ void KeyedCompleteTestType::array_int64_field( - const std::array& _array_int64_field) + const std::array& _array_int64_field) { m_array_int64_field = _array_int64_field; } @@ -8983,7 +8983,7 @@ void KeyedCompleteTestType::array_int64_field( * @param _array_int64_field New value to be moved in member array_int64_field */ void KeyedCompleteTestType::array_int64_field( - std::array&& _array_int64_field) + std::array&& _array_int64_field) { m_array_int64_field = std::move(_array_int64_field); } @@ -8992,7 +8992,7 @@ void KeyedCompleteTestType::array_int64_field( * @brief This function returns a constant reference to member array_int64_field * @return Constant reference to member array_int64_field */ -const std::array& KeyedCompleteTestType::array_int64_field() const +const std::array& KeyedCompleteTestType::array_int64_field() const { return m_array_int64_field; } @@ -9001,7 +9001,7 @@ const std::array& KeyedCompleteTestType * @brief This function returns a reference to member array_int64_field * @return Reference to member array_int64_field */ -std::array& KeyedCompleteTestType::array_int64_field() +std::array& KeyedCompleteTestType::array_int64_field() { return m_array_int64_field; } @@ -9012,7 +9012,7 @@ std::array& KeyedCompleteTestType::arra * @param _array_uint64_field New value to be copied in member array_uint64_field */ void KeyedCompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) + const std::array& _array_uint64_field) { m_array_uint64_field = _array_uint64_field; } @@ -9022,7 +9022,7 @@ void KeyedCompleteTestType::array_uint64_field( * @param _array_uint64_field New value to be moved in member array_uint64_field */ void KeyedCompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) + std::array&& _array_uint64_field) { m_array_uint64_field = std::move(_array_uint64_field); } @@ -9031,7 +9031,7 @@ void KeyedCompleteTestType::array_uint64_field( * @brief This function returns a constant reference to member array_uint64_field * @return Constant reference to member array_uint64_field */ -const std::array& KeyedCompleteTestType::array_uint64_field() const +const std::array& KeyedCompleteTestType::array_uint64_field() const { return m_array_uint64_field; } @@ -9040,7 +9040,7 @@ const std::array& KeyedCompleteTestTyp * @brief This function returns a reference to member array_uint64_field * @return Reference to member array_uint64_field */ -std::array& KeyedCompleteTestType::array_uint64_field() +std::array& KeyedCompleteTestType::array_uint64_field() { return m_array_uint64_field; } @@ -9051,7 +9051,7 @@ std::array& KeyedCompleteTestType::arr * @param _array_float_field New value to be copied in member array_float_field */ void KeyedCompleteTestType::array_float_field( - const std::array& _array_float_field) + const std::array& _array_float_field) { m_array_float_field = _array_float_field; } @@ -9061,7 +9061,7 @@ void KeyedCompleteTestType::array_float_field( * @param _array_float_field New value to be moved in member array_float_field */ void KeyedCompleteTestType::array_float_field( - std::array&& _array_float_field) + std::array&& _array_float_field) { m_array_float_field = std::move(_array_float_field); } @@ -9070,7 +9070,7 @@ void KeyedCompleteTestType::array_float_field( * @brief This function returns a constant reference to member array_float_field * @return Constant reference to member array_float_field */ -const std::array& KeyedCompleteTestType::array_float_field() const +const std::array& KeyedCompleteTestType::array_float_field() const { return m_array_float_field; } @@ -9079,7 +9079,7 @@ const std::array& KeyedCompleteTestType:: * @brief This function returns a reference to member array_float_field * @return Reference to member array_float_field */ -std::array& KeyedCompleteTestType::array_float_field() +std::array& KeyedCompleteTestType::array_float_field() { return m_array_float_field; } @@ -9090,7 +9090,7 @@ std::array& KeyedCompleteTestType::array_ * @param _array_double_field New value to be copied in member array_double_field */ void KeyedCompleteTestType::array_double_field( - const std::array& _array_double_field) + const std::array& _array_double_field) { m_array_double_field = _array_double_field; } @@ -9100,7 +9100,7 @@ void KeyedCompleteTestType::array_double_field( * @param _array_double_field New value to be moved in member array_double_field */ void KeyedCompleteTestType::array_double_field( - std::array&& _array_double_field) + std::array&& _array_double_field) { m_array_double_field = std::move(_array_double_field); } @@ -9109,7 +9109,7 @@ void KeyedCompleteTestType::array_double_field( * @brief This function returns a constant reference to member array_double_field * @return Constant reference to member array_double_field */ -const std::array& KeyedCompleteTestType::array_double_field() const +const std::array& KeyedCompleteTestType::array_double_field() const { return m_array_double_field; } @@ -9118,7 +9118,7 @@ const std::array& KeyedCompleteTestType: * @brief This function returns a reference to member array_double_field * @return Reference to member array_double_field */ -std::array& KeyedCompleteTestType::array_double_field() +std::array& KeyedCompleteTestType::array_double_field() { return m_array_double_field; } @@ -9129,7 +9129,7 @@ std::array& KeyedCompleteTestType::array * @param _array_bool_field New value to be copied in member array_bool_field */ void KeyedCompleteTestType::array_bool_field( - const std::array& _array_bool_field) + const std::array& _array_bool_field) { m_array_bool_field = _array_bool_field; } @@ -9139,7 +9139,7 @@ void KeyedCompleteTestType::array_bool_field( * @param _array_bool_field New value to be moved in member array_bool_field */ void KeyedCompleteTestType::array_bool_field( - std::array&& _array_bool_field) + std::array&& _array_bool_field) { m_array_bool_field = std::move(_array_bool_field); } @@ -9148,7 +9148,7 @@ void KeyedCompleteTestType::array_bool_field( * @brief This function returns a constant reference to member array_bool_field * @return Constant reference to member array_bool_field */ -const std::array& KeyedCompleteTestType::array_bool_field() const +const std::array& KeyedCompleteTestType::array_bool_field() const { return m_array_bool_field; } @@ -9157,7 +9157,7 @@ const std::array& KeyedCompleteTestType::a * @brief This function returns a reference to member array_bool_field * @return Reference to member array_bool_field */ -std::array& KeyedCompleteTestType::array_bool_field() +std::array& KeyedCompleteTestType::array_bool_field() { return m_array_bool_field; } @@ -9168,7 +9168,7 @@ std::array& KeyedCompleteTestType::array_b * @param _array_enum_field New value to be copied in member array_enum_field */ void KeyedCompleteTestType::array_enum_field( - const std::array& _array_enum_field) + const std::array& _array_enum_field) { m_array_enum_field = _array_enum_field; } @@ -9178,7 +9178,7 @@ void KeyedCompleteTestType::array_enum_field( * @param _array_enum_field New value to be moved in member array_enum_field */ void KeyedCompleteTestType::array_enum_field( - std::array&& _array_enum_field) + std::array&& _array_enum_field) { m_array_enum_field = std::move(_array_enum_field); } @@ -9187,7 +9187,7 @@ void KeyedCompleteTestType::array_enum_field( * @brief This function returns a constant reference to member array_enum_field * @return Constant reference to member array_enum_field */ -const std::array& KeyedCompleteTestType::array_enum_field() const +const std::array& KeyedCompleteTestType::array_enum_field() const { return m_array_enum_field; } @@ -9196,7 +9196,7 @@ const std::array& KeyedCo * @brief This function returns a reference to member array_enum_field * @return Reference to member array_enum_field */ -std::array& KeyedCompleteTestType::array_enum_field() +std::array& KeyedCompleteTestType::array_enum_field() { return m_array_enum_field; } @@ -9207,7 +9207,7 @@ std::array& KeyedComplete * @param _array_enum2_field New value to be copied in member array_enum2_field */ void KeyedCompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) + const std::array& _array_enum2_field) { m_array_enum2_field = _array_enum2_field; } @@ -9217,7 +9217,7 @@ void KeyedCompleteTestType::array_enum2_field( * @param _array_enum2_field New value to be moved in member array_enum2_field */ void KeyedCompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) + std::array&& _array_enum2_field) { m_array_enum2_field = std::move(_array_enum2_field); } @@ -9226,7 +9226,7 @@ void KeyedCompleteTestType::array_enum2_field( * @brief This function returns a constant reference to member array_enum2_field * @return Constant reference to member array_enum2_field */ -const std::array& KeyedCompleteTestType::array_enum2_field() const +const std::array& KeyedCompleteTestType::array_enum2_field() const { return m_array_enum2_field; } @@ -9235,7 +9235,7 @@ const std::array& Keye * @brief This function returns a reference to member array_enum2_field * @return Reference to member array_enum2_field */ -std::array& KeyedCompleteTestType::array_enum2_field() +std::array& KeyedCompleteTestType::array_enum2_field() { return m_array_enum2_field; } @@ -9246,7 +9246,7 @@ std::array& KeyedCompl * @param _array_struct_field New value to be copied in member array_struct_field */ void KeyedCompleteTestType::array_struct_field( - const std::array& _array_struct_field) + const std::array& _array_struct_field) { m_array_struct_field = _array_struct_field; } @@ -9256,7 +9256,7 @@ void KeyedCompleteTestType::array_struct_field( * @param _array_struct_field New value to be moved in member array_struct_field */ void KeyedCompleteTestType::array_struct_field( - std::array&& _array_struct_field) + std::array&& _array_struct_field) { m_array_struct_field = std::move(_array_struct_field); } @@ -9265,7 +9265,7 @@ void KeyedCompleteTestType::array_struct_field( * @brief This function returns a constant reference to member array_struct_field * @return Constant reference to member array_struct_field */ -const std::array& KeyedCompleteTestType::array_struct_field() const +const std::array& KeyedCompleteTestType::array_struct_field() const { return m_array_struct_field; } @@ -9274,7 +9274,7 @@ const std::array& Ke * @brief This function returns a reference to member array_struct_field * @return Reference to member array_struct_field */ -std::array& KeyedCompleteTestType::array_struct_field() +std::array& KeyedCompleteTestType::array_struct_field() { return m_array_struct_field; } diff --git a/fastdds_python/test/types/test_modulesv1.h b/fastdds_python/test/types/test_modulesv1.h index c7812c30..e3bf4e8e 100644 --- a/fastdds_python/test/types/test_modulesv1.h +++ b/fastdds_python/test/types/test_modulesv1.h @@ -1214,26 +1214,26 @@ namespace eprosima { * @param _array_char_field New value to be copied in member array_char_field */ eProsima_user_DllExport void array_char_field( - const std::array& _array_char_field); + const std::array& _array_char_field); /*! * @brief This function moves the value in member array_char_field * @param _array_char_field New value to be moved in member array_char_field */ eProsima_user_DllExport void array_char_field( - std::array&& _array_char_field); + std::array&& _array_char_field); /*! * @brief This function returns a constant reference to member array_char_field * @return Constant reference to member array_char_field */ - eProsima_user_DllExport const std::array& array_char_field() const; + eProsima_user_DllExport const std::array& array_char_field() const; /*! * @brief This function returns a reference to member array_char_field * @return Reference to member array_char_field */ - eProsima_user_DllExport std::array& array_char_field(); + eProsima_user_DllExport std::array& array_char_field(); /*! @@ -1241,26 +1241,26 @@ namespace eprosima { * @param _array_uint8_field New value to be copied in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - const std::array& _array_uint8_field); + const std::array& _array_uint8_field); /*! * @brief This function moves the value in member array_uint8_field * @param _array_uint8_field New value to be moved in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - std::array&& _array_uint8_field); + std::array&& _array_uint8_field); /*! * @brief This function returns a constant reference to member array_uint8_field * @return Constant reference to member array_uint8_field */ - eProsima_user_DllExport const std::array& array_uint8_field() const; + eProsima_user_DllExport const std::array& array_uint8_field() const; /*! * @brief This function returns a reference to member array_uint8_field * @return Reference to member array_uint8_field */ - eProsima_user_DllExport std::array& array_uint8_field(); + eProsima_user_DllExport std::array& array_uint8_field(); /*! @@ -1268,26 +1268,26 @@ namespace eprosima { * @param _array_int16_field New value to be copied in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - const std::array& _array_int16_field); + const std::array& _array_int16_field); /*! * @brief This function moves the value in member array_int16_field * @param _array_int16_field New value to be moved in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - std::array&& _array_int16_field); + std::array&& _array_int16_field); /*! * @brief This function returns a constant reference to member array_int16_field * @return Constant reference to member array_int16_field */ - eProsima_user_DllExport const std::array& array_int16_field() const; + eProsima_user_DllExport const std::array& array_int16_field() const; /*! * @brief This function returns a reference to member array_int16_field * @return Reference to member array_int16_field */ - eProsima_user_DllExport std::array& array_int16_field(); + eProsima_user_DllExport std::array& array_int16_field(); /*! @@ -1295,26 +1295,26 @@ namespace eprosima { * @param _array_uint16_field New value to be copied in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - const std::array& _array_uint16_field); + const std::array& _array_uint16_field); /*! * @brief This function moves the value in member array_uint16_field * @param _array_uint16_field New value to be moved in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - std::array&& _array_uint16_field); + std::array&& _array_uint16_field); /*! * @brief This function returns a constant reference to member array_uint16_field * @return Constant reference to member array_uint16_field */ - eProsima_user_DllExport const std::array& array_uint16_field() const; + eProsima_user_DllExport const std::array& array_uint16_field() const; /*! * @brief This function returns a reference to member array_uint16_field * @return Reference to member array_uint16_field */ - eProsima_user_DllExport std::array& array_uint16_field(); + eProsima_user_DllExport std::array& array_uint16_field(); /*! @@ -1322,26 +1322,26 @@ namespace eprosima { * @param _array_int32_field New value to be copied in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - const std::array& _array_int32_field); + const std::array& _array_int32_field); /*! * @brief This function moves the value in member array_int32_field * @param _array_int32_field New value to be moved in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - std::array&& _array_int32_field); + std::array&& _array_int32_field); /*! * @brief This function returns a constant reference to member array_int32_field * @return Constant reference to member array_int32_field */ - eProsima_user_DllExport const std::array& array_int32_field() const; + eProsima_user_DllExport const std::array& array_int32_field() const; /*! * @brief This function returns a reference to member array_int32_field * @return Reference to member array_int32_field */ - eProsima_user_DllExport std::array& array_int32_field(); + eProsima_user_DllExport std::array& array_int32_field(); /*! @@ -1349,26 +1349,26 @@ namespace eprosima { * @param _array_uint32_field New value to be copied in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - const std::array& _array_uint32_field); + const std::array& _array_uint32_field); /*! * @brief This function moves the value in member array_uint32_field * @param _array_uint32_field New value to be moved in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - std::array&& _array_uint32_field); + std::array&& _array_uint32_field); /*! * @brief This function returns a constant reference to member array_uint32_field * @return Constant reference to member array_uint32_field */ - eProsima_user_DllExport const std::array& array_uint32_field() const; + eProsima_user_DllExport const std::array& array_uint32_field() const; /*! * @brief This function returns a reference to member array_uint32_field * @return Reference to member array_uint32_field */ - eProsima_user_DllExport std::array& array_uint32_field(); + eProsima_user_DllExport std::array& array_uint32_field(); /*! @@ -1376,26 +1376,26 @@ namespace eprosima { * @param _array_int64_field New value to be copied in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - const std::array& _array_int64_field); + const std::array& _array_int64_field); /*! * @brief This function moves the value in member array_int64_field * @param _array_int64_field New value to be moved in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - std::array&& _array_int64_field); + std::array&& _array_int64_field); /*! * @brief This function returns a constant reference to member array_int64_field * @return Constant reference to member array_int64_field */ - eProsima_user_DllExport const std::array& array_int64_field() const; + eProsima_user_DllExport const std::array& array_int64_field() const; /*! * @brief This function returns a reference to member array_int64_field * @return Reference to member array_int64_field */ - eProsima_user_DllExport std::array& array_int64_field(); + eProsima_user_DllExport std::array& array_int64_field(); /*! @@ -1403,26 +1403,26 @@ namespace eprosima { * @param _array_uint64_field New value to be copied in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - const std::array& _array_uint64_field); + const std::array& _array_uint64_field); /*! * @brief This function moves the value in member array_uint64_field * @param _array_uint64_field New value to be moved in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - std::array&& _array_uint64_field); + std::array&& _array_uint64_field); /*! * @brief This function returns a constant reference to member array_uint64_field * @return Constant reference to member array_uint64_field */ - eProsima_user_DllExport const std::array& array_uint64_field() const; + eProsima_user_DllExport const std::array& array_uint64_field() const; /*! * @brief This function returns a reference to member array_uint64_field * @return Reference to member array_uint64_field */ - eProsima_user_DllExport std::array& array_uint64_field(); + eProsima_user_DllExport std::array& array_uint64_field(); /*! @@ -1430,26 +1430,26 @@ namespace eprosima { * @param _array_float_field New value to be copied in member array_float_field */ eProsima_user_DllExport void array_float_field( - const std::array& _array_float_field); + const std::array& _array_float_field); /*! * @brief This function moves the value in member array_float_field * @param _array_float_field New value to be moved in member array_float_field */ eProsima_user_DllExport void array_float_field( - std::array&& _array_float_field); + std::array&& _array_float_field); /*! * @brief This function returns a constant reference to member array_float_field * @return Constant reference to member array_float_field */ - eProsima_user_DllExport const std::array& array_float_field() const; + eProsima_user_DllExport const std::array& array_float_field() const; /*! * @brief This function returns a reference to member array_float_field * @return Reference to member array_float_field */ - eProsima_user_DllExport std::array& array_float_field(); + eProsima_user_DllExport std::array& array_float_field(); /*! @@ -1457,26 +1457,26 @@ namespace eprosima { * @param _array_double_field New value to be copied in member array_double_field */ eProsima_user_DllExport void array_double_field( - const std::array& _array_double_field); + const std::array& _array_double_field); /*! * @brief This function moves the value in member array_double_field * @param _array_double_field New value to be moved in member array_double_field */ eProsima_user_DllExport void array_double_field( - std::array&& _array_double_field); + std::array&& _array_double_field); /*! * @brief This function returns a constant reference to member array_double_field * @return Constant reference to member array_double_field */ - eProsima_user_DllExport const std::array& array_double_field() const; + eProsima_user_DllExport const std::array& array_double_field() const; /*! * @brief This function returns a reference to member array_double_field * @return Reference to member array_double_field */ - eProsima_user_DllExport std::array& array_double_field(); + eProsima_user_DllExport std::array& array_double_field(); /*! @@ -1484,26 +1484,26 @@ namespace eprosima { * @param _array_bool_field New value to be copied in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - const std::array& _array_bool_field); + const std::array& _array_bool_field); /*! * @brief This function moves the value in member array_bool_field * @param _array_bool_field New value to be moved in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - std::array&& _array_bool_field); + std::array&& _array_bool_field); /*! * @brief This function returns a constant reference to member array_bool_field * @return Constant reference to member array_bool_field */ - eProsima_user_DllExport const std::array& array_bool_field() const; + eProsima_user_DllExport const std::array& array_bool_field() const; /*! * @brief This function returns a reference to member array_bool_field * @return Reference to member array_bool_field */ - eProsima_user_DllExport std::array& array_bool_field(); + eProsima_user_DllExport std::array& array_bool_field(); /*! @@ -1511,26 +1511,26 @@ namespace eprosima { * @param _array_enum_field New value to be copied in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - const std::array& _array_enum_field); + const std::array& _array_enum_field); /*! * @brief This function moves the value in member array_enum_field * @param _array_enum_field New value to be moved in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - std::array&& _array_enum_field); + std::array&& _array_enum_field); /*! * @brief This function returns a constant reference to member array_enum_field * @return Constant reference to member array_enum_field */ - eProsima_user_DllExport const std::array& array_enum_field() const; + eProsima_user_DllExport const std::array& array_enum_field() const; /*! * @brief This function returns a reference to member array_enum_field * @return Reference to member array_enum_field */ - eProsima_user_DllExport std::array& array_enum_field(); + eProsima_user_DllExport std::array& array_enum_field(); /*! @@ -1538,26 +1538,26 @@ namespace eprosima { * @param _array_enum2_field New value to be copied in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - const std::array& _array_enum2_field); + const std::array& _array_enum2_field); /*! * @brief This function moves the value in member array_enum2_field * @param _array_enum2_field New value to be moved in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - std::array&& _array_enum2_field); + std::array&& _array_enum2_field); /*! * @brief This function returns a constant reference to member array_enum2_field * @return Constant reference to member array_enum2_field */ - eProsima_user_DllExport const std::array& array_enum2_field() const; + eProsima_user_DllExport const std::array& array_enum2_field() const; /*! * @brief This function returns a reference to member array_enum2_field * @return Reference to member array_enum2_field */ - eProsima_user_DllExport std::array& array_enum2_field(); + eProsima_user_DllExport std::array& array_enum2_field(); /*! @@ -1565,26 +1565,26 @@ namespace eprosima { * @param _array_struct_field New value to be copied in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - const std::array& _array_struct_field); + const std::array& _array_struct_field); /*! * @brief This function moves the value in member array_struct_field * @param _array_struct_field New value to be moved in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - std::array&& _array_struct_field); + std::array&& _array_struct_field); /*! * @brief This function returns a constant reference to member array_struct_field * @return Constant reference to member array_struct_field */ - eProsima_user_DllExport const std::array& array_struct_field() const; + eProsima_user_DllExport const std::array& array_struct_field() const; /*! * @brief This function returns a reference to member array_struct_field * @return Reference to member array_struct_field */ - eProsima_user_DllExport std::array& array_struct_field(); + eProsima_user_DllExport std::array& array_struct_field(); /*! @@ -2426,20 +2426,20 @@ namespace eprosima { eprosima::test::Color m_enum_opt_field; eprosima::test::Material m_enum2_opt_field; eprosima::test::StructType m_struct_opt_field; - std::array m_array_char_field; - std::array m_array_uint8_field; - std::array m_array_int16_field; - std::array m_array_uint16_field; - std::array m_array_int32_field; - std::array m_array_uint32_field; - std::array m_array_int64_field; - std::array m_array_uint64_field; - std::array m_array_float_field; - std::array m_array_double_field; - std::array m_array_bool_field; - std::array m_array_enum_field; - std::array m_array_enum2_field; - std::array m_array_struct_field; + std::array m_array_char_field; + std::array m_array_uint8_field; + std::array m_array_int16_field; + std::array m_array_uint16_field; + std::array m_array_int32_field; + std::array m_array_uint32_field; + std::array m_array_int64_field; + std::array m_array_uint64_field; + std::array m_array_float_field; + std::array m_array_double_field; + std::array m_array_bool_field; + std::array m_array_enum_field; + std::array m_array_enum2_field; + std::array m_array_struct_field; std::vector m_bounded_sequence_char_field; std::vector m_bounded_sequence_uint8_field; std::vector m_bounded_sequence_int16_field; @@ -3188,26 +3188,26 @@ namespace eprosima { * @param _array_char_field New value to be copied in member array_char_field */ eProsima_user_DllExport void array_char_field( - const std::array& _array_char_field); + const std::array& _array_char_field); /*! * @brief This function moves the value in member array_char_field * @param _array_char_field New value to be moved in member array_char_field */ eProsima_user_DllExport void array_char_field( - std::array&& _array_char_field); + std::array&& _array_char_field); /*! * @brief This function returns a constant reference to member array_char_field * @return Constant reference to member array_char_field */ - eProsima_user_DllExport const std::array& array_char_field() const; + eProsima_user_DllExport const std::array& array_char_field() const; /*! * @brief This function returns a reference to member array_char_field * @return Reference to member array_char_field */ - eProsima_user_DllExport std::array& array_char_field(); + eProsima_user_DllExport std::array& array_char_field(); /*! @@ -3215,26 +3215,26 @@ namespace eprosima { * @param _array_uint8_field New value to be copied in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - const std::array& _array_uint8_field); + const std::array& _array_uint8_field); /*! * @brief This function moves the value in member array_uint8_field * @param _array_uint8_field New value to be moved in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - std::array&& _array_uint8_field); + std::array&& _array_uint8_field); /*! * @brief This function returns a constant reference to member array_uint8_field * @return Constant reference to member array_uint8_field */ - eProsima_user_DllExport const std::array& array_uint8_field() const; + eProsima_user_DllExport const std::array& array_uint8_field() const; /*! * @brief This function returns a reference to member array_uint8_field * @return Reference to member array_uint8_field */ - eProsima_user_DllExport std::array& array_uint8_field(); + eProsima_user_DllExport std::array& array_uint8_field(); /*! @@ -3242,26 +3242,26 @@ namespace eprosima { * @param _array_int16_field New value to be copied in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - const std::array& _array_int16_field); + const std::array& _array_int16_field); /*! * @brief This function moves the value in member array_int16_field * @param _array_int16_field New value to be moved in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - std::array&& _array_int16_field); + std::array&& _array_int16_field); /*! * @brief This function returns a constant reference to member array_int16_field * @return Constant reference to member array_int16_field */ - eProsima_user_DllExport const std::array& array_int16_field() const; + eProsima_user_DllExport const std::array& array_int16_field() const; /*! * @brief This function returns a reference to member array_int16_field * @return Reference to member array_int16_field */ - eProsima_user_DllExport std::array& array_int16_field(); + eProsima_user_DllExport std::array& array_int16_field(); /*! @@ -3269,26 +3269,26 @@ namespace eprosima { * @param _array_uint16_field New value to be copied in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - const std::array& _array_uint16_field); + const std::array& _array_uint16_field); /*! * @brief This function moves the value in member array_uint16_field * @param _array_uint16_field New value to be moved in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - std::array&& _array_uint16_field); + std::array&& _array_uint16_field); /*! * @brief This function returns a constant reference to member array_uint16_field * @return Constant reference to member array_uint16_field */ - eProsima_user_DllExport const std::array& array_uint16_field() const; + eProsima_user_DllExport const std::array& array_uint16_field() const; /*! * @brief This function returns a reference to member array_uint16_field * @return Reference to member array_uint16_field */ - eProsima_user_DllExport std::array& array_uint16_field(); + eProsima_user_DllExport std::array& array_uint16_field(); /*! @@ -3296,26 +3296,26 @@ namespace eprosima { * @param _array_int32_field New value to be copied in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - const std::array& _array_int32_field); + const std::array& _array_int32_field); /*! * @brief This function moves the value in member array_int32_field * @param _array_int32_field New value to be moved in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - std::array&& _array_int32_field); + std::array&& _array_int32_field); /*! * @brief This function returns a constant reference to member array_int32_field * @return Constant reference to member array_int32_field */ - eProsima_user_DllExport const std::array& array_int32_field() const; + eProsima_user_DllExport const std::array& array_int32_field() const; /*! * @brief This function returns a reference to member array_int32_field * @return Reference to member array_int32_field */ - eProsima_user_DllExport std::array& array_int32_field(); + eProsima_user_DllExport std::array& array_int32_field(); /*! @@ -3323,26 +3323,26 @@ namespace eprosima { * @param _array_uint32_field New value to be copied in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - const std::array& _array_uint32_field); + const std::array& _array_uint32_field); /*! * @brief This function moves the value in member array_uint32_field * @param _array_uint32_field New value to be moved in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - std::array&& _array_uint32_field); + std::array&& _array_uint32_field); /*! * @brief This function returns a constant reference to member array_uint32_field * @return Constant reference to member array_uint32_field */ - eProsima_user_DllExport const std::array& array_uint32_field() const; + eProsima_user_DllExport const std::array& array_uint32_field() const; /*! * @brief This function returns a reference to member array_uint32_field * @return Reference to member array_uint32_field */ - eProsima_user_DllExport std::array& array_uint32_field(); + eProsima_user_DllExport std::array& array_uint32_field(); /*! @@ -3350,26 +3350,26 @@ namespace eprosima { * @param _array_int64_field New value to be copied in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - const std::array& _array_int64_field); + const std::array& _array_int64_field); /*! * @brief This function moves the value in member array_int64_field * @param _array_int64_field New value to be moved in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - std::array&& _array_int64_field); + std::array&& _array_int64_field); /*! * @brief This function returns a constant reference to member array_int64_field * @return Constant reference to member array_int64_field */ - eProsima_user_DllExport const std::array& array_int64_field() const; + eProsima_user_DllExport const std::array& array_int64_field() const; /*! * @brief This function returns a reference to member array_int64_field * @return Reference to member array_int64_field */ - eProsima_user_DllExport std::array& array_int64_field(); + eProsima_user_DllExport std::array& array_int64_field(); /*! @@ -3377,26 +3377,26 @@ namespace eprosima { * @param _array_uint64_field New value to be copied in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - const std::array& _array_uint64_field); + const std::array& _array_uint64_field); /*! * @brief This function moves the value in member array_uint64_field * @param _array_uint64_field New value to be moved in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - std::array&& _array_uint64_field); + std::array&& _array_uint64_field); /*! * @brief This function returns a constant reference to member array_uint64_field * @return Constant reference to member array_uint64_field */ - eProsima_user_DllExport const std::array& array_uint64_field() const; + eProsima_user_DllExport const std::array& array_uint64_field() const; /*! * @brief This function returns a reference to member array_uint64_field * @return Reference to member array_uint64_field */ - eProsima_user_DllExport std::array& array_uint64_field(); + eProsima_user_DllExport std::array& array_uint64_field(); /*! @@ -3404,26 +3404,26 @@ namespace eprosima { * @param _array_float_field New value to be copied in member array_float_field */ eProsima_user_DllExport void array_float_field( - const std::array& _array_float_field); + const std::array& _array_float_field); /*! * @brief This function moves the value in member array_float_field * @param _array_float_field New value to be moved in member array_float_field */ eProsima_user_DllExport void array_float_field( - std::array&& _array_float_field); + std::array&& _array_float_field); /*! * @brief This function returns a constant reference to member array_float_field * @return Constant reference to member array_float_field */ - eProsima_user_DllExport const std::array& array_float_field() const; + eProsima_user_DllExport const std::array& array_float_field() const; /*! * @brief This function returns a reference to member array_float_field * @return Reference to member array_float_field */ - eProsima_user_DllExport std::array& array_float_field(); + eProsima_user_DllExport std::array& array_float_field(); /*! @@ -3431,26 +3431,26 @@ namespace eprosima { * @param _array_double_field New value to be copied in member array_double_field */ eProsima_user_DllExport void array_double_field( - const std::array& _array_double_field); + const std::array& _array_double_field); /*! * @brief This function moves the value in member array_double_field * @param _array_double_field New value to be moved in member array_double_field */ eProsima_user_DllExport void array_double_field( - std::array&& _array_double_field); + std::array&& _array_double_field); /*! * @brief This function returns a constant reference to member array_double_field * @return Constant reference to member array_double_field */ - eProsima_user_DllExport const std::array& array_double_field() const; + eProsima_user_DllExport const std::array& array_double_field() const; /*! * @brief This function returns a reference to member array_double_field * @return Reference to member array_double_field */ - eProsima_user_DllExport std::array& array_double_field(); + eProsima_user_DllExport std::array& array_double_field(); /*! @@ -3458,26 +3458,26 @@ namespace eprosima { * @param _array_bool_field New value to be copied in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - const std::array& _array_bool_field); + const std::array& _array_bool_field); /*! * @brief This function moves the value in member array_bool_field * @param _array_bool_field New value to be moved in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - std::array&& _array_bool_field); + std::array&& _array_bool_field); /*! * @brief This function returns a constant reference to member array_bool_field * @return Constant reference to member array_bool_field */ - eProsima_user_DllExport const std::array& array_bool_field() const; + eProsima_user_DllExport const std::array& array_bool_field() const; /*! * @brief This function returns a reference to member array_bool_field * @return Reference to member array_bool_field */ - eProsima_user_DllExport std::array& array_bool_field(); + eProsima_user_DllExport std::array& array_bool_field(); /*! @@ -3485,26 +3485,26 @@ namespace eprosima { * @param _array_enum_field New value to be copied in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - const std::array& _array_enum_field); + const std::array& _array_enum_field); /*! * @brief This function moves the value in member array_enum_field * @param _array_enum_field New value to be moved in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - std::array&& _array_enum_field); + std::array&& _array_enum_field); /*! * @brief This function returns a constant reference to member array_enum_field * @return Constant reference to member array_enum_field */ - eProsima_user_DllExport const std::array& array_enum_field() const; + eProsima_user_DllExport const std::array& array_enum_field() const; /*! * @brief This function returns a reference to member array_enum_field * @return Reference to member array_enum_field */ - eProsima_user_DllExport std::array& array_enum_field(); + eProsima_user_DllExport std::array& array_enum_field(); /*! @@ -3512,26 +3512,26 @@ namespace eprosima { * @param _array_enum2_field New value to be copied in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - const std::array& _array_enum2_field); + const std::array& _array_enum2_field); /*! * @brief This function moves the value in member array_enum2_field * @param _array_enum2_field New value to be moved in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - std::array&& _array_enum2_field); + std::array&& _array_enum2_field); /*! * @brief This function returns a constant reference to member array_enum2_field * @return Constant reference to member array_enum2_field */ - eProsima_user_DllExport const std::array& array_enum2_field() const; + eProsima_user_DllExport const std::array& array_enum2_field() const; /*! * @brief This function returns a reference to member array_enum2_field * @return Reference to member array_enum2_field */ - eProsima_user_DllExport std::array& array_enum2_field(); + eProsima_user_DllExport std::array& array_enum2_field(); /*! @@ -3539,26 +3539,26 @@ namespace eprosima { * @param _array_struct_field New value to be copied in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - const std::array& _array_struct_field); + const std::array& _array_struct_field); /*! * @brief This function moves the value in member array_struct_field * @param _array_struct_field New value to be moved in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - std::array&& _array_struct_field); + std::array&& _array_struct_field); /*! * @brief This function returns a constant reference to member array_struct_field * @return Constant reference to member array_struct_field */ - eProsima_user_DllExport const std::array& array_struct_field() const; + eProsima_user_DllExport const std::array& array_struct_field() const; /*! * @brief This function returns a reference to member array_struct_field * @return Reference to member array_struct_field */ - eProsima_user_DllExport std::array& array_struct_field(); + eProsima_user_DllExport std::array& array_struct_field(); /*! @@ -4401,20 +4401,20 @@ namespace eprosima { eprosima::test::Color m_enum_opt_field; eprosima::test::Material m_enum2_opt_field; eprosima::test::StructType m_struct_opt_field; - std::array m_array_char_field; - std::array m_array_uint8_field; - std::array m_array_int16_field; - std::array m_array_uint16_field; - std::array m_array_int32_field; - std::array m_array_uint32_field; - std::array m_array_int64_field; - std::array m_array_uint64_field; - std::array m_array_float_field; - std::array m_array_double_field; - std::array m_array_bool_field; - std::array m_array_enum_field; - std::array m_array_enum2_field; - std::array m_array_struct_field; + std::array m_array_char_field; + std::array m_array_uint8_field; + std::array m_array_int16_field; + std::array m_array_uint16_field; + std::array m_array_int32_field; + std::array m_array_uint32_field; + std::array m_array_int64_field; + std::array m_array_uint64_field; + std::array m_array_float_field; + std::array m_array_double_field; + std::array m_array_bool_field; + std::array m_array_enum_field; + std::array m_array_enum2_field; + std::array m_array_struct_field; std::vector m_bounded_sequence_char_field; std::vector m_bounded_sequence_uint8_field; std::vector m_bounded_sequence_int16_field; diff --git a/fastdds_python_examples/HelloWorldExample/HelloWorld.i b/fastdds_python_examples/HelloWorldExample/HelloWorld.i index 9194d041..5af81f0a 100644 --- a/fastdds_python_examples/HelloWorldExample/HelloWorld.i +++ b/fastdds_python_examples/HelloWorldExample/HelloWorld.i @@ -79,6 +79,7 @@ namespace swig { // Avoid a warning ignoring all but one %ignore HelloWorld::index(uint32_t&&); + // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this @@ -89,6 +90,7 @@ namespace swig { %ignore HelloWorld::message(std::string&&); + // Overloaded getter methods shadow each other and are equivalent in python // Const accesors produced constant enums instead of arrays/dictionaries when used // We ignore them to prevent this @@ -115,6 +117,7 @@ namespace swig { // Include the class interfaces %include "HelloWorld.h" +%include "HelloWorldv1.h" // Include the corresponding TopicDataType %include "HelloWorldPubSubTypes.i"