param_val Struct Reference

Value of a param. More...

#include <tracecut-advice.h>

List of all members.

Public Types

enum  {
  PV_VACANT = 0, PV_POINTER, PV_SIGNED_INT, PV_UNSIGNED_INT,
  PV_FP
}

Public Attributes

enum param_val:: { ... }  kind
union {
   uintptr_t   ptr_value
   int64_t   int_value
   uint64_t   uint_value
   double   fp_value
}; 

Detailed Description

Value of a param.

Stores the value of a param, along with what kind of param it is. There are four kinds of param, PV_POINTER, PV_SIGNED_INT, PV_UNSIGNED_INT, and PV_FP. PV_VACANT is used internally; no param with kind PV_VACANT will ever be passed to tc_report_match().

The param's value itself is stored in a transparent union. You should only ever access the vaue using the union member that corresponds to the param's kind. You can access a transparent union member as if it were a member of the struct.


The documentation for this struct was generated from the following file:
Generated on Tue Jul 31 21:46:43 2012 for InterAspect by doxygen 1.6.1