/* * Advanced Simulation Library * * Copyright 2015 Avtech Scientific * * * This file is part of Advanced Simulation Library (ASL). * * ASL is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, version 3 of the License. * * ASL 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 Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with ASL. If not, see . * */ #include "aclVariableSP.h" #include "../aclUtilities.h" #include "../aclTypesList.h" #include "../aclHardware.h" namespace acl { template <> unsigned int VariableSP::id(0); template <> const string VariableSP::prefix("vsp_i"); template <> unsigned int VariableSP::id(0); template <> const string VariableSP::prefix("vsp_ui"); template <> unsigned int VariableSP::id(0); template <> const string VariableSP::prefix("vsp_f"); template <> unsigned int VariableSP::id(0); template <> const string VariableSP::prefix("vsp_d"); template <> unsigned int VariableSP::id(0); template <> const string VariableSP::prefix("vsp_l"); template string VariableSP::getTypeSignature(const KernelConfiguration & kernelConfig) const { return TYPE[typeID] + " " + name; } #define BOOST_TT_rep_expression(r, data, T) \ template string VariableSP::getTypeSignature(const KernelConfiguration & kernelConfig) const; BOOST_PP_SEQ_FOR_EACH(BOOST_TT_rep_expression, ~, BOOST_TT_acl_types) #undef BOOST_TT_rep_expression } // namespace acl