MLIR  20.0.0git
Classes | Public Member Functions | Protected Attributes | List of all members
mlir::tblgen::FmtObjectBase Class Reference

#include "mlir/TableGen/Format.h"

+ Inheritance diagram for mlir::tblgen::FmtObjectBase:

Classes

struct  CreateAdapters
 

Public Member Functions

 FmtObjectBase (StringRef fmt, const FmtContext *ctx, size_t numParams)
 
 FmtObjectBase (const FmtObjectBase &that)=delete
 
 FmtObjectBase (FmtObjectBase &&that)
 
void format (llvm::raw_ostream &s) const
 
std::string str () const
 
template<unsigned N>
SmallString< N > sstr () const
 
template<unsigned N>
 operator SmallString< N > () const
 
 operator std::string () const
 

Protected Attributes

StringRef fmt
 
const FmtContextcontext
 
std::vector< llvm::support::detail::format_adapter * > adapters
 
std::vector< FmtReplacementreplacements
 

Detailed Description

Definition at line 121 of file Format.h.

Constructor & Destructor Documentation

◆ FmtObjectBase() [1/3]

mlir::tblgen::FmtObjectBase::FmtObjectBase ( StringRef  fmt,
const FmtContext ctx,
size_t  numParams 
)
inline

Definition at line 148 of file Format.h.

◆ FmtObjectBase() [2/3]

mlir::tblgen::FmtObjectBase::FmtObjectBase ( const FmtObjectBase that)
delete

◆ FmtObjectBase() [3/3]

mlir::tblgen::FmtObjectBase::FmtObjectBase ( FmtObjectBase &&  that)
inline

Definition at line 153 of file Format.h.

Member Function Documentation

◆ format()

void FmtObjectBase::format ( llvm::raw_ostream &  s) const

◆ operator SmallString< N >()

template<unsigned N>
mlir::tblgen::FmtObjectBase::operator SmallString< N > ( ) const
inline

Definition at line 176 of file Format.h.

◆ operator std::string()

mlir::tblgen::FmtObjectBase::operator std::string ( ) const
inline

Definition at line 180 of file Format.h.

References str().

◆ sstr()

template<unsigned N>
SmallString<N> mlir::tblgen::FmtObjectBase::sstr ( ) const
inline

Definition at line 168 of file Format.h.

References format().

◆ str()

std::string mlir::tblgen::FmtObjectBase::str ( ) const
inline

Definition at line 160 of file Format.h.

References format().

Referenced by operator std::string().

Member Data Documentation

◆ adapters

std::vector<llvm::support::detail::format_adapter *> mlir::tblgen::FmtObjectBase::adapters
protected

◆ context

const FmtContext* mlir::tblgen::FmtObjectBase::context
protected

Definition at line 143 of file Format.h.

Referenced by format().

◆ fmt

StringRef mlir::tblgen::FmtObjectBase::fmt
protected

Definition at line 142 of file Format.h.

◆ replacements

std::vector<FmtReplacement> mlir::tblgen::FmtObjectBase::replacements
protected

Definition at line 145 of file Format.h.

Referenced by format().


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