Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
bvh::v2::StdInputStream Class Reference

Stream adapter for standard library input streams.

Definition at line 35 of file stream.h.

Public Member Functions

 StdInputStream (std::istream &stream)
 
template<typename T >
read (T &&default_val={})
 
- Public Member Functions inherited from bvh::v2::InputStream
template<typename T >
read (T &&default_val={})
 

Protected Member Functions

size_t read_raw (void *data, size_t size) override
 

Protected Attributes

std::istream & stream_
 

#include <bvh/v2/stream.h>

Inheritance diagram for bvh::v2::StdInputStream:
[legend]

Constructor & Destructor Documentation

◆ StdInputStream()

bvh::v2::StdInputStream::StdInputStream ( std::istream &  stream)
inline

Definition at line 37 of file stream.h.

Member Function Documentation

◆ read()

template<typename T >
T bvh::v2::InputStream::read ( T &&  default_val = {})
inline

Definition at line 13 of file stream.h.

◆ read_raw()

size_t bvh::v2::StdInputStream::read_raw ( void *  data,
size_t  size 
)
inlineoverrideprotectedvirtual

Implements bvh::v2::InputStream.

Definition at line 46 of file stream.h.

Member Data Documentation

◆ stream_

std::istream& bvh::v2::StdInputStream::stream_
protected

Definition at line 44 of file stream.h.

  • geom/geom/inc/bvh/v2/stream.h