sc_out_resolved.hh revision 13201
12810SN/A/*
22810SN/A * Copyright 2018 Google, Inc.
32810SN/A *
42810SN/A * Redistribution and use in source and binary forms, with or without
52810SN/A * modification, are permitted provided that the following conditions are
62810SN/A * met: redistributions of source code must retain the above copyright
72810SN/A * notice, this list of conditions and the following disclaimer;
82810SN/A * redistributions in binary form must reproduce the above copyright
92810SN/A * notice, this list of conditions and the following disclaimer in the
102810SN/A * documentation and/or other materials provided with the distribution;
112810SN/A * neither the name of the copyright holders nor the names of its
122810SN/A * contributors may be used to endorse or promote products derived from
132810SN/A * this software without specific prior written permission.
142810SN/A *
152810SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
162810SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
172810SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
182810SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
192810SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
202810SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
212810SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
222810SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
232810SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
242810SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
252810SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
262810SN/A *
272810SN/A * Authors: Gabe Black
282810SN/A */
292810SN/A
302810SN/A#ifndef __SYSTEMC_EXT_CHANNEL_SC_OUT_RESOLVED_HH__
312810SN/A#define __SYSTEMC_EXT_CHANNEL_SC_OUT_RESOLVED_HH__
322810SN/A
332810SN/A#include "sc_inout_resolved.hh"
342810SN/A#include "sc_out.hh"
354626SN/A#include "sc_signal_in_if.hh"
364626SN/A#include "sc_signal_inout_if.hh"
372810SN/A#include "warn_unimpl.hh"
382810SN/A
394626SN/Anamespace sc_dt
404626SN/A{
415338Sstever@gmail.com
422810SN/Aclass sc_logic;
432810SN/A
443374SN/A} // namespace sc_dt
452810SN/A
464626SN/Anamespace sc_core
474626SN/A{
482810SN/A
495314SN/Aclass sc_out_resolved : public sc_inout_resolved
505314SN/A{
515314SN/A  public:
522810SN/A    sc_out_resolved();
534626SN/A    explicit sc_out_resolved(const char *name);
544626SN/A    virtual ~sc_out_resolved();
552810SN/A
564626SN/A    sc_out_resolved &operator = (const sc_dt::sc_logic &);
574666SN/A    sc_out_resolved &operator = (const sc_signal_in_if<sc_dt::sc_logic> &);
584626SN/A    sc_out_resolved &operator = (
592810SN/A            const sc_port<sc_signal_in_if<sc_dt::sc_logic>, 1> &);
602810SN/A    sc_out_resolved &operator = (
612810SN/A            const sc_port<sc_signal_inout_if<sc_dt::sc_logic>, 1> &);
622810SN/A    sc_out_resolved &operator = (const sc_out_resolved &);
634626SN/A
644626SN/A    virtual const char *kind() const { return "sc_out_resolved"; }
654626SN/A
662810SN/A  private:
674626SN/A    // Disabled
682810SN/A    sc_out_resolved(const sc_out_resolved &) : sc_inout_resolved() {}
692810SN/A};
704626SN/A
714626SN/A} // namespace sc_core
722810SN/A
732810SN/A#endif  //__SYSTEMC_EXT_CHANNEL_SC_OUT_RESOLVED_HH__
742810SN/A