Otawa  0.10
otawa::clp::ClpStatePack::Context Class Reference

A context allows to share a CLP problem through different constructions of ClpStatePack. More...

#include <otawa/data/clp/ClpPack.h>

Public Member Functions

 Context (Process *process)
 Buid a ClpPack context. More...
 
 Context (ClpProblem &problem)
 Build a ClpPacl context from an existing problem. More...
 
 ~Context (void)
 
ClpProblemproblem (void) const
 

Private Attributes

ClpProblemprob
 
bool to_free
 

Detailed Description

A context allows to share a CLP problem through different constructions of ClpStatePack.

ClpStatePack works at the basic block level and, when one has a lot of basic block to process (like in CFG), this Context object allows to factor a part of the initialization.

Constructor & Destructor Documentation

otawa::clp::ClpStatePack::Context::Context ( Process process)

Buid a ClpPack context.

Parameters
processAnalyzed process.

References otawa::clp::ClpStatePack::ClpProblem, and prob.

otawa::clp::ClpStatePack::Context::Context ( ClpProblem problem)

Build a ClpPacl context from an existing problem.

Parameters
problemThe problem.
otawa::clp::ClpStatePack::Context::~Context ( void  )

Member Function Documentation

ClpProblem& otawa::clp::ClpStatePack::Context::problem ( void  ) const
inline

References prob.

Referenced by otawa::clp::ClpStatePack::ClpStatePack().

Member Data Documentation

ClpProblem* otawa::clp::ClpStatePack::Context::prob
private

Referenced by Context(), and problem().

bool otawa::clp::ClpStatePack::Context::to_free
private

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