Skip to content

Commit

Permalink
fixup! Fixup codegen, add sgp-lite content
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 committed Oct 14, 2022
1 parent 7d6299e commit 48c716d
Show file tree
Hide file tree
Showing 6 changed files with 2,464 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/uit_emp/_codegen/pylib/_get_header_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@functools.cache
def get_header_content() -> typing.List[str]:

res = []
for header_path in iter_header_paths():
print(header_path)
echo = subprocess.run(
Expand All @@ -32,9 +33,8 @@ def get_header_content() -> typing.List[str]:
check=True,
capture_output=True,
).stderr.decode()
res = []
for line in header_content.splitlines():

for line in header_content.splitlines():
if "Empirical" in line:
if ' ' in line:
line = line.split()[1]
Expand Down
20 changes: 20 additions & 0 deletions include/uit_emp/config/config.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#pragma once
#ifndef UIT_EMP_CONFIG_CONFIG_HPP_INCLUDE
#define UIT_EMP_CONFIG_CONFIG_HPP_INCLUDE

#ifdef UIT_VENDORIZE_EMP
#include "../vendorization/push_uit_emp.hh"
#endif // #ifdef UIT_VENDORIZE_EMP

#include "../../../third-party/Empirical/include/emp/config/config.hpp"

#ifndef UIT_VENDORIZE_EMP
namespace emp {}
namespace uit_emp = emp;
#endif // #ifndef UIT_VENDORIZE_EMP

#ifdef UIT_VENDORIZE_EMP
#include "../vendorization/pop_uit_emp.hh"
#endif // #ifdef UIT_VENDORIZE_EMP

#endif // #ifndef UIT_EMP_CONFIG_CONFIG_HPP_INCLUDE
180 changes: 180 additions & 0 deletions include/uit_emp/vendorization/pop_headerguards.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,101 @@
#endif // #ifdef EMP_ASSERT_TRIGGER_HPP
#pragma pop_macro("EMP_ASSERT_TRIGGER_HPP")

#ifdef EMP_ASSOCIATIVE_ARRAY_CACHE_HPP
#define UIT_EMP_ASSOCIATIVE_ARRAY_CACHE_HPP_HEADERGUARD
#endif // #ifdef EMP_ASSOCIATIVE_ARRAY_CACHE_HPP
#pragma pop_macro("EMP_ASSOCIATIVE_ARRAY_CACHE_HPP")

#ifdef EMP_BASE_EMP_NAMESPACE_HPP
#define UIT_EMP_BASE_EMP_NAMESPACE_HPP_HEADERGUARD
#endif // #ifdef EMP_BASE_EMP_NAMESPACE_HPP
#pragma pop_macro("EMP_BASE_EMP_NAMESPACE_HPP")

#ifdef EMP_BITSET_UTILS_H
#define UIT_EMP_BITSET_UTILS_H_HEADERGUARD
#endif // #ifdef EMP_BITSET_UTILS_H
#pragma pop_macro("EMP_BITSET_UTILS_H")

#ifdef EMP_BIT_SET_HPP
#define UIT_EMP_BIT_SET_HPP_HEADERGUARD
#endif // #ifdef EMP_BIT_SET_HPP
#pragma pop_macro("EMP_BIT_SET_HPP")

#ifdef EMP_BIT_VECTOR_H
#define UIT_EMP_BIT_VECTOR_H_HEADERGUARD
#endif // #ifdef EMP_BIT_VECTOR_H
#pragma pop_macro("EMP_BIT_VECTOR_H")

#ifdef EMP_CACHE_H
#define UIT_EMP_CACHE_H_HEADERGUARD
#endif // #ifdef EMP_CACHE_H
#pragma pop_macro("EMP_CACHE_H")

#ifdef EMP_CONFIG_H
#define UIT_EMP_CONFIG_H_HEADERGUARD
#endif // #ifdef EMP_CONFIG_H
#pragma pop_macro("EMP_CONFIG_H")

#ifdef EMP_CONFIG_MANAGER_H
#define UIT_EMP_CONFIG_MANAGER_H_HEADERGUARD
#endif // #ifdef EMP_CONFIG_MANAGER_H
#pragma pop_macro("EMP_CONFIG_MANAGER_H")

#ifdef EMP_CONST_H
#define UIT_EMP_CONST_H_HEADERGUARD
#endif // #ifdef EMP_CONST_H
#pragma pop_macro("EMP_CONST_H")

#ifdef EMP_CONTIGUOUS_STREAM_H
#define UIT_EMP_CONTIGUOUS_STREAM_H_HEADERGUARD
#endif // #ifdef EMP_CONTIGUOUS_STREAM_H
#pragma pop_macro("EMP_CONTIGUOUS_STREAM_H")

#ifdef EMP_DATA_FILE_H
#define UIT_EMP_DATA_FILE_H_HEADERGUARD
#endif // #ifdef EMP_DATA_FILE_H
#pragma pop_macro("EMP_DATA_FILE_H")

#ifdef EMP_DATA_NODE_H
#define UIT_EMP_DATA_NODE_H_HEADERGUARD
#endif // #ifdef EMP_DATA_NODE_H
#pragma pop_macro("EMP_DATA_NODE_H")

#ifdef EMP_DEPOSITORY_ENTRY_HPP
#define UIT_EMP_DEPOSITORY_ENTRY_HPP_HEADERGUARD
#endif // #ifdef EMP_DEPOSITORY_ENTRY_HPP
#pragma pop_macro("EMP_DEPOSITORY_ENTRY_HPP")

#ifdef EMP_DISTRIBUTION_H
#define UIT_EMP_DISTRIBUTION_H_HEADERGUARD
#endif // #ifdef EMP_DISTRIBUTION_H
#pragma pop_macro("EMP_DISTRIBUTION_H")

#ifdef EMP_ERRORS_H
#define UIT_EMP_ERRORS_H_HEADERGUARD
#endif // #ifdef EMP_ERRORS_H
#pragma pop_macro("EMP_ERRORS_H")

#ifdef EMP_FUNCTION_SET_H
#define UIT_EMP_FUNCTION_SET_H_HEADERGUARD
#endif // #ifdef EMP_FUNCTION_SET_H
#pragma pop_macro("EMP_FUNCTION_SET_H")

#ifdef EMP_HASH_NAMIFY_H
#define UIT_EMP_HASH_NAMIFY_H_HEADERGUARD
#endif // #ifdef EMP_HASH_NAMIFY_H
#pragma pop_macro("EMP_HASH_NAMIFY_H")

#ifdef EMP_HASH_UTILS_H
#define UIT_EMP_HASH_UTILS_H_HEADERGUARD
#endif // #ifdef EMP_HASH_UTILS_H
#pragma pop_macro("EMP_HASH_UTILS_H")

#ifdef EMP_INDEX_MAP_H
#define UIT_EMP_INDEX_MAP_H_HEADERGUARD
#endif // #ifdef EMP_INDEX_MAP_H
#pragma pop_macro("EMP_INDEX_MAP_H")

#ifdef EMP_IS_STREAMABLE_HPP
#define UIT_EMP_IS_STREAMABLE_HPP_HEADERGUARD
#endif // #ifdef EMP_IS_STREAMABLE_HPP
Expand All @@ -45,6 +135,36 @@
#endif // #ifdef EMP_MACRO_MATH_H
#pragma pop_macro("EMP_MACRO_MATH_H")

#ifdef EMP_MAP_H
#define UIT_EMP_MAP_H_HEADERGUARD
#endif // #ifdef EMP_MAP_H
#pragma pop_macro("EMP_MAP_H")

#ifdef EMP_MAP_PROXY_H
#define UIT_EMP_MAP_PROXY_H_HEADERGUARD
#endif // #ifdef EMP_MAP_PROXY_H
#pragma pop_macro("EMP_MAP_PROXY_H")

#ifdef EMP_MAP_UTILS_H
#define UIT_EMP_MAP_UTILS_H_HEADERGUARD
#endif // #ifdef EMP_MAP_UTILS_H
#pragma pop_macro("EMP_MAP_UTILS_H")

#ifdef EMP_MATCH_BIN_METRICS_H
#define UIT_EMP_MATCH_BIN_METRICS_H_HEADERGUARD
#endif // #ifdef EMP_MATCH_BIN_METRICS_H
#pragma pop_macro("EMP_MATCH_BIN_METRICS_H")

#ifdef EMP_MATCH_DEPOSITORY_HPP
#define UIT_EMP_MATCH_DEPOSITORY_HPP_HEADERGUARD
#endif // #ifdef EMP_MATCH_DEPOSITORY_HPP
#pragma pop_macro("EMP_MATCH_DEPOSITORY_HPP")

#ifdef EMP_MATH_H
#define UIT_EMP_MATH_H_HEADERGUARD
#endif // #ifdef EMP_MATH_H
#pragma pop_macro("EMP_MATH_H")

#ifdef EMP_META_H
#define UIT_EMP_META_H_HEADERGUARD
#endif // #ifdef EMP_META_H
Expand All @@ -55,21 +175,61 @@
#endif // #ifdef EMP_NATIVE_ASSERT_TRIGGER_HPP
#pragma pop_macro("EMP_NATIVE_ASSERT_TRIGGER_HPP")

#ifdef EMP_NULLSTREAM_H
#define UIT_EMP_NULLSTREAM_H_HEADERGUARD
#endif // #ifdef EMP_NULLSTREAM_H
#pragma pop_macro("EMP_NULLSTREAM_H")

#ifdef EMP_OPTIONAL_H
#define UIT_EMP_OPTIONAL_H_HEADERGUARD
#endif // #ifdef EMP_OPTIONAL_H
#pragma pop_macro("EMP_OPTIONAL_H")

#ifdef EMP_PLUS_COUNTDOWN_REGULATOR_HPP
#define UIT_EMP_PLUS_COUNTDOWN_REGULATOR_HPP_HEADERGUARD
#endif // #ifdef EMP_PLUS_COUNTDOWN_REGULATOR_HPP
#pragma pop_macro("EMP_PLUS_COUNTDOWN_REGULATOR_HPP")

#ifdef EMP_PTR_H
#define UIT_EMP_PTR_H_HEADERGUARD
#endif // #ifdef EMP_PTR_H
#pragma pop_macro("EMP_PTR_H")

#ifdef EMP_QUEUECACHE_H
#define UIT_EMP_QUEUECACHE_H_HEADERGUARD
#endif // #ifdef EMP_QUEUECACHE_H
#pragma pop_macro("EMP_QUEUECACHE_H")

#ifdef EMP_RANDOM_H
#define UIT_EMP_RANDOM_H_HEADERGUARD
#endif // #ifdef EMP_RANDOM_H
#pragma pop_macro("EMP_RANDOM_H")

#ifdef EMP_RANDOM_UTILS_H
#define UIT_EMP_RANDOM_UTILS_H_HEADERGUARD
#endif // #ifdef EMP_RANDOM_UTILS_H
#pragma pop_macro("EMP_RANDOM_UTILS_H")

#ifdef EMP_RANGE_H
#define UIT_EMP_RANGE_H_HEADERGUARD
#endif // #ifdef EMP_RANGE_H
#pragma pop_macro("EMP_RANGE_H")

#ifdef EMP_RANKED_SELECTOR_HPP
#define UIT_EMP_RANKED_SELECTOR_HPP_HEADERGUARD
#endif // #ifdef EMP_RANKED_SELECTOR_HPP
#pragma pop_macro("EMP_RANKED_SELECTOR_HPP")

#ifdef EMP_REFLECTION_H
#define UIT_EMP_REFLECTION_H_HEADERGUARD
#endif // #ifdef EMP_REFLECTION_H
#pragma pop_macro("EMP_REFLECTION_H")

#ifdef EMP_SMALL_VECTOR_HPP
#define UIT_EMP_SMALL_VECTOR_HPP_HEADERGUARD
#endif // #ifdef EMP_SMALL_VECTOR_HPP
#pragma pop_macro("EMP_SMALL_VECTOR_HPP")

#ifdef EMP_STRING_TYPE_H
#define UIT_EMP_STRING_TYPE_H_HEADERGUARD
#endif // #ifdef EMP_STRING_TYPE_H
Expand All @@ -80,6 +240,11 @@
#endif // #ifdef EMP_STRING_UTILS_H
#pragma pop_macro("EMP_STRING_UTILS_H")

#ifdef EMP_TUPLE_UTILS_H
#define UIT_EMP_TUPLE_UTILS_H_HEADERGUARD
#endif // #ifdef EMP_TUPLE_UTILS_H
#pragma pop_macro("EMP_TUPLE_UTILS_H")

#ifdef EMP_TYPE_ID_H
#define UIT_EMP_TYPE_ID_H_HEADERGUARD
#endif // #ifdef EMP_TYPE_ID_H
Expand All @@ -95,6 +260,21 @@
#endif // #ifdef EMP_TYPE_TRAITS_H
#pragma pop_macro("EMP_TYPE_TRAITS_H")

#ifdef EMP_UNORDERED_INDEX_MAP_H
#define UIT_EMP_UNORDERED_INDEX_MAP_H_HEADERGUARD
#endif // #ifdef EMP_UNORDERED_INDEX_MAP_H
#pragma pop_macro("EMP_UNORDERED_INDEX_MAP_H")

#ifdef EMP_UNORDERED_MAP_H
#define UIT_EMP_UNORDERED_MAP_H_HEADERGUARD
#endif // #ifdef EMP_UNORDERED_MAP_H
#pragma pop_macro("EMP_UNORDERED_MAP_H")

#ifdef EMP_VAL_PACK_H
#define UIT_EMP_VAL_PACK_H_HEADERGUARD
#endif // #ifdef EMP_VAL_PACK_H
#pragma pop_macro("EMP_VAL_PACK_H")

#ifdef EMP_VECTOR_H
#define UIT_EMP_VECTOR_H_HEADERGUARD
#endif // #ifdef EMP_VECTOR_H
Expand Down
Loading

0 comments on commit 48c716d

Please sign in to comment.