scc  2022.4.0
SystemC components library
scc::indexed_resource_access_if Class Referenceabstract

interface defining access to an indexed resource e.g. register file More...

#include <resource_access_if.h>

Inheritance diagram for scc::indexed_resource_access_if:

Public Types

using value_type = resource_access_if
 
using pointer = value_type *
 
using const_pointer = const value_type *
 
using reference = value_type &
 
using const_reference = const value_type &
 
using iterator = resource_access_if *
 
using const_iterator = const resource_access_if *
 

Public Member Functions

virtual std::size_t size ()=0
 get the size of the resource More...
 
virtual reference operator[] (std::size_t idx) noexcept=0
 get value at index More...
 
virtual const_reference operator[] (std::size_t idx) const noexcept=0
 get value at index More...
 
virtual reference at (std::size_t idx)=0
 
virtual const_reference at (std::size_t idx) const =0
 

Detailed Description

interface defining access to an indexed resource e.g. register file

Definition at line 103 of file resource_access_if.h.

Member Function Documentation

◆ operator[]() [1/2]

const_reference scc::indexed_resource_access_if::operator[] ( std::size_t  idx) const
pure virtualnoexcept

get value at index

get value at index with range checking

Parameters
idxthe index
Returns
the value

◆ operator[]() [2/2]

reference scc::indexed_resource_access_if::operator[] ( std::size_t  idx)
pure virtualnoexcept

get value at index

get value at index with range checking

Parameters
idxthe index
Returns
the value

◆ size()

std::size_t scc::indexed_resource_access_if::size ( )
pure virtual

get the size of the resource

Returns
size of the resource in bytes

Implemented in scc::sc_register_indexed< DATATYPE, SIZE, START >.


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