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-2006 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.4 (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 // $Log: sc_fxcast_switch.cpp,v $
00041 // Revision 1.1.1.1  2006/12/15 20:31:36  acg
00042 // SystemC 2.2
00043 //
00044 // Revision 1.3  2006/01/13 18:53:57  acg
00045 // Andy Goodrich: added $Log command so that CVS comments are reproduced in
00046 // the source.
00047 //
00048 
00049 #include "sysc/datatypes/fx/sc_fxcast_switch.h"
00050 
00051 
00052 namespace sc_dt
00053 {
00054 
00055 // ----------------------------------------------------------------------------
00056 //  CLASS : sc_fxcast_switch
00057 //
00058 //  Fixed-point cast switch class.
00059 // ----------------------------------------------------------------------------
00060 
00061 const std::string
00062 sc_fxcast_switch::to_string() const
00063 {
00064     return sc_dt::to_string( m_sw );
00065 }
00066 
00067 
00068 void
00069 sc_fxcast_switch::print( ::std::ostream& os ) const
00070 {
00071     os << sc_dt::to_string( m_sw );
00072 }
00073 
00074 void
00075 sc_fxcast_switch::dump( ::std::ostream& os ) const
00076 {
00077     os << "sc_fxcast_switch" << ::std::endl;
00078     os << "(" << ::std::endl;
00079     os << "sw = " << sc_dt::to_string( m_sw ) << ::std::endl;
00080     os << ")" << ::std::endl;
00081 }
00082 
00083 } // namespace sc_dt
00084 
00085 
00086 // Taf!

Generated on Wed Jan 21 15:32:07 2009 for SystemC by  doxygen 1.5.5