30 #ifndef LVR2_TYPES_CHANNEL 31 #define LVR2_TYPES_CHANNEL 35 #include <boost/optional.hpp> 36 #include <boost/shared_array.hpp> 46 using Ptr = std::shared_ptr<Channel<T> >;
66 friend std::ostream& operator<<(std::ostream& os, const Channel<T>& ch)
68 os <<
"size: [" << ch.numElements() <<
"," << ch.width() <<
"]";
106 #include "Channel.tcc" 108 #endif // LVR2_TYPES_CHANNEL
boost::shared_array< float > DataPtr
const DataPtr dataPtr() const
DoubleChannel::Ptr DoubleChannelPtr
UCharChannel::Optional UCharChannelOptional
IndexChannel::Ptr IndexChannelPtr
FloatChannel::Optional FloatChannelOptional
boost::optional< Channel< float > > Optional
UCharChannel::Ptr UCharChannelPtr
IndexChannel::Optional IndexChannelOptional
ElementProxy< T > operator[](const unsigned &idx)
FloatChannel::Ptr FloatChannelPtr
Channel< T > clone() const
typename Channel< T >::Optional ChannelOptional
size_t numElements() const
std::shared_ptr< Channel< float > > Ptr
DoubleChannel::Optional DoubleChannelOptional
typename Channel< T >::Ptr ChannelPtr