IDA SDK

- Main Page
- Header Files
- Classes
- Modules

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Attributes | Public Member Functions | List of all members
idc_value_t Class Reference

## Detailed Description

Class to hold idc values.

## Public Attributes
char | vtype
| IDC value types
union {
sval_t num
| VT_LONG
ushort e [6]
| VT_FLOAT
idc_object_t * obj
int funcidx
| VT_FUNC
void * pvoid
| VT_PVOID
int64 i64
| VT_INT64
uchar reserve [sizeof(qstring)]
| internal housekeeping: 64-bit qstring is bigger than 12 bytes
}; |

## Public Member Functions
| idc_value_t (sval_t n=0)
| Create a VT_LONG value.
| idc_value_t (const idc_value_t &r)
| Create a $VT_LONG with an existing idc value.
| idc_value_t (const char *_str)
| Create a VT_STR2 value.
| idc_value_t (const qstring &_str)
| Create a VT_STR2 value.
| ~idc_value_t (void)
| Destructor.
void | clear (void)
| See VarFree()
idc_value_t & | operator= (const idc_value_t &r)
| Assign this value to an existing value.
qstring & | qstr (void)
| VT_STR2
const qstring & | qstr (void) const
| VT_STR2
const char * | c_str (void) const
| VT_STR2
const uchar * | u_str (void) const
| VT_STR2
void | swap (idc_value_t &v)
| Set this = r and v = this.
bool | is_zero (void) const
| Does value represent the integer 0?
bool | is_integral (void)
| Does value represent a whole number?
bool | is_convertible (void) const
| Convertible types are VT_LONG, VT_FLOAT, VT_INT64, and VT_STR2.
Warning
The following functions do not free the existing data! When the contents are unknown, use the functions without a leading underscore.
void | _create_empty_string (void)
void | _set_string (const qstring &_str)
void | _set_string (const char *_str, size_t len)
void | _set_string (const char *_str)
void | _set_long (sval_t v)
Setters
These functions ensure the previous value is cleared
void | create_empty_string (void)
void | set_string (const char *_str, size_t len)
void | set_string (const char *_str)
void | set_string (const qstring &_str)
void | set_long (sval_t v)
void | set_pvoid (void *p)
void | set_int64 (int64 v)
void | set_float (const ushort f[6])

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

- expr.hpp