LLVM 19.0.0git
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
 
 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

◆ 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.

References llvm::FixedStreamArray< T >::end(), and I.

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

References llvm::FixedStreamArray< T >::begin().

◆ 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.

References llvm::Other.

◆ 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.

References llvm::Other.

◆ operator[]()

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

◆ size()

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

Friends And Related Function Documentation

◆ FixedStreamArrayIterator< T >

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

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