|
| cs_span< cs_real_t > | get_vals_s (const int time_id=0) const |
| | Return a 1D span view of field values. If the field is not a scalar a fatal error is provoked. More...
|
| |
| cs_span_2d< cs_real_t > | get_vals_v (const int time_id=0) const |
| | Return a 2D span view of field values. If the field is not a vector a fatal error is provoked. More...
|
| |
| cs_span_2d< cs_real_t > | get_vals_t (const int time_id=0) const |
| | Return a 2D span view of field values. If the field is not a tensor a fatal error is provoked. More...
|
| |
| cs_alloc_mode_t | get_vals_alloc_mode (const int time_id=0) const |
| | Get the allocation mode of the values array. More...
|
| |
| void | update_size (void) |
| | Resize field values automatically (vals, val, val_pre) based on the corresponding mesh_location. More...
|
| |
|
| int | set_key_int (int key_id, int value) |
| | Assign a integer value for a given key to a field. More...
|
| |
| int | set_key_int (const char *key, int value) |
| | Assign a integer value for a given key to a field. More...
|
| |
|
| int | get_key_int (int key_id) |
| | Return a integer value for a given key associated with a field. More...
|
| |
| int | get_key_int (const char *key) |
| | Return a integer value for a given key associated with a field. More...
|
| |
|
| int | set_key_int_bits (int key_id, int mask) |
| | Set integer bits matching a mask to 1 for a given key for a field. More...
|
| |
| int | set_key_int_bits (const char *key, int mask) |
| | Set integer bits matching a mask to 1 for a given key for a field. More...
|
| |
|
| int | clear_key_int_bits (int key_id, int mask) |
| | Set integer bits matching a mask to 0 for a given key for a field. More...
|
| |
| int | clear_key_int_bits (const char *key, int mask) |
| | Set integer bits matching a mask to 0 for a given key for a field. More...
|
| |
|
| int | set_key_double (int key_id, double value) |
| | Assign a floating point value for a given key to a field. More...
|
| |
| int | set_key_double (const char *key, double value) |
| | Assign a floating point value for a given key to a field. More...
|
| |
|
| double | get_key_double (int key_id) |
| | Return a floating point value for a given key associated with a field. More...
|
| |
| double | get_key_double (const char *key) |
| | Return a floating point value for a given key associated with a field. More...
|
| |
|
| int | set_key_str (int key_id, const char *str) |
| | Assign a character string for a given key to a field. More...
|
| |
| int | set_key_str (const char *key, const char *str) |
| | Assign a character string for a given key to a field. More...
|
| |
|
| const char * | get_key_str (int key_id) |
| | Return a character string for a given key associated with a field. More...
|
| |
| const char * | get_key_str (const char *key) |
| | Return a character string for a given key associated with a field. More...
|
| |
Field descriptor.
Members of this field are publicly accessible, to allow for concise syntax, as it is expected to be used in many places.
| int clear_key_int_bits |
( |
const char * |
key, |
|
|
int |
mask |
|
) |
| |
Set integer bits matching a mask to 0 for a given key for a field.
If the key id is not valid, CS_FIELD_INVALID_KEY_ID is returned. If the field category is not compatible with the key (as defined by its type flag), CS_FIELD_INVALID_CATEGORY is returned. If the data type does not match, CS_FIELD_INVALID_TYPE is returned. If the key value has been locked, CS_FIELD_LOCKED is returned.
- Returns
- 0 in case of success, > 1 in case of error
- Parameters
-
| [in] | key | key string |
| [in] | mask | mask |
| int clear_key_int_bits |
( |
int |
key_id, |
|
|
int |
mask |
|
) |
| |
Set integer bits matching a mask to 0 for a given key for a field.
If the key id is not valid, CS_FIELD_INVALID_KEY_ID is returned. If the field category is not compatible with the key (as defined by its type flag), CS_FIELD_INVALID_CATEGORY is returned. If the data type does not match, CS_FIELD_INVALID_TYPE is returned. If the key value has been locked, CS_FIELD_LOCKED is returned.
- Returns
- 0 in case of success, > 1 in case of error
- Parameters
-
| [in] | key_id | key id |
| [in] | mask | mask |
| int set_key_double |
( |
const char * |
key, |
|
|
double |
value |
|
) |
| |
Assign a floating point value for a given key to a field.
If the key id is not valid, CS_FIELD_INVALID_KEY_ID is returned. If the field category is not compatible with the key (as defined by its type flag), CS_FIELD_INVALID_CATEGORY is returned. If the data type does not match, CS_FIELD_INVALID_TYPE is returned. If the key value has been locked, CS_FIELD_LOCKED is returned.
- Returns
- 0 in case of success, > 1 in case of error
- Parameters
-
| [in] | key | key string |
| [in] | value | value |
| int set_key_double |
( |
int |
key_id, |
|
|
double |
value |
|
) |
| |
Assign a floating point value for a given key to a field.
If the key id is not valid, CS_FIELD_INVALID_KEY_ID is returned. If the field category is not compatible with the key (as defined by its type flag), CS_FIELD_INVALID_CATEGORY is returned. If the data type does not match, CS_FIELD_INVALID_TYPE is returned. If the key value has been locked, CS_FIELD_LOCKED is returned.
- Returns
- 0 in case of success, > 1 in case of error
- Parameters
-
| [in] | key_id | key id |
| [in] | value | value |
| int set_key_int |
( |
const char * |
key, |
|
|
int |
value |
|
) |
| |
Assign a integer value for a given key to a field.
If the key id is not valid, CS_FIELD_INVALID_KEY_ID is returned. If the field category is not compatible with the key (as defined by its type flag), CS_FIELD_INVALID_CATEGORY is returned. If the data type does not match, CS_FIELD_INVALID_TYPE is returned. If the key value has been locked, CS_FIELD_LOCKED is returned.
- Returns
- 0 in case of success, > 1 in case of error
- Parameters
-
| [in] | key | key string |
| [in] | value | value |
| int set_key_int |
( |
int |
key_id, |
|
|
int |
value |
|
) |
| |
Assign a integer value for a given key to a field.
If the key id is not valid, CS_FIELD_INVALID_KEY_ID is returned. If the field category is not compatible with the key (as defined by its type flag), CS_FIELD_INVALID_CATEGORY is returned. If the data type does not match, CS_FIELD_INVALID_TYPE is returned. If the key value has been locked, CS_FIELD_LOCKED is returned.
- Returns
- 0 in case of success, > 1 in case of error
- Parameters
-
| [in] | key_id | key id |
| [in] | value | value |
| int set_key_int_bits |
( |
const char * |
key, |
|
|
int |
mask |
|
) |
| |
Set integer bits matching a mask to 1 for a given key for a field.
If the key id is not valid, CS_FIELD_INVALID_KEY_ID is returned. If the field category is not compatible with the key (as defined by its type flag), CS_FIELD_INVALID_CATEGORY is returned. If the data type does not match, CS_FIELD_INVALID_TYPE is returned. If the key value has been locked, CS_FIELD_LOCKED is returned.
- Returns
- 0 in case of success, > 1 in case of error
- Parameters
-
| [in] | key | key string |
| [in] | mask | mask |
| int set_key_int_bits |
( |
int |
key_id, |
|
|
int |
mask |
|
) |
| |
Set integer bits matching a mask to 1 for a given key for a field.
If the key id is not valid, CS_FIELD_INVALID_KEY_ID is returned. If the field category is not compatible with the key (as defined by its type flag), CS_FIELD_INVALID_CATEGORY is returned. If the data type does not match, CS_FIELD_INVALID_TYPE is returned. If the key value has been locked, CS_FIELD_LOCKED is returned.
- Returns
- 0 in case of success, > 1 in case of error
- Parameters
-
| [in] | key_id | key id |
| [in] | mask | mask |
| int set_key_str |
( |
const char * |
key, |
|
|
const char * |
str |
|
) |
| |
Assign a character string for a given key to a field.
If the key id is not valid, CS_FIELD_INVALID_KEY_ID is returned. If the field category is not compatible with the key (as defined by its type flag), CS_FIELD_INVALID_CATEGORY is returned. If the data type does not match, CS_FIELD_INVALID_TYPE is returned. If the key value has been locked, CS_FIELD_LOCKED is returned.
- Returns
- 0 in case of success, > 1 in case of error
- Parameters
-
| [in] | key | key string |
| [in] | str | string associated with the key |
| int set_key_str |
( |
int |
key_id, |
|
|
const char * |
str |
|
) |
| |
Assign a character string for a given key to a field.
If the key id is not valid, CS_FIELD_INVALID_KEY_ID is returned. If the field category is not compatible with the key (as defined by its type flag), CS_FIELD_INVALID_CATEGORY is returned. If the data type does not match, CS_FIELD_INVALID_TYPE is returned. If the key value has been locked, CS_FIELD_LOCKED is returned.
- Returns
- 0 in case of success, > 1 in case of error
- Parameters
-
| [in] | key_id | key id |
| [in] | str | string associated with the key |