34 #ifndef CARTOBASE_TYPE_VOXELVALUE_D_H
35 #define CARTOBASE_TYPE_VOXELVALUE_D_H
47 template <
typename T,
unsigned int C>
50 #ifdef CARTO_DEBUG_VOXELVALUE
51 std::cout <<
"VOXELVALUE:: constructor()" << std::endl;
55 template <
typename T,
unsigned int C>
58 #ifdef CARTO_DEBUG_VOXELVALUE
59 std::cout <<
"VOXELVALUE:: constructor( other )" << std::endl;
64 template <
typename T,
unsigned int C>
67 #ifdef CARTO_DEBUG_VOXELVALUE
68 std::cout <<
"VOXELVALUE:: destructor()" << std::endl;
76 template <
typename T,
unsigned int C>
inline
79 #ifdef CARTO_DEBUG_VOXELVALUE
80 std::cout <<
"VOXELVALUE:: VV == VV" << std::endl;
84 if( (*
this)[ i ] != aa[ i ] )
89 template <
typename T,
unsigned int C>
inline
92 #ifdef CARTO_DEBUG_VOXELVALUE
93 std::cout <<
"VOXELVALUE:: VV != VV" << std::endl;
95 return !( (*this) == aa );
98 template <
typename T,
unsigned int C>
101 #ifdef CARTO_DEBUG_VOXELVALUE
102 std::cout <<
"VOXELVALUE:: VV == const" << std::endl;
106 if( (*
this)[ i ] != bb )
111 template <
typename T,
unsigned int C>
inline
114 #ifdef CARTO_DEBUG_VOXELVALUE
115 std::cout <<
"VOXELVALUE:: VV != const" << std::endl;
117 return !( (*this) == bb );
121 template <
typename T,
unsigned int C>
124 #ifdef CARTO_DEBUG_VOXELVALUE
125 std::cout <<
"VOXELVALUE:: bool()" << std::endl;
129 if( (*
this)[ i ] != T(0) )
Base class for any multichannel data (RGB, RGBA, HSV, ...)
bool operator==(const VoxelValue< T, C > &) const
bool operator!=(const VoxelValue< T, C > &) const