-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix not being able to include multiple flatdata schemas if they use t…
…he same multivector bit width (#224) * Move __builtin into the same namespace as the archive using it Signed-off-by: Christian Vetter <[email protected]> * Adjust README Signed-off-by: Christian Vetter <[email protected]>
- Loading branch information
Showing
17 changed files
with
629 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace test_structures2 { | ||
|
||
struct AStruct { | ||
value : u64 : 8; | ||
} | ||
|
||
// A 1:1 copy of the same multivector as in test-structures, makes sure we do not have clashes in builtins | ||
archive SimpleResources { | ||
multivector_resource: multivector< 33, AStruct >; | ||
} | ||
|
||
} // namespace test_structures2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
flatdata-generator/tests/generators/cpp_expectations/archives/multivector.h.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
using DataType = flatdata::MultiArrayView< ::_builtin::multivector::IndexType8, ::n::S, ::n::T >; | ||
using DataType = flatdata::MultiArrayView< ::n::_builtin::multivector::IndexType8, ::n::S, ::n::T >; | ||
const DataType& data( ) const; | ||
|
||
using OptionalDataType = flatdata::MultiArrayView< ::_builtin::multivector::IndexType16, ::n::S, ::n::T >; | ||
using OptionalDataType = flatdata::MultiArrayView< ::n::_builtin::multivector::IndexType16, ::n::S, ::n::T >; | ||
const boost::optional< OptionalDataType >& optional_data( ) const; | ||
|
||
using DataU64IndexType = flatdata::MultiArrayView< ::_builtin::multivector::IndexType64, ::n::S, ::n::T >; | ||
using DataU64IndexType = flatdata::MultiArrayView< ::n::_builtin::multivector::IndexType64, ::n::S, ::n::T >; | ||
const DataU64IndexType& data_u64_index( ) const; |
12 changes: 6 additions & 6 deletions
12
flatdata-generator/tests/generators/cpp_expectations/archives/multivector.h.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
using DataType = flatdata::MultiVector< ::_builtin::multivector::IndexType8, ::n::S, ::n::T >; | ||
using DataReaderType = flatdata::MultiArrayView< ::_builtin::multivector::IndexType8, ::n::S, ::n::T >; | ||
using DataType = flatdata::MultiVector< ::n::_builtin::multivector::IndexType8, ::n::S, ::n::T >; | ||
using DataReaderType = flatdata::MultiArrayView< ::n::_builtin::multivector::IndexType8, ::n::S, ::n::T >; | ||
DataType start_data( ); | ||
|
||
using OptionalDataType = flatdata::MultiVector< ::_builtin::multivector::IndexType16, ::n::S, ::n::T >; | ||
using OptionalDataReaderType = flatdata::MultiArrayView< ::_builtin::multivector::IndexType16, ::n::S, ::n::T >; | ||
using OptionalDataType = flatdata::MultiVector< ::n::_builtin::multivector::IndexType16, ::n::S, ::n::T >; | ||
using OptionalDataReaderType = flatdata::MultiArrayView< ::n::_builtin::multivector::IndexType16, ::n::S, ::n::T >; | ||
OptionalDataType start_optional_data( ); | ||
|
||
using DataU64IndexType = flatdata::MultiVector< ::_builtin::multivector::IndexType64, ::n::S, ::n::T >; | ||
using DataU64IndexReaderType = flatdata::MultiArrayView< ::_builtin::multivector::IndexType64, ::n::S, ::n::T >; | ||
using DataU64IndexType = flatdata::MultiVector< ::n::_builtin::multivector::IndexType64, ::n::S, ::n::T >; | ||
using DataU64IndexReaderType = flatdata::MultiArrayView< ::n::_builtin::multivector::IndexType64, ::n::S, ::n::T >; | ||
DataU64IndexType start_data_u64_index( ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.