Predator  [unstable] git snapshot
OpTemplate Class Reference

an operation (push_back, erase, ...) template we can match by footprints More...

#include <adt_op.hh>

Collaboration diagram for OpTemplate:
Collaboration graph
[legend]

a human-readable name of the operation

const std::string name_
CleanList< OpFootprintfList_
bool dirty_
TShapeListByHeapIdx inShapes_
TShapeListByHeapIdx outShapes_
ESearchDirection searchDirection_
 OpTemplate (const std::string &name)
const std::string & name () const
TFootprintIdx size () const
const OpFootprintoperator[] (TFootprintIdx idx) const
void addFootprint (OpFootprint *footprint)
 takes ownership of *footprint and will release it on destruction
const TShapeListByHeapIdxinShapes () const
const TShapeListByHeapIdxoutShapes () const
ESearchDirection searchDirection () const
void plot () const
void updateMetaIfNeeded () const

Detailed Description

an operation (push_back, erase, ...) template we can match by footprints

Definition at line 54 of file adt_op.hh.

Constructor & Destructor Documentation

OpTemplate ( const std::string &  name)
inline

Definition at line 57 of file adt_op.hh.

Member Function Documentation

void addFootprint ( OpFootprint footprint)
inline

takes ownership of *footprint and will release it on destruction

Definition at line 76 of file adt_op.hh.

References CleanList< T >::append(), OpTemplate::dirty_, and OpTemplate::fList_.

const TShapeListByHeapIdx& inShapes ( ) const
inline

Definition at line 81 of file adt_op.hh.

References OpTemplate::inShapes_, and OpTemplate::updateMetaIfNeeded().

const std::string& name ( ) const
inline

Definition at line 63 of file adt_op.hh.

References OpTemplate::name_.

const OpFootprint& operator[] ( TFootprintIdx  idx) const
inline

Definition at line 71 of file adt_op.hh.

References OpTemplate::fList_.

const TShapeListByHeapIdx& outShapes ( ) const
inline

Definition at line 86 of file adt_op.hh.

References OpTemplate::outShapes_, and OpTemplate::updateMetaIfNeeded().

void plot ( ) const
ESearchDirection searchDirection ( ) const
inline

Definition at line 91 of file adt_op.hh.

References OpTemplate::searchDirection_, and OpTemplate::updateMetaIfNeeded().

TFootprintIdx size ( ) const
inline

Definition at line 67 of file adt_op.hh.

References OpTemplate::fList_, and CleanList< T >::size().

void updateMetaIfNeeded ( ) const
private

Field Documentation

bool dirty_
mutableprivate

Definition at line 101 of file adt_op.hh.

Referenced by OpTemplate::addFootprint().

CleanList<OpFootprint> fList_
private

Definition at line 100 of file adt_op.hh.

Referenced by OpTemplate::addFootprint(), OpTemplate::operator[](), and OpTemplate::size().

TShapeListByHeapIdx inShapes_
mutableprivate

Definition at line 102 of file adt_op.hh.

Referenced by OpTemplate::inShapes().

const std::string name_
private

Definition at line 99 of file adt_op.hh.

Referenced by OpTemplate::name().

TShapeListByHeapIdx outShapes_
mutableprivate

Definition at line 103 of file adt_op.hh.

Referenced by OpTemplate::outShapes().

ESearchDirection searchDirection_
mutableprivate

Definition at line 104 of file adt_op.hh.

Referenced by OpTemplate::searchDirection().


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