Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 83 lines (69 sloc) 1.732 kb
30e8289 Simulate named event trigger and waits.
steve authored
1 /*
2 * Copyright (c) 2000 Stephen Williams (steve@icarus.com)
3 *
4 * This source code is free software; you can redistribute it
5 * and/or modify it in source code form under the terms of the GNU
6 * General Public License as published by the Free Software
7 * Foundation; either version 2 of the License, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
18 */
19 #if !defined(WINNT) && !defined(macintosh)
20 #ident "$Id: net_event.cc,v 1.1 2000/04/04 03:20:15 steve Exp $"
21 #endif
22
23 # include "netlist.h"
24
25 NetEvent::NetEvent(const string&n)
26 : name_(n)
27 {
28 scope_ = 0;
29 snext_ = 0;
30 }
31
32 NetEvent::~NetEvent()
33 {
34 }
35
36 string NetEvent::name() const
37 {
38 return name_;
39 }
40
41 string NetEvent::full_name() const
42 {
43 assert(scope_);
44 return scope_->name() + "." + name_;
45 }
46
47 NetEvTrig::NetEvTrig(NetEvent*ev)
48 : event_(ev)
49 {
50 }
51
52 NetEvTrig::~NetEvTrig()
53 {
54 }
55
56 const NetEvent* NetEvTrig::event() const
57 {
58 return event_;
59 }
60
61 NetEvWait::NetEvWait(NetEvent*ev, NetProc*pr)
62 : event_(ev), statement_(pr)
63 {
64 }
65
66 NetEvWait::~NetEvWait()
67 {
68 delete statement_;
69 }
70
71 const NetEvent* NetEvWait::event() const
72 {
73 return event_;
74 }
75
76 /*
77 * $Log: net_event.cc,v $
78 * Revision 1.1 2000/04/04 03:20:15 steve
79 * Simulate named event trigger and waits.
80 *
81 */
82
Something went wrong with that request. Please try again.