Otawa  0.10
otawa::dcache::Block Class Reference

Represents a single block used by the data cache. More...

#include <otawa/dcache/features.h>

Public Member Functions

 Block (void)
 Build a "any" number (with a null address). More...
 
 Block (int set, int index, const Address &address)
 Build a simple block. More...
 
 Block (const Block &block)
 Cloning of a block. More...
 
int set (void) const
 Get the set number of a block. More...
 
int index (void) const
 Get the number of a block. More...
 
const Addressaddress (void) const
 
void print (io::Output &out) const
 Print a block. More...
 

Private Attributes

int _set
 
int idx
 
Address addr
 

Detailed Description

Represents a single block used by the data cache.

Constructor & Destructor Documentation

otawa::dcache::Block::Block ( void  )
inline

Build a "any" number (with a null address).

otawa::dcache::Block::Block ( int  set,
int  index,
const Address address 
)
inline

Build a simple block.

Parameters
setNumber of its cache set.
indexIts number.
addressAddress of the block.

References otawa::Address::isNull().

otawa::dcache::Block::Block ( const Block block)
inline

Cloning of a block.

Parameters
blockBlock to clone.

Member Function Documentation

const Address& otawa::dcache::Block::address ( void  ) const
inline
void otawa::dcache::Block::print ( io::Output out) const

Print a block.

References _set, addr, and idx.

Referenced by otawa::dcache::operator<<().

Member Data Documentation

int otawa::dcache::Block::_set
private

Referenced by print(), and set().

Address otawa::dcache::Block::addr
private

Referenced by address(), and print().

int otawa::dcache::Block::idx
private

Referenced by index(), and print().


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