#import <cscalar.h>
Public Member Functions | |
| (id) | init |
| Initialize scalar object. | |
| (void) | dealloc |
| Release resource for the object. | |
| (id) | clear |
| Release the content data. | |
| (id) | setIntVal: |
| Set integer value. | |
| (int) | intVal |
| Get int value of the content data. | |
| (id) | setDoubleVal: |
| Set double value. | |
| (double) | doubleVal |
| Get double value of the content data. | |
| (void) | setStr: |
| Set string. | |
| (NSString *) | str |
| Get string of the content data. | |
| (void) | setPtr:size: |
| Set pointer. | |
| (void *) | ptr |
| Get pointer value of the content data. | |
| (id) | setObj: |
| Set object. | |
| (id) | obj |
| Get object of the content data. | |
| (id) | debugPrint: |
| Print the content of the data. | |
Protected Attributes | |
| CScalarType | scalar_type |
| union { | |
| int v_int | |
| double v_double | |
| NSString * v_str | |
| void * v_ptr | |
| id v_obj | |
| } | content |
|
|
Release the content data.
|
|
|
Release resource for the object.
|
|
|
Print the content of the data.
|
|
|
Get double value of the content data.
|
|
|
Initialize scalar object.
|
|
|
Get int value of the content data.
|
|
|
Get object of the content data.
|
|
|
Get pointer value of the content data.
|
|
|
Set double value.
|
|
|
Set integer value.
|
|
|
Set object.
|
|
|
Set pointer.
|
|
|
Set string.
|
|
|
Get string of the content data.
|
|
|
Union for all scalar data |
|
|
Type of scalar data |
|
|
Double data |
|
|
Integer data |
|
|
Object data |
|
|
Pointer data |
|
|
String data |
1.3.6