sc_module_name.hh revision 12837
15450Sgblack@eecs.umich.edu/* 25450Sgblack@eecs.umich.edu * Copyright 2018 Google, Inc. 35450Sgblack@eecs.umich.edu * 45450Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without 57087Snate@binkert.org * modification, are permitted provided that the following conditions are 67087Snate@binkert.org * met: redistributions of source code must retain the above copyright 77087Snate@binkert.org * notice, this list of conditions and the following disclaimer; 87087Snate@binkert.org * redistributions in binary form must reproduce the above copyright 97087Snate@binkert.org * notice, this list of conditions and the following disclaimer in the 107087Snate@binkert.org * documentation and/or other materials provided with the distribution; 117087Snate@binkert.org * neither the name of the copyright holders nor the names of its 127087Snate@binkert.org * contributors may be used to endorse or promote products derived from 135450Sgblack@eecs.umich.edu * this software without specific prior written permission. 147087Snate@binkert.org * 157087Snate@binkert.org * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 167087Snate@binkert.org * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 177087Snate@binkert.org * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 187087Snate@binkert.org * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 197087Snate@binkert.org * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 207087Snate@binkert.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 217087Snate@binkert.org * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 225450Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 237087Snate@binkert.org * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 245450Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 255450Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 265450Sgblack@eecs.umich.edu * 275450Sgblack@eecs.umich.edu * Authors: Gabe Black 285450Sgblack@eecs.umich.edu */ 295450Sgblack@eecs.umich.edu 305450Sgblack@eecs.umich.edu#ifndef __SYSTEMC_EXT_CORE_SC_MODULE_NAME_HH__ 315450Sgblack@eecs.umich.edu#define __SYSTEMC_EXT_CORE_SC_MODULE_NAME_HH__ 325450Sgblack@eecs.umich.edu 335450Sgblack@eecs.umich.edunamespace sc_core 345450Sgblack@eecs.umich.edu{ 355450Sgblack@eecs.umich.edu 365450Sgblack@eecs.umich.educlass sc_module_name 375450Sgblack@eecs.umich.edu{ 385450Sgblack@eecs.umich.edu public: 395450Sgblack@eecs.umich.edu sc_module_name(const char *); 405450Sgblack@eecs.umich.edu sc_module_name(const sc_module_name &); 4111793Sbrandon.potter@amd.com ~sc_module_name(); 425450Sgblack@eecs.umich.edu 438852Sandreas.hansson@arm.com operator const char *() const; 445450Sgblack@eecs.umich.edu 455450Sgblack@eecs.umich.edu private: 465450Sgblack@eecs.umich.edu const char *_name; 475450Sgblack@eecs.umich.edu bool _on_the_stack; 485450Sgblack@eecs.umich.edu 495450Sgblack@eecs.umich.edu // Disabled 508852Sandreas.hansson@arm.com sc_module_name() {} 515450Sgblack@eecs.umich.edu sc_module_name &operator = (const sc_module_name &) { return *this; } 525450Sgblack@eecs.umich.edu}; 5314010Sgabeblack@google.com 545450Sgblack@eecs.umich.edu} // namespace sc_core 555450Sgblack@eecs.umich.edu 565450Sgblack@eecs.umich.edu#endif //__SYSTEMC_EXT_CORE_SC_MODULE_NAME_HH__ 578852Sandreas.hansson@arm.com