NetCDF Assembler documentation 1.0.0
Loading...
Searching...
No Matches
variables.cc File Reference

The file containing the variables functions. More...

Functions

void update_variable_size (file_information_t &in_s_file, variable_information_t &in_s_var)
 Update the variable size.
 
size_t * get_end_variable_start (file_information_t &in_s_file, variable_information_t &in_s_var)
 Get the end index of a variable.
 
template<typename T >
bool data_is_in_variable (file_information_t &in_s_file, variable_information_t &in_s_var, T in_data)
 Check if the data is in the variable.
 
template<typename T >
size_t * get_index_from_value (file_information_t &in_s_file, variable_information_t &in_s_var, T in_data)
 Get the index from a value.
 

Detailed Description

The file containing the variables functions.

Author
Nicolas TORO

Function Documentation

◆ data_is_in_variable()

template<typename T >
bool data_is_in_variable ( file_information_t & in_s_file,
variable_information_t & in_s_var,
T in_data )

Check if the data is in the variable.

Parameters
in_s_fileThe file information
in_s_varThe variable to check
in_dataThe data to check
Returns
bool True if the data is in the variable, False otherwise

◆ get_end_variable_start()

size_t * get_end_variable_start ( file_information_t & in_s_file,
variable_information_t & in_s_var )

Get the end index of a variable.

Parameters
in_s_fileThe file information
in_s_varThe variable information
Returns
size_t * The end index

◆ get_index_from_value()

template<typename T >
size_t * get_index_from_value ( file_information_t & in_s_file,
variable_information_t & in_s_var,
T in_data )

Get the index from a value.

Parameters
in_s_fileThe file information
in_s_varThe variable information
in_dataThe data to get the index from
Returns
size_t * The index of the data

◆ update_variable_size()

void update_variable_size ( file_information_t & in_s_file,
variable_information_t & in_s_var )

Update the variable size.

Parameters
in_s_fileThe file information
in_s_varThe variable to update
Returns
void