cartodata  4.5.0
volumebase.h File Reference
#include <cartodata/config/config.h>
#include <cartodata/volume/volumeproxy.h>
#include <soma-io/utilities/allocatedvector.h>
#include <soma-io/utilities/creator.h>
#include <cartobase/allocator/allocator.h>
#include <cartobase/smart/rcptr.h>
#include <blitz/array.h>
#include <vector>
#include <iostream>
Include dependency graph for volumebase.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  carto::Volume< T >
 4D Volume main class More...
 
class  carto::Volume< T >::Position4Di
 
class  carto::DataTypeCode< Volume< T > >
 
class  carto::Creator< Volume< T > >
 
class  carto::VolumeOStream
 
class  carto::VolumeOStreamSetter
 

Namespaces

 carto
 

Functions

carto::VolumeOStream operator<< (std::ostream &out, const carto::VolumeOStreamSetter &setter)
 
template<typename T >
std::ostream & operator<< (const carto::VolumeOStream &out, const carto::Volume< T > &volume)
 
VolumeOStreamSetter carto::setMaxDim (size_t m)
 Method used to set Volume printing parameters. More...
 
template<typename T >
std::ostream & operator<< (std::ostream &out, const carto::Volume< T > &volume)
 Volumes are printable to standard output streams. More...
 

Function Documentation

carto::VolumeOStream operator<< ( std::ostream &  out,
const carto::VolumeOStreamSetter setter 
)
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.