/** * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related documentation outside the terms of the EULA * is strictly prohibited. * */ #ifndef NV_UTIL_NPP_SIGNALS_CPU_H #define NV_UTIL_NPP_SIGNALS_CPU_H #include "Signal.h" #include "SignalAllocatorsCPU.h" #include "Exceptions.h" #include namespace npp { template class SignalCPU: public npp::SignalTemplate { public: typedef typename npp::SignalTemplate::tData tData; SignalCPU() { ; } SignalCPU(size_t nSize): SignalTemplate(nSize) { ; } SignalCPU(const SignalCPU &rSignal): SignalTemplate(rSignal) { ; } virtual ~SignalCPU() { ; } SignalCPU & operator= (const SignalCPU &rSignal) { SignalTemplate::operator= (rSignal); return *this; } tData & operator [](unsigned int i) { return *SignalTemplate::values(i); } tData operator [](unsigned int i) const { return *SignalTemplate::values(i); } }; typedef SignalCPU > SignalCPU_8u; typedef SignalCPU > SignalCPU_32s; typedef SignalCPU > SignalCPU_16s; typedef SignalCPU > SignalCPU_16sc; typedef SignalCPU > SignalCPU_32sc; typedef SignalCPU > SignalCPU_32f; typedef SignalCPU > SignalCPU_32fc; typedef SignalCPU > SignalCPU_64s; typedef SignalCPU > SignalCPU_64sc; typedef SignalCPU > SignalCPU_64f; typedef SignalCPU > SignalCPU_64fc; } // npp namespace #endif // NV_UTIL_NPP_SIGNALS_CPU_H