HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::io::Segment Struct Reference

This class defines all the data stored in segment of a file. More...

#include <IO.h>

Public Member Functions

 Segment (Codec c=Codec::NONE)
 
template<typename BufferT >
void add (const GridHandle< BufferT > &h)
 
bool read (std::istream &is)
 
void write (std::ostream &os) const
 
uint64_t memUsage () const
 

Public Attributes

FileHeader header
 
std::vector< FileGridMetaDatameta
 

Detailed Description

This class defines all the data stored in segment of a file.

A segment consists of a FileHeader followed by a list of FileGridMetaData each followed by grid names and then finally the grids themselves.

Definition at line 167 of file IO.h.

Constructor & Destructor Documentation

nanovdb::io::Segment::Segment ( Codec  c = Codec::NONE)
inline

Definition at line 173 of file IO.h.

Member Function Documentation

template<typename BufferT >
void nanovdb::io::Segment::add ( const GridHandle< BufferT > &  h)
inline

Definition at line 367 of file IO.h.

uint64_t nanovdb::io::Segment::memUsage ( ) const
inline

Definition at line 359 of file IO.h.

bool nanovdb::io::Segment::read ( std::istream &  is)
inline

Definition at line 431 of file IO.h.

void nanovdb::io::Segment::write ( std::ostream &  os) const
inline

Definition at line 421 of file IO.h.

Member Data Documentation

FileHeader nanovdb::io::Segment::header

Definition at line 170 of file IO.h.

std::vector<FileGridMetaData> nanovdb::io::Segment::meta

Definition at line 172 of file IO.h.


The documentation for this struct was generated from the following file: