F
fl
Hi,
I am learning C++ of a web example of an open source library of TLM.
TLM is accepted in the industry. I suppose it is dependable while the
example may be not because it is not an official document. I am new to
C++ class.
In the example (see below), "select_initiator" is defined for the
application. The new class definition has a virtual class as its base
class.
I do not understand the reason for having virtual key word in the
definition. Can you tell me it is correct, or not?
From C++ books, an example is that both istream and ostream are
defined as virtual, so iostream does not have the ambiguty problem.
Here, I have a new question. What effects are if only one of istream
and ostream is defined as virtual while the other does not?
.............................
class select_initiator /// TLM AT
select_initiator
: public sc_core::sc_module /// inherit from
SC module base clase
, virtual public tlm::tlm_bw_transport_if<> /// inherit from
TLM "backward interface"
{
I am learning C++ of a web example of an open source library of TLM.
TLM is accepted in the industry. I suppose it is dependable while the
example may be not because it is not an official document. I am new to
C++ class.
In the example (see below), "select_initiator" is defined for the
application. The new class definition has a virtual class as its base
class.
I do not understand the reason for having virtual key word in the
definition. Can you tell me it is correct, or not?
From C++ books, an example is that both istream and ostream are
defined as virtual, so iostream does not have the ambiguty problem.
Here, I have a new question. What effects are if only one of istream
and ostream is defined as virtual while the other does not?
.............................
class select_initiator /// TLM AT
select_initiator
: public sc_core::sc_module /// inherit from
SC module base clase
, virtual public tlm::tlm_bw_transport_if<> /// inherit from
TLM "backward interface"
{