LLVM: llvm::xray::LogBuilder Class Reference (original) (raw)
The LogBuilder class allows for creating ad-hoc collections of records through the add<...>(...) function. More...
#include "[llvm/XRay/FDRLogBuilder.h](FDRLogBuilder%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| template<class R, class... T> | |
| LogBuilder & | add (T &&... A) |
| std::vector< std::unique_ptr< Record > > | consume () |
The LogBuilder class allows for creating ad-hoc collections of records through the add<...>(...) function.
An example use of this API is in crafting arbitrary sequences of records:
auto Records = LogBuilder() .add(256) .add(1) .consume();
Definition at line 24 of file FDRLogBuilder.h.
◆ add()
template<class R, class... T>
| LogBuilder & llvm::xray::LogBuilder::add ( T &&... A) | inline |
|---|
◆ consume()
| std::vector< std::unique_ptr< Record > > llvm::xray::LogBuilder::consume ( ) | inline |
|---|
The documentation for this class was generated from the following file:
- include/llvm/XRay/FDRLogBuilder.h