cartodata  4.5.0
volumebase_d_inline.h File Reference
#include <cartodata/volume/volumebase.h>
#include <cartobase/object/object.h>
#include <iomanip>
Include dependency graph for volumebase_d_inline.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 carto
 

Functions

template<typename T >
carto::Object carto::getObjectHeader (Volume< T > &obj)
 
template<typename T >
std::ostream & operator<< (std::ostream &out, const carto::Volume< T > &volume)
 Volumes are printable to standard output streams. More...
 
template<typename T >
std::ostream & operator<< (const carto::VolumeOStream &out, const carto::Volume< T > &volume)
 

Function Documentation

template<typename T >
std::ostream& operator<< ( std::ostream &  out,
const carto::Volume< T > &  volume 
)
inline

Volumes are printable to standard output streams.

They are shown as an array, eventually cropped at a given size. The default crop value is 5 in each dimension. The crop value can be set with setMaxDim() the following way:

#include <iostream>
using namespace carto;
using namespace std;
carto::Volume<int16_t> vol( 10, 10, 10 );
cout << setMaxDim( 10 ) << vol << endl;

Definition at line 229 of file volumebase_d_inline.h.