ilang  0.9.1
ILAng: A Modeling and Verification Platform for SoCs
Public Types | Public Member Functions | Friends | List of all members
ilang::MemVal Class Reference

The container for representing memory (array) values. More...

#include <sort_value.h>

Inheritance diagram for ilang::MemVal:
ilang::Value

Public Types

typedef std::shared_ptr< MemValMemValPtr
 Pointer type for all use of MemVal.
 
typedef std::map< int, int > MemValMap
 Type for storing the address/data mapping.
 
- Public Types inherited from ilang::Value
typedef std::shared_ptr< ValueValPtr
 Pointer type for all use of Value.
 

Public Member Functions

 MemVal (const int &def_val)
 Constructor with only the default value.
 
 MemVal (const int &def_val, const MemValMap &vals)
 Constructor with an existed Memory value.
 
 ~MemVal ()
 Default destructor.
 
const MemValMapval_map () const
 Return the map of addr/data.
 
const int & def_val () const
 Return the default value.
 
const int & get_data (const int &addr) const
 Return the value stored in the address.
 
void set_data (const int &addr, const int &data)
 Set the value stored in the address.
 
std::ostream & Print (std::ostream &out) const
 Output to stream.
 
- Public Member Functions inherited from ilang::Value
virtual ~Value ()
 virtual destructor.
 

Friends

std::ostream & operator<< (std::ostream &out, const MemVal &val)
 Overload output stream operator.
 

Detailed Description

The container for representing memory (array) values.


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