
Public Types | |
|
typedef std::map< std::string, ShProgram > | BoundProgramMap |
Public Member Functions | |
| int | optimization () const |
| 0 means no optimizations. The default level is 2. | |
| void | optimization (int level) |
| bool | throw_errors () const |
| Whether exceptions are being thrown instead of error messages printed to stdout. | |
| void | throw_errors (bool on) |
| void | disable_optimization (const std::string &name) |
| Disable a particular optimization. | |
| void | enable_optimization (const std::string &name) |
| Enable a particular optimization (rather, stop disabling it). | |
| bool | optimization_disabled (const std::string &name) const |
| Check whether an optimization is disabled. | |
| bool | is_bound (const std::string &target) |
| ShProgramNodePtr | bound_program (const std::string &target) |
| BoundProgramMap::iterator | begin_bound () |
| BoundProgramMap::iterator | end_bound () |
| void | set_binding (const std::string &unit, const ShProgram &program) |
| void | unset_binding (const std::string &unit) |
| ShProgramNodePtr | parsing () |
| The program currently being constructed. May be null. | |
| void | enter (const ShProgramNodePtr &program) |
| Start constructing the given program. | |
| void | exit () |
| Finish constructing the current program. | |
Static Public Member Functions | |
| static ShContext * | current () |
Definition at line 30 of file ShContext.hpp.
|
|
Disable a particular optimization. All optimizations are enabled by default. Disabling an optimization takes place in addition to whatever effects the optimization level has. Definition at line 67 of file ShContext.cpp. |
|
|
Whether exceptions are being thrown instead of error messages printed to stdout. The default is to throw exceptions. Definition at line 57 of file ShContext.cpp. |
1.4.5