mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Added indirect_vector
This commit is contained in:
parent
ad165b34ee
commit
87b202b27f
1599
include/etl/indirect_vector.h
Normal file
1599
include/etl/indirect_vector.h
Normal file
File diff suppressed because it is too large
Load Diff
@ -211,6 +211,7 @@
|
||||
<Unit filename="../../include/etl/hash.h" />
|
||||
<Unit filename="../../include/etl/icache.h" />
|
||||
<Unit filename="../../include/etl/ihash.h" />
|
||||
<Unit filename="../../include/etl/indirect_vector.h" />
|
||||
<Unit filename="../../include/etl/instance_count.h" />
|
||||
<Unit filename="../../include/etl/integral_limits.h" />
|
||||
<Unit filename="../../include/etl/intrusive_forward_list.h" />
|
||||
@ -393,6 +394,7 @@
|
||||
<Unit filename="../test_function.cpp" />
|
||||
<Unit filename="../test_functional.cpp" />
|
||||
<Unit filename="../test_hash.cpp" />
|
||||
<Unit filename="../test_indirect_vector.cpp" />
|
||||
<Unit filename="../test_instance_count.cpp" />
|
||||
<Unit filename="../test_integral_limits.cpp" />
|
||||
<Unit filename="../test_intrusive_forward_list.cpp" />
|
||||
|
||||
10
test/data.h
10
test/data.h
@ -77,6 +77,11 @@ public:
|
||||
return !(value < other.value);
|
||||
}
|
||||
|
||||
static bool are_identical(const TestDataDC& lhs, const TestDataDC& rhs)
|
||||
{
|
||||
return (lhs.value == rhs.value) && (lhs.index == rhs.index);
|
||||
}
|
||||
|
||||
T value;
|
||||
int index;
|
||||
};
|
||||
@ -137,6 +142,11 @@ public:
|
||||
return !(value < other.value);
|
||||
}
|
||||
|
||||
static bool are_identical(const TestDataNDC& lhs, const TestDataNDC& rhs)
|
||||
{
|
||||
return (lhs.value == rhs.value) && (lhs.index == rhs.index);
|
||||
}
|
||||
|
||||
T value;
|
||||
int index;
|
||||
};
|
||||
|
||||
@ -70,6 +70,7 @@ SOFTWARE.
|
||||
#define ETL_POLYMORPHIC_STRINGS
|
||||
#define ETL_POLYMORPHIC_POOL
|
||||
#define ETL_POLYMORPHIC_VECTOR
|
||||
#define ETL_POLYMORPHIC_INDIRECT_VECTOR
|
||||
|
||||
//#define ETL_POLYMORPHIC_CONTAINERS
|
||||
|
||||
|
||||
1567
test/test_indirect_vector.cpp
Normal file
1567
test/test_indirect_vector.cpp
Normal file
File diff suppressed because it is too large
Load Diff
@ -457,6 +457,7 @@
|
||||
<ClInclude Include="..\..\include\etl\fsm.h" />
|
||||
<ClInclude Include="..\..\include\etl\fsm_generator.h" />
|
||||
<ClInclude Include="..\..\include\etl\callback_service.h" />
|
||||
<ClInclude Include="..\..\include\etl\indirect_vector.h" />
|
||||
<ClInclude Include="..\..\include\etl\largest_generator.h" />
|
||||
<ClInclude Include="..\..\include\etl\absolute.h" />
|
||||
<ClInclude Include="..\..\include\etl\macros.h" />
|
||||
@ -672,6 +673,7 @@
|
||||
<ClCompile Include="..\test_delegate_service.cpp" />
|
||||
<ClCompile Include="..\test_forward_list_shared_pool.cpp" />
|
||||
<ClCompile Include="..\test_bit_stream.cpp" />
|
||||
<ClCompile Include="..\test_indirect_vector.cpp" />
|
||||
<ClCompile Include="..\test_list_shared_pool.cpp" />
|
||||
<ClCompile Include="..\test_multi_array.cpp" />
|
||||
<ClCompile Include="..\test_no_stl_algorithm.cpp" />
|
||||
|
||||
@ -786,6 +786,9 @@
|
||||
<ClInclude Include="..\..\include\etl\stl\choose_namespace.h">
|
||||
<Filter>ETL\STL</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\etl\indirect_vector.h">
|
||||
<Filter>ETL\Containers</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\main.cpp">
|
||||
@ -1241,6 +1244,9 @@
|
||||
<ClCompile Include="..\test_compiler_settings.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\test_indirect_vector.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\library.properties">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user