scc  2022.4.0
SystemC components library
scc::ext_attribute< T > Class Template Reference

extended sc_attribute More...

#include <ext_attribute.h>

Inheritance diagram for scc::ext_attribute< T >:
Collaboration diagram for scc::ext_attribute< T >:

Public Types

using base_type = sc_core::sc_attribute< T >
 

Public Member Functions

 ext_attribute (const std::string &name_, sc_core::sc_module *owner)
 
 ext_attribute (const std::string &name_, const T &value_, sc_core::sc_module *owner)
 
 ext_attribute (const ext_attribute< T > &a)=delete
 
 ~ext_attribute ()=default
 

Public Attributes

const sc_core::sc_module * owner
 

Detailed Description

template<typename T>
class scc::ext_attribute< T >

extended sc_attribute

extended attribute inheriting from sc_attribute. The attribute consults with the scc::configurer to retrieve a default value upon construction

Template Parameters
Ttype name of value to hold in the attribute

Definition at line 39 of file ext_attribute.h.

Constructor & Destructor Documentation

◆ ext_attribute() [1/3]

template<typename T >
scc::ext_attribute< T >::ext_attribute ( const std::string &  name_,
sc_core::sc_module *  owner 
)
inline

create an extended attribute based on name and owner with default value

Parameters
name_
owner

Definition at line 48 of file ext_attribute.h.

◆ ext_attribute() [2/3]

template<typename T >
scc::ext_attribute< T >::ext_attribute ( const std::string &  name_,
const T &  value_,
sc_core::sc_module *  owner 
)
inline

create an extended attribute based on name, value and owner

Parameters
name_
value_
owner

Definition at line 61 of file ext_attribute.h.

◆ ext_attribute() [3/3]

template<typename T >
scc::ext_attribute< T >::ext_attribute ( const ext_attribute< T > &  a)
delete

no copy constructor

Parameters
a

◆ ~ext_attribute()

template<typename T >
scc::ext_attribute< T >::~ext_attribute ( )
default

a default destructor

Member Data Documentation

◆ owner

template<typename T >
const sc_core::sc_module* scc::ext_attribute< T >::owner

the owner of this attribute (a backward reference)

Definition at line 80 of file ext_attribute.h.


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