Otawa  0.10
otawa::dcache::BlockCollection Class Reference

A block collections stores the list of data blocks used in a task for a specific line. More...

#include <otawa/dcache/features.h>

Public Member Functions

 ~BlockCollection (void)
 
const Blockoperator[] (int i) const
 
const Blockobtain (const Address &addr)
 Obtain a block matching the given address. More...
 
void setSet (int set)
 Set the set number of the block collection. More...
 
int count (void) const
 Get the count of blocks in this collection. More...
 
int cacheSet (void) const
 

Private Attributes

int _set
 
genstruct::Vector< Block * > blocks
 

Detailed Description

A block collections stores the list of data blocks used in a task for a specific line.

Constructor & Destructor Documentation

otawa::dcache::BlockCollection::~BlockCollection ( void  )

References blocks.

Member Function Documentation

int otawa::dcache::BlockCollection::count ( void  ) const
inline
const Block & otawa::dcache::BlockCollection::obtain ( const Address addr)

Obtain a block matching the given address.

Parameters
addrAddress of the looked block.
Returns
Matching block (possibly created).

References _set, otawa::ot::address(), blocks, and otawa::Address::isNull().

Referenced by otawa::dcache::CLPBlockBuilder::processBB(), and otawa::dcache::BlockBuilder::processBB().

const Block& otawa::dcache::BlockCollection::operator[] ( int  i) const
inline

References blocks.

void otawa::dcache::BlockCollection::setSet ( int  set)
inline

Set the set number of the block collection.

Parameters
setSet number.

References _set.

Member Data Documentation

int otawa::dcache::BlockCollection::_set
private

Referenced by cacheSet(), obtain(), and setSet().

genstruct::Vector<Block *> otawa::dcache::BlockCollection::blocks
private

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