Record Class Reference

The class Record. More...

#include <Record.hh>

Inheritance diagram for Record:

Inheritance graph
[legend]
Collaboration diagram for Record:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~Record ()
 The destructor for Record.
RValueclone () const
 Returns a clone of the object.
RValueoperator= (const RValue &source)
 Assignment operator for record types.
Recordoperator= (const Record &source)
 Assignment operator for record types.
const string & getDataType () const
void serialize (SerializedInstance *) const
string toString () const
 Get a string representation of the value.
void print (ostream &os) const
 Virtualized printing.
Value getSlice (const ScalarTypeInfo &sliceSpecifier) const
 Record ()
 Constructors.
 Record (const RecordTypeInfo &typeInfo)
 Record (const SubElementFactory &factory)
 Record (const RecordTypeInfo &typeInfo, TyvisVarArgs &initValue)
 Constructor.
 Record (const TypeInfo &typeInfo, const RValue &initValue)
 Constructor used in subprogram argument temporaries.
 Record (const Record &that)
 Copy Constructor.

Static Public Member Functions

static const string & getRecordDataType ()

Detailed Description

The class Record.

This class represents all the record types and record subtype that get used in a VHDL simulation. THe primary functionality of this class is to act as a place holder for the elements contained by an record type. The basic structure for the record type is provided by the RecordTypeInfo class that contains all the necessary type information for each field of the Record object (signal/variable).


Constructor & Destructor Documentation

Record::Record  ) 
 

Constructors.

Record::Record const RecordTypeInfo typeInfo  ) 
 

Record::Record const SubElementFactory factory  ) 
 

Record::Record const RecordTypeInfo typeInfo,
TyvisVarArgs initValue
 

Constructor.

Calls to this one get generated by record-valued aggregates.

Record::Record const TypeInfo typeInfo,
const RValue initValue
 

Constructor used in subprogram argument temporaries.

Record::Record const Record that  ) 
 

Copy Constructor.

virtual Record::~Record  )  [virtual]
 

The destructor for Record.


Member Function Documentation

RValue* Record::clone  )  const [virtual]
 

Returns a clone of the object.

All the fields/elements are duplicated. The return value is a fresh/new duplicate and the caller must ensure that the return value is deleted (otherwise, memory will leak)

Returns:
A pointer to the clone of the object.

Implements RValue.

const string& Record::getDataType  )  const
 

static const string& Record::getRecordDataType  )  [static]
 

Value Record::getSlice const ScalarTypeInfo sliceSpecifier  )  const [virtual]
 

Implements RValue.

Record& Record::operator= const Record source  ) 
 

Assignment operator for record types.

Parameters:
source The source Record object.
Returns:
The Record object with new value (*this)

RValue& Record::operator= const RValue source  )  [virtual]
 

Assignment operator for record types.

NOTE that this is more of an internal method. It should NOT be used to assign values for variables and signals. The updateVal method should be used for that purpose.

Parameters:
source The source Record object.
Returns:
The Record object with new value (*this)

Reimplemented from CompositeLiteral.

void Record::print ostream &  os  )  const [virtual]
 

Virtualized printing.

Implements RValue.

void Record::serialize SerializedInstance *   )  const
 

string Record::toString  )  const [virtual]
 

Get a string representation of the value.

Implements RValue.


The documentation for this class was generated from the following file:
Generated on Fri Mar 31 11:12:51 2006 for Tyvis by  doxygen 1.4.6