LLVM  6.0.0svn
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 >:
Inheritance graph
[legend]

Public Types

typedef FixedStreamArrayIterator< TIterator
 

Public Member Functions

 FixedStreamArray ()=default
 
 FixedStreamArray (BinaryStreamRef Stream)
 
bool operator== (const FixedStreamArray< T > &Other) const
 
bool operator!= (const FixedStreamArray< T > &Other) const
 
FixedStreamArrayoperator= (const FixedStreamArray &)=default
 
const Toperator[] (uint32_t Index) const
 
uint32_t size () const
 
bool empty () const
 
FixedStreamArrayIterator< Tbegin () const
 
FixedStreamArrayIterator< Tend () const
 
const Tfront () const
 
const Tback () 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

◆ Iterator

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

Definition at line 250 of file BinaryStreamArray.h.

Constructor & Destructor Documentation

◆ FixedStreamArray() [1/2]

template<typename T>
llvm::FixedStreamArray< T >::FixedStreamArray ( )
default

◆ FixedStreamArray() [2/2]

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

Definition at line 253 of file BinaryStreamArray.h.

Member Function Documentation

◆ back()

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

Definition at line 294 of file BinaryStreamArray.h.

◆ begin()

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

◆ empty()

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

◆ end()

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

◆ front()

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

Definition at line 293 of file BinaryStreamArray.h.

◆ getUnderlyingStream()

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

Definition at line 299 of file BinaryStreamArray.h.

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

◆ operator!=()

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

Definition at line 261 of file BinaryStreamArray.h.

◆ operator=()

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

◆ operator==()

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

Definition at line 257 of file BinaryStreamArray.h.

◆ operator[]()

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

Definition at line 267 of file BinaryStreamArray.h.

◆ size()

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

Definition at line 281 of file BinaryStreamArray.h.

Friends And Related Function Documentation

◆ FixedStreamArrayIterator< T >

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: