LLVM  5.0.0
Public Types | Public Member Functions | Friends | List of all members
llvm::FixedStreamArray< T > Class Template Reference

FixedStreamArray is similar to VarStreamArray, except with each record having a fixed-length. More...

#include "llvm/Support/BinaryStreamArray.h"

Inheritance diagram for llvm::FixedStreamArray< T >:
[legend]

Public Types

typedef
FixedStreamArrayIterator< T > 
Iterator
 

Public Member Functions

 FixedStreamArray ()=default
 
 FixedStreamArray (BinaryStreamRef Stream)
 
bool operator== (const FixedStreamArray< T > &Other) const
 
bool operator!= (const FixedStreamArray< T > &Other) const
 
FixedStreamArray & operator= (const FixedStreamArray &)=default
 
const T & operator[] (uint32_t Index) const
 
uint32_t size () const
 
bool empty () const
 
FixedStreamArrayIterator< T > begin () const
 
FixedStreamArrayIterator< T > end () const
 
const T & front () const
 
const T & back () const
 
BinaryStreamRef getUnderlyingStream () const
 

Friends

class FixedStreamArrayIterator< T >
 

Detailed Description

template<typename T>
class llvm::FixedStreamArray< T >

FixedStreamArray is similar to VarStreamArray, except with each record having a fixed-length.

As with VarStreamArray, there is no upfront cost associated with building or copying a FixedStreamArray, as the memory for each element is not read from the backing stream until that element is iterated.

Definition at line 246 of file BinaryStreamArray.h.

Member Typedef Documentation

template<typename T>
typedef FixedStreamArrayIterator<T> llvm::FixedStreamArray< T >::Iterator

Definition at line 250 of file BinaryStreamArray.h.

Constructor & Destructor Documentation

template<typename T>
llvm::FixedStreamArray< T >::FixedStreamArray ( )
default
template<typename T>
llvm::FixedStreamArray< T >::FixedStreamArray ( BinaryStreamRef  Stream)
inlineexplicit

Definition at line 253 of file BinaryStreamArray.h.

Member Function Documentation

template<typename T>
const T& llvm::FixedStreamArray< T >::back ( ) const
inline

Definition at line 294 of file BinaryStreamArray.h.

template<typename T>
FixedStreamArrayIterator<T> llvm::FixedStreamArray< T >::begin ( ) const
inline
template<typename T>
bool llvm::FixedStreamArray< T >::empty ( ) const
inline

Definition at line 283 of file BinaryStreamArray.h.

template<typename T>
FixedStreamArrayIterator<T> llvm::FixedStreamArray< T >::end ( ) const
inline
template<typename T>
const T& llvm::FixedStreamArray< T >::front ( ) const
inline

Definition at line 293 of file BinaryStreamArray.h.

template<typename T>
BinaryStreamRef llvm::FixedStreamArray< T >::getUnderlyingStream ( ) const
inline

Definition at line 299 of file BinaryStreamArray.h.

Referenced by llvm::BinaryStreamWriter::writeArray().

template<typename T>
bool llvm::FixedStreamArray< T >::operator!= ( const FixedStreamArray< T > &  Other) const
inline

Definition at line 261 of file BinaryStreamArray.h.

template<typename T>
FixedStreamArray& llvm::FixedStreamArray< T >::operator= ( const FixedStreamArray< T > &  )
default
template<typename T>
bool llvm::FixedStreamArray< T >::operator== ( const FixedStreamArray< T > &  Other) const
inline

Definition at line 257 of file BinaryStreamArray.h.

template<typename T>
const T& llvm::FixedStreamArray< T >::operator[] ( uint32_t  Index) const
inline

Definition at line 267 of file BinaryStreamArray.h.

template<typename T>
uint32_t llvm::FixedStreamArray< T >::size ( ) const
inline

Friends And Related Function Documentation

template<typename T>
friend class FixedStreamArrayIterator< T >
friend

Definition at line 247 of file BinaryStreamArray.h.


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