VCDValue Class Reference

Represents a single value found in a VCD File. More...

#include <VCDValue.hpp>

Collaboration diagram for VCDValue:

Data Structures

union  valstore
 The actual value stored, as identified by type. More...
 

Public Member Functions

 VCDValue (VCDBit value)
 Create a new VCDValue with the type VCD_SCALAR. More...
 
 VCDValue (VCDBitVector *value)
 Create a new VCDValue with the type VCD_VECTOR. More...
 
 VCDValue (VCDReal value)
 Create a new VCDValue with the type VCD_VECTOR. More...
 
 ~VCDValue ()
 
VCDValueType get_type ()
 Return the type of value stored by this class instance. More...
 
VCDBit get_value_bit ()
 Get the bit value of the instance. More...
 
VCDBitVectorget_value_vector ()
 Get the vector value of the instance. More...
 
VCDReal get_value_real ()
 Get the real value of the instance. More...
 

Protected Attributes

VCDValueType type
 The type of value this instance stores. More...
 
union VCDValue::valstore value
 

Detailed Description

Represents a single value found in a VCD File.

Can contain a single bit (a scalar), a bti vector, or an IEEE floating point number.

Definition at line 12 of file VCDValue.hpp.

Constructor & Destructor Documentation

◆ VCDValue() [1/3]

VCDValue::VCDValue ( VCDBit  value)

Create a new VCDValue with the type VCD_SCALAR.

Definition at line 7 of file VCDValue.cpp.

◆ VCDValue() [2/3]

VCDValue::VCDValue ( VCDBitVector value)

Create a new VCDValue with the type VCD_VECTOR.

Definition at line 16 of file VCDValue.cpp.

◆ VCDValue() [3/3]

VCDValue::VCDValue ( VCDReal  value)

Create a new VCDValue with the type VCD_VECTOR.

Definition at line 25 of file VCDValue.cpp.

◆ ~VCDValue()

VCDValue::~VCDValue ( )
inline

Definition at line 54 of file VCDValue.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ get_type()

VCDValueType VCDValue::get_type ( )

Return the type of value stored by this class instance.

Definition at line 33 of file VCDValue.cpp.

Here is the caller graph for this function:

◆ get_value_bit()

VCDBit VCDValue::get_value_bit ( )

Get the bit value of the instance.

Definition at line 40 of file VCDValue.cpp.

Here is the caller graph for this function:

◆ get_value_real()

VCDReal VCDValue::get_value_real ( )

Get the real value of the instance.

Definition at line 54 of file VCDValue.cpp.

Here is the caller graph for this function:

◆ get_value_vector()

VCDBitVector * VCDValue::get_value_vector ( )

Get the vector value of the instance.

Definition at line 47 of file VCDValue.cpp.

Here is the caller graph for this function:

Field Documentation

◆ type

VCDValueType VCDValue::type
protected

The type of value this instance stores.

Definition at line 77 of file VCDValue.hpp.

◆ value

union VCDValue::valstore VCDValue::value
protected

The documentation for this class was generated from the following files: