Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::BufferedStream< Element_Type, Chunk_Size > Class Template Reference

The BufferedStream class is a template class that that performs a buffered read of Element_Type data from a VirtualFile. More...

#include <BufferedStream.hpp>

Inheritance diagram for vl::BufferedStream< Element_Type, Chunk_Size >:
vl::Object

List of all members.

Public Member Functions

 BufferedStream ()
void seek (long long pos)
bool readToken (Element_Type *token)
bool readTextChar (Element_Type &ch)
void ungetToken (const Element_Type &token)
bool bufferEmpty ()
int fillBuffer ()
bool isEndOfFile () const
void setInputFile (VirtualFile *file)
VirtualFileinputFile ()
const VirtualFileinputFile () const

Protected Attributes

ref< VirtualFilemInputFile
std::vector< Element_Type > mUngetBuffer
std::vector< Element_Type > mBuffer
int mPtr
int mSize
bool mIsEndOfFile

Detailed Description

template<class Element_Type, int Chunk_Size>
class vl::BufferedStream< Element_Type, Chunk_Size >

The BufferedStream class is a template class that that performs a buffered read of Element_Type data from a VirtualFile.

Definition at line 49 of file BufferedStream.hpp.


Constructor & Destructor Documentation

template<class Element_Type, int Chunk_Size>
vl::BufferedStream< Element_Type, Chunk_Size >::BufferedStream (  ) [inline]

Definition at line 54 of file BufferedStream.hpp.


Member Function Documentation

template<class Element_Type, int Chunk_Size>
void vl::BufferedStream< Element_Type, Chunk_Size >::seek ( long long  pos ) [inline]

Definition at line 62 of file BufferedStream.hpp.

Referenced by vl::loadMOL2().

template<class Element_Type, int Chunk_Size>
bool vl::BufferedStream< Element_Type, Chunk_Size >::readToken ( Element_Type *  token ) [inline]
template<class Element_Type, int Chunk_Size>
bool vl::BufferedStream< Element_Type, Chunk_Size >::readTextChar ( Element_Type &  ch ) [inline]

Definition at line 97 of file BufferedStream.hpp.

template<class Element_Type, int Chunk_Size>
void vl::BufferedStream< Element_Type, Chunk_Size >::ungetToken ( const Element_Type &  token ) [inline]
template<class Element_Type, int Chunk_Size>
bool vl::BufferedStream< Element_Type, Chunk_Size >::bufferEmpty (  ) [inline]
template<class Element_Type, int Chunk_Size>
int vl::BufferedStream< Element_Type, Chunk_Size >::fillBuffer (  ) [inline]
template<class Element_Type, int Chunk_Size>
bool vl::BufferedStream< Element_Type, Chunk_Size >::isEndOfFile (  ) const [inline]

Definition at line 149 of file BufferedStream.hpp.

template<class Element_Type, int Chunk_Size>
void vl::BufferedStream< Element_Type, Chunk_Size >::setInputFile ( VirtualFile file ) [inline]
template<class Element_Type, int Chunk_Size>
VirtualFile* vl::BufferedStream< Element_Type, Chunk_Size >::inputFile (  ) [inline]
template<class Element_Type, int Chunk_Size>
const VirtualFile* vl::BufferedStream< Element_Type, Chunk_Size >::inputFile (  ) const [inline]

Definition at line 159 of file BufferedStream.hpp.


Member Data Documentation

template<class Element_Type, int Chunk_Size>
ref<VirtualFile> vl::BufferedStream< Element_Type, Chunk_Size >::mInputFile [protected]
template<class Element_Type, int Chunk_Size>
std::vector<Element_Type> vl::BufferedStream< Element_Type, Chunk_Size >::mUngetBuffer [protected]
template<class Element_Type, int Chunk_Size>
std::vector<Element_Type> vl::BufferedStream< Element_Type, Chunk_Size >::mBuffer [protected]
template<class Element_Type, int Chunk_Size>
int vl::BufferedStream< Element_Type, Chunk_Size >::mPtr [protected]
template<class Element_Type, int Chunk_Size>
int vl::BufferedStream< Element_Type, Chunk_Size >::mSize [protected]
template<class Element_Type, int Chunk_Size>
bool vl::BufferedStream< Element_Type, Chunk_Size >::mIsEndOfFile [protected]

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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:06.
Permission is granted to use this page to write and publish articles regarding Visualization Library.