Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

sc_fxcast_switch.cpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002 
00003   The following code is derived, directly or indirectly, from the SystemC
00004   source code Copyright (c) 1996-2004 by all Contributors.
00005   All Rights reserved.
00006 
00007   The contents of this file are subject to the restrictions and limitations
00008   set forth in the SystemC Open Source License Version 2.3 (the "License");
00009   You may not use this file except in compliance with such restrictions and
00010   limitations. You may obtain instructions on how to receive a copy of the
00011   License at http://www.systemc.org/. Software distributed by Contributors
00012   under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
00013   ANY KIND, either express or implied. See the License for the specific
00014   language governing rights and limitations under the License.
00015 
00016  *****************************************************************************/
00017 
00018 /*****************************************************************************
00019 
00020   sc_fxcast_switch.cpp - 
00021 
00022   Original Author: Martin Janssen, Synopsys, Inc.
00023 
00024  *****************************************************************************/
00025 
00026 /*****************************************************************************
00027 
00028   MODIFICATION LOG - modifiers, enter your name, affiliation, date and
00029   changes you are making here.
00030 
00031       Name, Affiliation, Date: Gene Bushuyev, Synopsys, Inc.
00032   Description of Modification: - fix explicit instantiation syntax.
00033     
00034       Name, Affiliation, Date:
00035   Description of Modification: 
00036 
00037  *****************************************************************************/
00038 
00039 
00040 #include "systemc/datatypes/fx/sc_fxcast_switch.h"
00041 
00042 
00043 namespace sc_dt
00044 {
00045 
00046 // ----------------------------------------------------------------------------
00047 //  CLASS : sc_fxcast_switch
00048 //
00049 //  Fixed-point cast switch class.
00050 // ----------------------------------------------------------------------------
00051 
00052 const sc_string
00053 sc_fxcast_switch::to_string() const
00054 {
00055     return sc_dt::to_string( m_sw );
00056 }
00057 
00058 
00059 void
00060 sc_fxcast_switch::print( ostream& os ) const
00061 {
00062     os << sc_dt::to_string( m_sw );
00063 }
00064 
00065 void
00066 sc_fxcast_switch::dump( ostream& os ) const
00067 {
00068     os << "sc_fxcast_switch" << endl;
00069     os << "(" << endl;
00070     os << "sw = " << sc_dt::to_string( m_sw ) << endl;
00071     os << ")" << endl;
00072 }
00073 
00074 } // namespace sc_dt
00075 
00076 
00077 // Taf!

Generated on Fri Jan 14 08:29:01 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18