iLab Neuromorphic Robotics Toolkit
0.1
|
#include <nrt/Core/Typing/TypeTraits.H>
#include <boost/numeric/conversion/bounds.hpp>
#include <boost/numeric/conversion/is_subranged.hpp>
#include <boost/numeric/conversion/conversion_traits.hpp>
#include <nrt/Core/Typing/details/ConversionHelpers.H>
#include <cmath>
#include <nrt/Core/Typing/details/ConversionImpl.H>
// //////////////////////////////////////////////////////////////////////// // The iLab Neuromorphic Robotics Toolkit (NRT) // // Copyright 2010-2012 by the University of Southern California (USC) // // and the iLab at USC. // // // // iLab - University of Southern California // // Hedco Neurociences Building, Room HNB-10 // // Los Angeles, Ca 90089-2520 - USA // // // // See http://ilab.usc.edu for information about this project. // // //////////////////////////////////////////////////////////////////////// // This file is part of The iLab Neuromorphic Robotics Toolkit. // // // // The iLab Neuromorphic Robotics Toolkit is free software: you can // // redistribute it and/or modify it under the terms of the GNU General // // Public License as published by the Free Software Foundation, either // // version 3 of the License, or (at your option) any later version. // // // // The iLab Neuromorphic Robotics Toolkit is distributed in the hope // // that it will be useful, but WITHOUT ANY WARRANTY; without even the // // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // // PURPOSE. See the GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with The iLab Neuromorphic Robotics Toolkit. If not, see // // <http://www.gnu.org/licenses/>. // // ////////////////////////////////////////////////////////////////////////
Definition in file Conversion.H.
Go to the source code of this file.
Namespaces | |
nrt | |
Reserved namespace for NRT core classes and functions. | |
Functions | |
template<class dest_type , class source_type > | |
std::enable_if< not_subranged < dest_type, source_type > ::value, dest_type >::type | nrt::clamped_convert (source_type source) |
Perform a clamped-conversion from one type to another. | |
template<class dest_type , class source_type > | |
std::enable_if < not_subranged_round < dest_type, source_type > ::value, dest_type >::type | nrt::clamped_convert (source_type source) |
Perform a clamped-conversion from one type to another. | |
template<class dest_type , class source_type > | |
std::enable_if < subranged_signed< dest_type, source_type >::value, dest_type >::type | nrt::clamped_convert (source_type source) |
Perform a clamped-conversion from one type to another. | |
template<class dest_type , class source_type > | |
std::enable_if < subranged_unsigned < dest_type, source_type > ::value, dest_type >::type | nrt::clamped_convert (source_type source) |
Perform a clamped-conversion from one type to another. | |
template<class dest_type , class source_type > | |
std::enable_if < subranged_signed_unsigned < dest_type, source_type > ::value, dest_type >::type | nrt::clamped_convert (source_type source) |
Perform a clamped-conversion from one type to another. | |
template<class dest_type , class source_type > | |
std::enable_if < subranged_unsigned_signed < dest_type, source_type > ::value, dest_type >::type | nrt::clamped_convert (source_type source) |
Perform a clamped-conversion from one type to another. | |
template<class dest_type , class source_type > | |
std::enable_if < subranged_float< dest_type, source_type >::value, dest_type >::type | nrt::clamped_convert (source_type source) |
Perform a clamped-conversion from one type to another. | |
template<class dest_type , class source_type > | |
std::enable_if < subranged_float_round < dest_type, source_type > ::value, dest_type >::type | nrt::clamped_convert (source_type source) |
Perform a clamped-conversion from one type to another. | |