TECA
Public Types | Public Member Functions | Public Attributes | List of all members
teca_array_attributes Struct Reference

Public Types

enum  {
  invalid_value = 0, cell_centering = 0x0100, x_face_centering = 0x0201, y_face_centering = 0x0202,
  z_face_centering = 0x0203, x_edge_centering = 0x0401, y_edge_centering = 0x0402, z_edge_centering = 0x0403,
  point_centering = 0x0800, no_centering = 0x1000
}
 
using fill_value_t = std::variant< char, unsigned char, short, unsigned short, int, unsigned int, long, unsigned long, long long, unsigned long long, float, double >
 

Public Member Functions

template<typename fv_t = float>
 teca_array_attributes (unsigned int tc, unsigned int cen, unsigned long n, const std::string &un, const std::string &ln, const std::string &descr, const int &have_fv=0, const fv_t &fv=fv_t(1e20f))
 
 teca_array_attributes (const teca_array_attributes &)=default
 
teca_array_attributesoperator= (const teca_array_attributes &)=default
 
 teca_array_attributes (const teca_metadata &md)
 
teca_array_attributesoperator= (const teca_metadata &md)
 
 operator teca_metadata () const
 
int to (teca_metadata &md) const
 
int merge_to (teca_metadata &md) const
 
int from (const teca_metadata &md)
 
void to_stream (std::ostream &os)
 

Public Attributes

unsigned int type_code
 
unsigned int centering
 
unsigned long size
 
std::string units
 
std::string long_name
 
std::string description
 
int have_fill_value
 
fill_value_t fill_value
 

The documentation for this struct was generated from the following files: