-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement return data converter for bp::object return types, i.e. cre…
…ating Python object arrays as output.
- Loading branch information
Martin Wolf
committed
Sep 12, 2014
1 parent
210bdee
commit 8b81fc4
Showing
4 changed files
with
184 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* $Id$ | ||
* | ||
* Copyright (C) | ||
* 2014 - $Date$ | ||
* Martin Wolf <[email protected]> | ||
* | ||
* \file boost/numpy/mpl/is_type_of.hpp | ||
* \version $Revision$ | ||
* \date $Date$ | ||
* \author Martin Wolf <[email protected]> | ||
* | ||
* \brief This file defines a MPL template for checking if a type T is the same | ||
* as type U using an unary metafunction for checking. | ||
* | ||
* This file is distributed under the Boost Software License, | ||
* Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
* http://www.boost.org/LICENSE_1_0.txt). | ||
*/ | ||
#ifndef BOOST_NUMPY_MPL_IS_TYPE_OF_HPP_INCLUDED | ||
#define BOOST_NUMPY_MPL_IS_TYPE_OF_HPP_INCLUDED | ||
|
||
#include <boost/type_traits/is_same.hpp> | ||
|
||
namespace boost { | ||
namespace numpy { | ||
namespace mpl { | ||
|
||
template <class U> | ||
struct is_type_of | ||
{ | ||
template <class T> | ||
struct apply | ||
{ | ||
typedef typename is_same<T, U>::type | ||
type; | ||
}; | ||
}; | ||
|
||
}// namespace mpl | ||
}// namespace numpy | ||
}// namespace boost | ||
|
||
#endif // ! BOOST_NUMPY_MPL_IS_TYPE_OF_HPP_INCLUDED |