-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Jackson <[email protected]>
- Loading branch information
1 parent
e8e6b91
commit 0b8dc45
Showing
7 changed files
with
63 additions
and
25 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
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,28 @@ | ||
|
||
#include "DataTypeUtilities.hpp" | ||
|
||
namespace nx::core | ||
{ | ||
const std::set<DataType>& GetAllDataTypes() | ||
{ | ||
static const DataTypeSetType dataTypes = {nx::core::DataType::int8, nx::core::DataType::uint8, nx::core::DataType::int16, nx::core::DataType::uint16, | ||
nx::core::DataType::int32, nx::core::DataType::uint32, nx::core::DataType::int64, nx::core::DataType::uint64, | ||
nx::core::DataType::float32, nx::core::DataType::float64, nx::core::DataType::boolean}; | ||
return dataTypes; | ||
} | ||
|
||
const std::set<DataType>& GetAllNumericTypes() | ||
{ | ||
static const DataTypeSetType dataTypes = {nx::core::DataType::int8, nx::core::DataType::uint8, nx::core::DataType::int16, nx::core::DataType::uint16, nx::core::DataType::int32, | ||
nx::core::DataType::uint32, nx::core::DataType::int64, nx::core::DataType::uint64, nx::core::DataType::float32, nx::core::DataType::float64}; | ||
return dataTypes; | ||
} | ||
|
||
const std::set<DataType>& GetIntegerDataTypes() | ||
{ | ||
static const DataTypeSetType dataTypes = {nx::core::DataType::int8, nx::core::DataType::uint8, nx::core::DataType::int16, nx::core::DataType::uint16, | ||
nx::core::DataType::int32, nx::core::DataType::uint32, nx::core::DataType::int64, nx::core::DataType::uint64}; | ||
return dataTypes; | ||
} | ||
|
||
} // namespace nx::core |
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,28 @@ | ||
#pragma once | ||
|
||
#include "simplnx/Common/Types.hpp" | ||
#include "simplnx/simplnx_export.hpp" | ||
|
||
#include <set> | ||
|
||
namespace nx::core | ||
{ | ||
|
||
using DataTypeSetType = std::set<DataType>; | ||
|
||
/** | ||
* @brief | ||
*/ | ||
SIMPLNX_EXPORT const DataTypeSetType& GetAllDataTypes(); | ||
|
||
/** | ||
* @brief | ||
*/ | ||
SIMPLNX_EXPORT const DataTypeSetType& GetAllNumericTypes(); | ||
|
||
/** | ||
* @brief | ||
*/ | ||
SIMPLNX_EXPORT const DataTypeSetType& GetIntegerDataTypes(); | ||
|
||
}; // namespace nx::core |
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