LLVM  6.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::support::endian::Writer< endian > Struct Template Reference

Adapter to write values to a stream in a particular byte order. More...

#include "llvm/Support/EndianStream.h"

Inheritance diagram for llvm::support::endian::Writer< endian >:
Inheritance graph
[legend]
Collaboration diagram for llvm::support::endian::Writer< endian >:
Collaboration graph
[legend]

Public Member Functions

 Writer (raw_ostream &OS)
 
template<typename value_type >
void write (ArrayRef< value_type > Vals)
 
template<typename value_type >
void write (value_type Val)
 
template<>
void write (float Val)
 
template<>
void write (double Val)
 
template<>
void write (float Val)
 
template<>
void write (double Val)
 

Public Attributes

raw_ostreamOS
 

Detailed Description

template<endianness endian>
struct llvm::support::endian::Writer< endian >

Adapter to write values to a stream in a particular byte order.

Definition at line 27 of file EndianStream.h.

Constructor & Destructor Documentation

◆ Writer()

template<endianness endian>
llvm::support::endian::Writer< endian >::Writer ( raw_ostream OS)
inline

Definition at line 29 of file EndianStream.h.

Member Function Documentation

◆ write() [1/6]

template<endianness endian>
template<typename value_type >
void llvm::support::endian::Writer< endian >::write ( ArrayRef< value_type >  Vals)
inline

◆ write() [2/6]

template<endianness endian>
template<typename value_type >
void llvm::support::endian::Writer< endian >::write ( value_type  Val)
inline

Definition at line 34 of file EndianStream.h.

◆ write() [3/6]

template<>
void llvm::support::endian::Writer< little >::write< float > ( float  Val)
inline

Definition at line 42 of file EndianStream.h.

◆ write() [4/6]

template<>
void llvm::support::endian::Writer< little >::write< double > ( double  Val)
inline

Definition at line 48 of file EndianStream.h.

◆ write() [5/6]

template<>
void llvm::support::endian::Writer< big >::write< float > ( float  Val)
inline

Definition at line 54 of file EndianStream.h.

◆ write() [6/6]

template<>
void llvm::support::endian::Writer< big >::write< double > ( double  Val)
inline

Definition at line 60 of file EndianStream.h.

Member Data Documentation

◆ OS

template<endianness endian>
raw_ostream& llvm::support::endian::Writer< endian >::OS

Definition at line 28 of file EndianStream.h.


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