MLIR 22.0.0git
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

◆ FmtObjectBase() [2/3]

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

References FmtObjectBase().

◆ FmtObjectBase() [3/3]

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

Definition at line 153 of file Format.h.

References adapters, context, fmt, FmtObjectBase(), and replacements.

Member Function Documentation

◆ format()

◆ operator SmallString< N >()

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

Definition at line 176 of file Format.h.

References sstr().

◆ 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(), and result.

Referenced by operator SmallString< N >().

◆ str()

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

Definition at line 160 of file Format.h.

References format(), and result.

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 FmtObjectBase(), FmtObjectBase(), and format().

◆ fmt

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

◆ replacements

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

Definition at line 145 of file Format.h.

Referenced by FmtObjectBase(), FmtObjectBase(), and format().


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