LLVM  8.0.1
Classes | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
llvm::formatv_object_base Class Reference

#include "llvm/Support/FormatVariadic.h"

Inheritance diagram for llvm::formatv_object_base:
Inheritance graph
[legend]
Collaboration diagram for llvm::formatv_object_base:
Collaboration graph
[legend]

Classes

struct  create_adapters
 

Public Member Functions

 formatv_object_base (StringRef Fmt, std::size_t ParamCount)
 
 formatv_object_base (formatv_object_base const &rhs)=delete
 
 formatv_object_base (formatv_object_base &&rhs)
 
void format (raw_ostream &S) const
 
std::string str () const
 
template<unsigned N>
SmallString< Nsstr () const
 
template<unsigned N>
 operator SmallString< N > () const
 
 operator std::string () const
 

Static Public Member Functions

static std::vector< ReplacementItemparseFormatString (StringRef Fmt)
 
static Optional< ReplacementItemparseReplacementItem (StringRef Spec)
 

Static Protected Member Functions

static bool consumeFieldLayout (StringRef &Spec, AlignStyle &Where, size_t &Align, char &Pad)
 
static std::pair< ReplacementItem, StringRefsplitLiteralAndReplacement (StringRef Fmt)
 

Protected Attributes

StringRef Fmt
 
std::vector< detail::format_adapter * > Adapters
 
std::vector< ReplacementItemReplacements
 

Detailed Description

Definition at line 65 of file FormatVariadic.h.

Constructor & Destructor Documentation

◆ formatv_object_base() [1/3]

llvm::formatv_object_base::formatv_object_base ( StringRef  Fmt,
std::size_t  ParamCount 
)
inline

Definition at line 92 of file FormatVariadic.h.

◆ formatv_object_base() [2/3]

llvm::formatv_object_base::formatv_object_base ( formatv_object_base const rhs)
delete

◆ formatv_object_base() [3/3]

llvm::formatv_object_base::formatv_object_base ( formatv_object_base &&  rhs)
inline

Definition at line 99 of file FormatVariadic.h.

References Adapters.

Member Function Documentation

◆ consumeFieldLayout()

bool formatv_object_base::consumeFieldLayout ( StringRef Spec,
AlignStyle Where,
size_t &  Align,
char Pad 
)
staticprotected

◆ format()

void llvm::formatv_object_base::format ( raw_ostream S) const
inline

◆ operator SmallString< N >()

template<unsigned N>
llvm::formatv_object_base::operator SmallString< N > ( ) const
inline

Definition at line 144 of file FormatVariadic.h.

◆ operator std::string()

llvm::formatv_object_base::operator std::string ( ) const
inline

Definition at line 146 of file FormatVariadic.h.

◆ parseFormatString()

std::vector< ReplacementItem > formatv_object_base::parseFormatString ( StringRef  Fmt)
static

◆ parseReplacementItem()

Optional< ReplacementItem > formatv_object_base::parseReplacementItem ( StringRef  Spec)
static

◆ splitLiteralAndReplacement()

std::pair< ReplacementItem, StringRef > formatv_object_base::splitLiteralAndReplacement ( StringRef  Fmt)
staticprotected

◆ sstr()

template<unsigned N>
SmallString<N> llvm::formatv_object_base::sstr ( ) const
inline

Definition at line 137 of file FormatVariadic.h.

◆ str()

std::string llvm::formatv_object_base::str ( ) const
inline

Definition at line 129 of file FormatVariadic.h.

References llvm::raw_ostream::flush().

Member Data Documentation

◆ Adapters

std::vector<detail::format_adapter *> llvm::formatv_object_base::Adapters
protected

Definition at line 82 of file FormatVariadic.h.

Referenced by formatv_object_base().

◆ Fmt

StringRef llvm::formatv_object_base::Fmt
protected

Definition at line 81 of file FormatVariadic.h.

◆ Replacements

std::vector<ReplacementItem> llvm::formatv_object_base::Replacements
protected

Definition at line 83 of file FormatVariadic.h.

Referenced by parseFormatString().


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