38 #ifndef PCL_FEATURES_REGION_XY_
39 #define PCL_FEATURES_REGION_XY_
47 void read (std::istream & stream, Type & value)
49 stream.read (
reinterpret_cast<char*
> (&value),
sizeof(value));
54 void read (std::istream & stream, Type * value,
int nr_values)
56 for (
int value_index = 0; value_index < nr_values; ++value_index)
58 read (stream, value[value_index]);
64 void write (std::ostream & stream, Type value)
66 stream.write (
reinterpret_cast<char*
> (&value),
sizeof (value));
71 void write (std::ostream & stream, Type * value,
int nr_values)
73 for (
int value_index = 0; value_index < nr_values; ++value_index)
75 write (stream, value[value_index]);
85 RegionXY () : x (0), y (0), width (0), height (0) {}
103 write (stream, width);
104 write (stream, height);
114 read (stream, width);
115 read (stream, height);
121 #endif // PCL_FEATURES_REGION_XY_