1 #ifndef teca_uniform_cartesian_mesh_h
2 #define teca_uniform_cartesian_mesh_h
4 #include "teca_config.h"
15 TECA_DATASET_NEW_INSTANCE()
16 TECA_DATASET_NEW_COPY()
21 TECA_DATASET_METADATA(time,
double, 1)
22 TECA_DATASET_METADATA(time_step,
unsigned long, 1)
23 TECA_DATASET_METADATA(spacing,
double, 3)
24 TECA_DATASET_METADATA(origin,
double, 3)
25 TECA_DATASET_METADATA(extent,
unsigned long, 6)
26 TECA_DATASET_METADATA(whole_extent,
unsigned long, 6)
29 unsigned long get_number_of_points() const override;
32 unsigned long get_number_of_cells() const override;
35 std::
string get_class_name()
const override
36 {
return "teca_uniform_cartesian_mesh"; }
39 int get_type_code()
const override;
42 void copy(
const const_p_teca_dataset &other,
43 allocator alloc = allocator::malloc)
override;
46 void shallow_copy(
const p_teca_dataset &other)
override;
49 void swap(
const p_teca_dataset &)
override;