URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
typedef int INT_TYPEDEF;
|
typedef int INT_TYPEDEF;
|
|
|
template
|
template
|
class TypedIfc
|
class TypedIfc
|
{
|
{
|
public:
|
public:
|
virtual ~TypedIfc() { }
|
virtual ~TypedIfc() { }
|
virtual operator const T&() const = 0;
|
virtual operator const T&() const = 0;
|
virtual const T& operator= (const T& t) = 0;
|
virtual const T& operator= (const T& t) = 0;
|
};
|
};
|
|
|
template
|
template
|
class NullIfc : public TypedIfc
|
class NullIfc : public TypedIfc
|
{
|
{
|
public:
|
public:
|
const Tnative& operator= (const Tnative& t) { return t; }
|
const Tnative& operator= (const Tnative& t) { return t; }
|
operator const Tnative&() const { return *(Tnative *)0; }
|
operator const Tnative&() const { return *(Tnative *)0; }
|
};
|
};
|
|
|
typedef TypedIfc INT_TYPEDEFIfc;
|
typedef TypedIfc INT_TYPEDEFIfc;
|
|
|
NullIfc i32;
|
NullIfc i32;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.