Otawa  0.10
otawa::sem::Block Class Reference

A block represents a sequence of semantic instructions inst. More...

#include <otawa/sem/inst.h>

Inheritance diagram for otawa::sem::Block:
elm::genstruct::Vector< inst >

Classes

class  InstIter
 

Public Member Functions

void print (elm::io::Output &out) const
 Print the current block. More...
 
int count (void) const
 
int length (void) const
 
int capacity (void) const
 
bool isEmpty (void) const
 
const instget (int index) const
 
institem (int index)
 
void set (int index, const instvalue)
 
void set (const Iterator &pos, const inst &item)
 
instoperator[] (int index)
 
const instoperator[] (int index) const
 
bool contains (const inst &value) const
 
bool containsAll (const C< inst > &items)
 
int indexOf (const inst &value, int start=0) const
 
int lastIndexOf (const inst &value, int start=-1) const
 
 operator bool (void) const
 
bool operator== (const Vector< inst > &v) const
 
bool operator!= (const Vector< inst > &v) const
 
const instfirst (void) const
 
const instlast (void) const
 
Iterator find (const inst &item)
 
Iterator find (const inst &item, const Iterator &start)
 
const insttop (void) const
 
void add (void)
 
void add (const inst &value)
 
void addAll (const C< inst > &items)
 
void removeAt (int index)
 
void remove (const inst &value)
 
void remove (const Iterator &iter)
 
void removeAll (const C< inst > &items)
 
void insert (int index, const inst &value)
 
void insert (const inst &item)
 
void clear (void)
 
void grow (int new_cap)
 
void setLength (int new_length)
 
table< instdetach (void)
 
void copy (const Vector &vec)
 
void swallow (Vector< inst > &v)
 
void push (const inst &value)
 
const inst pop (void)
 
void addFirst (const inst &item)
 
void addLast (const inst &item)
 
void removeFirst (void)
 
void removeLast (void)
 
void addAfter (const Iterator &pos, const inst &item)
 
void addBefore (const Iterator &pos, const inst &item)
 

Private Types

typedef elm::genstruct::Vector
< inst
S
 

Detailed Description

A block represents a sequence of semantic instructions inst.

Member Typedef Documentation

Member Function Documentation

void elm::genstruct::Vector< inst >::add ( void  )
inherited
void elm::genstruct::Vector< inst >::add ( const inst &  value)
inherited
void elm::genstruct::Vector< inst >::addAfter ( const Iterator &  pos,
const inst &  item 
)
inherited
void elm::genstruct::Vector< inst >::addAll ( const C< inst > &  items)
inherited
void elm::genstruct::Vector< inst >::addBefore ( const Iterator &  pos,
const inst &  item 
)
inherited
void elm::genstruct::Vector< inst >::addFirst ( const inst &  item)
inherited
void elm::genstruct::Vector< inst >::addLast ( const inst &  item)
inherited
int elm::genstruct::Vector< inst >::capacity ( void  ) const
inherited
void elm::genstruct::Vector< inst >::clear ( void  )
inherited
bool elm::genstruct::Vector< inst >::contains ( const inst &  value) const
inherited
bool elm::genstruct::Vector< inst >::containsAll ( const C< inst > &  items)
inherited
void elm::genstruct::Vector< inst >::copy ( const Vector< inst > &  vec)
inherited
int elm::genstruct::Vector< inst >::count ( void  ) const
inherited
table< inst > elm::genstruct::Vector< inst >::detach ( void  )
inherited
Iterator elm::genstruct::Vector< inst >::find ( const inst &  item)
inherited
Iterator elm::genstruct::Vector< inst >::find ( const inst &  item,
const Iterator &  start 
)
inherited
const inst & elm::genstruct::Vector< inst >::first ( void  ) const
inherited
const inst & elm::genstruct::Vector< inst >::get ( int  index) const
inherited
void elm::genstruct::Vector< inst >::grow ( int  new_cap)
inherited
int elm::genstruct::Vector< inst >::indexOf ( const inst &  value,
int  start = 0 
) const
inherited
void elm::genstruct::Vector< inst >::insert ( const inst &  item)
inherited
void elm::genstruct::Vector< inst >::insert ( int  index,
const inst &  value 
)
inherited
bool elm::genstruct::Vector< inst >::isEmpty ( void  ) const
inherited
inst & elm::genstruct::Vector< inst >::item ( int  index)
inherited
const inst & elm::genstruct::Vector< inst >::last ( void  ) const
inherited
int elm::genstruct::Vector< inst >::lastIndexOf ( const inst &  value,
int  start = -1 
) const
inherited
int elm::genstruct::Vector< inst >::length ( void  ) const
inherited
elm::genstruct::Vector< inst >::operator bool ( void  ) const
inherited
bool elm::genstruct::Vector< inst >::operator!= ( const Vector< inst > &  v) const
inherited
bool elm::genstruct::Vector< inst >::operator== ( const Vector< inst > &  v) const
inherited
inst & elm::genstruct::Vector< inst >::operator[] ( int  index)
inherited
const inst & elm::genstruct::Vector< inst >::operator[] ( int  index) const
inherited
const inst elm::genstruct::Vector< inst >::pop ( void  )
inherited
void otawa::sem::Block::print ( elm::io::Output out) const

Print the current block.

Parameters
outOutput to print to.

References otawa::sem::Printer::print().

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

void elm::genstruct::Vector< inst >::push ( const inst &  value)
inherited
void elm::genstruct::Vector< inst >::remove ( const Iterator &  iter)
inherited
void elm::genstruct::Vector< inst >::remove ( const inst &  value)
inherited
void elm::genstruct::Vector< inst >::removeAll ( const C< inst > &  items)
inherited
void elm::genstruct::Vector< inst >::removeAt ( int  index)
inherited
void elm::genstruct::Vector< inst >::removeFirst ( void  )
inherited
void elm::genstruct::Vector< inst >::removeLast ( void  )
inherited
void elm::genstruct::Vector< inst >::set ( int  index,
const inst  value 
)
inherited
void elm::genstruct::Vector< inst >::set ( const Iterator &  pos,
const inst &  item 
)
inherited
void elm::genstruct::Vector< inst >::setLength ( int  new_length)
inherited
void elm::genstruct::Vector< inst >::swallow ( Vector< inst > &  v)
inherited
const inst & elm::genstruct::Vector< inst >::top ( void  ) const
inherited

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