This file contains hidden or 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
| #pragma once | |
| #include <Furrovine++/integral_type.h> | |
| #include <Furrovine++/direct.h> | |
| namespace Furrovine { | |
| namespace detail { | |
| template <std::size_t n, std::size_t m> | |
| struct t_pow { |
This file contains hidden or 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
| template <typename T> | |
| inlinealways T pi( ) { | |
| const static long double p = 3.1415926535897932384626433832795028841971693; | |
| return static_cast<T>( p ); | |
| } | |
| template <typename T> | |
| inlinealways T two_pi( ) { | |
| return static_cast<T>( pi<long double>( ) * 2 ); | |
| } |
This file contains hidden or 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
| #pragma once | |
| #include <Furrovine++/unqualified.h> | |
| #include <tuple> | |
| namespace Furrovine { | |
| template <std::size_t... I> | |
| struct indices { typedef indices type; }; |
This file contains hidden or 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
| void ThreadPool::QueueWork( TWork item ) { | |
| static const std::size_t n = 256; | |
| typedef fixed_vector<proxy_cost_t, n> container_t; | |
| std::lock_guard<std::mutex> lockguard( additionalworklock ); | |
| container_t workingcosts( threads.size( ) ); | |
| for ( std::size_t i = 0; i < workingcosts.size( ); ++i ) { | |
| workingcosts[ i ].first = costs[ i ].id; | |
| workingcosts[ i ].second = costs[ i ].cost; | |
| } |
This file contains hidden or 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
| T& value( ) const { | |
| typedef decltype( std::addressof( storage ) ) storage_address_t; | |
| typedef typename std::conditional<std::is_const<T>::value, const void, void>::type void_t; | |
| typedef typename std::remove_const<storage_address_t>::type address_t; | |
| return *static_cast<T*>( static_cast<void_t*>( const_cast<address_t>( std::addressof( storage ) ) ) ); | |
| } |
This file contains hidden or 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
| bool present; | |
| struct storage_t { | |
| T& ref; | |
| } storage; | |
| template <typename... Tn> | |
| void place( Tn&&... argn ) { | |
| assert( !present ); | |
| unchecked_place( std::forward<Tn>( argn )... ); | |
| } |
This file contains hidden or 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
| skip file "C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\x86_64-w64-mingw32\include\accctrl.h" | |
| skip file "C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\x86_64-w64-mingw32\include\aclapi.h" | |
| skip file "C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\x86_64-w64-mingw32\include\aclui.h" | |
| skip file "C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\x86_64-w64-mingw32\include\activation.h" | |
| skip file "C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\x86_64-w64-mingw32\include\activaut.h" | |
| skip file "C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\x86_64-w64-mingw32\include\activecf.h" | |
| skip file "C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\x86_64-w64-mingw32\include\activeds.h" | |
| skip file "C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\x86_64-w64-mingw32\include\activprof.h" | |
| skip file "C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\min |
This file contains hidden or 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
| SeparableKernelFilter( std::initializer_list<float> kx, std::initializer_list<float> ky ) | |
| : SeparableKernelFilter( std::move( kx ), std::move( ky ), dummy ) { | |
| } | |
| template <typename Tx, typename Ty> | |
| SeparableKernelFilter ( Tx&& xkern, Ty&& ykern, dummy_t = dummy ) { | |
| for ( auto& x : xkern ) { | |
| xkernel.push_back( static_cast<float>( x ) ); | |
| } | |
| for ( auto& y : ykern ) { |
This file contains hidden or 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
| #include <sol/state.hpp> | |
| #include <sol/lua_function.hpp> | |
| #include <sol/demangle.hpp> | |
| #include <vector> | |
| namespace sol { | |
| template <typename... Tn> | |
| struct constructors { }; |
This file contains hidden or 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
| namespace sol { | |
| template <typename... Tn> | |
| struct constructors { }; | |
| template <typename T> | |
| class lua_class { | |
| public: | |
| static const std::string classname; | |
| static const std::string meta; |