Next: , Previous: , Up: MicroBenchmark   [Contents][Index]


API Reference


Common API Concepts

The functions of this reference are specified using Floyd-Hoare logic, as P{Q}R, where:

The following order is imposed between these elements:

  1. Preconditions must be met at the call point.
  2. Effects take place.
  3. Postconditions are guaranteed at the return point.

The following examples showcase the format used by the API Reference:

[Lang] Example Function: return type function_example (ParamType value, …) extra_qualifiers

Preconditions:
  1. Conditions to be met at the call point.
    
  2. <-- This number is for reference purposes, all preconditions must be
    met at the call point.
    

Effects:
  1. Effect produced by the call.
    
  2. Another effect produced by the call when value has the special
    value foobar.
    
  3. <-- This number is for reference purposes.  It does not impose an
    order on the effects unless specified otherwise.
    

Postconditions:
  1. Condition provided after the call.
    
  2. Another condition provided after the call when ParamType is
    something.
    
  3. <-- This number is for reference purposes, all postconditions must be
    provided at the return point.
    

General comments regarding the function come after the formal
definition.


[Lang] Example Function: dynamic_example param

Preconditions:
…


Note:


Next: C API Reference, Previous: Advanced Usage, Up: MicroBenchmark   [Contents][Index]