LLVM 22.0.0git
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< TIterator

Public Member Functions

 FixedStreamArray ()=default
 FixedStreamArray (BinaryStreamRef Stream)
bool operator== (const FixedStreamArray< T > &Other) const
bool operator!= (const FixedStreamArray< T > &Other) const
 FixedStreamArray (const FixedStreamArray &)=default
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 259 of file BinaryStreamArray.h.

Member Typedef Documentation

◆ Iterator

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

Definition at line 263 of file BinaryStreamArray.h.

Constructor & Destructor Documentation

◆ FixedStreamArray() [1/3]

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

◆ FixedStreamArray() [2/3]

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

Definition at line 266 of file BinaryStreamArray.h.

◆ FixedStreamArray() [3/3]

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

Member Function Documentation

◆ back()

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

Definition at line 308 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

Definition at line 297 of file BinaryStreamArray.h.

◆ 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 307 of file BinaryStreamArray.h.

◆ getUnderlyingStream()

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

Definition at line 313 of file BinaryStreamArray.h.

◆ operator!=()

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

Definition at line 274 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 270 of file BinaryStreamArray.h.

◆ operator[]()

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

Definition at line 281 of file BinaryStreamArray.h.

◆ size()

◆ FixedStreamArrayIterator< T >


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