iverilog/PEvent.h

55 lines
1.6 KiB
C
Raw Normal View History

2000-04-01 21:31:57 +02:00
#ifndef __PEvent_H
#define __PEvent_H
/*
* Copyright (c) 2000-2004 Stephen Williams (steve@icarus.com)
2000-04-01 21:31:57 +02:00
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
# include "LineInfo.h"
# include "StringHeap.h"
2000-04-01 21:31:57 +02:00
# include <string>
2001-01-16 03:44:17 +01:00
class Design;
class NetScope;
2000-04-01 21:31:57 +02:00
/*
* The PEvent class represents event objects. These are things that
* are declared in Verilog as ``event foo;'' The name passed to the
2003-01-30 17:23:07 +01:00
* constructor is the "foo" part of the declaration.
2000-04-01 21:31:57 +02:00
*/
class PEvent : public LineInfo {
public:
// The name is a perm-allocated string. It is the simple name
// of the event, without any scope.
explicit PEvent(perm_string name);
2000-04-01 21:31:57 +02:00
~PEvent();
perm_string name() const;
2000-04-01 21:31:57 +02:00
void elaborate_scope(Design*des, NetScope*scope) const;
2000-04-01 21:31:57 +02:00
private:
perm_string name_;
2000-04-01 21:31:57 +02:00
private: // not implemented
PEvent(const PEvent&);
PEvent& operator= (const PEvent&);
};
#endif