Doxygen
|
Text streaming class that buffers data. 更多...
#include <textstream.h>
Public 成员函数 | |
TextStream () | |
Creates an empty stream object. 更多... | |
TextStream (std::ostream *s) | |
Create a text stream object for writing to a std::ostream. 更多... | |
TextStream (const std::string &s) | |
Create a text stream, initializing the buffer with string s 更多... | |
~TextStream () | |
Writes any data that is buffered to the attached std::ostream 更多... | |
TextStream (const TextStream &)=delete | |
TextStream & | operator= (const TextStream &)=delete |
void | setStream (std::ostream *s) |
Sets or changes the std::ostream to write to. 更多... | |
void | setFile (FILE *f) |
std::ostream * | stream () const |
Returns the attached std::ostream object. 更多... | |
FILE * | file () const |
TextStream & | operator<< (char c) |
Adds a character to the stream 更多... | |
TextStream & | operator<< (const char *s) |
Adds a C-style string to the stream 更多... | |
TextStream & | operator<< (const QCString &s) |
Adds a QCString to the stream 更多... | |
TextStream & | operator<< (const std::string &s) |
Adds a std::string to the stream 更多... | |
TextStream & | operator<< (signed short i) |
Adds a signed short integer to the stream 更多... | |
TextStream & | operator<< (unsigned short i) |
Adds a unsigned short integer to the stream 更多... | |
TextStream & | operator<< (signed int i) |
Adds a signed integer to the stream 更多... | |
TextStream & | operator<< (unsigned int i) |
Adds a unsigned integer to the stream 更多... | |
TextStream & | operator<< (float f) |
Adds a float to the stream 更多... | |
TextStream & | operator<< (double d) |
Adds a double to the stream 更多... | |
void | write (const char *buf, size_t len) |
Adds a array of character to the stream 更多... | |
void | flush () |
Flushes the buffer. 更多... | |
void | clear () |
Clears any buffered data 更多... | |
std::string | str () const |
Return the contents of the buffer as a std::string object 更多... | |
void | str (const std::string &s) |
Sets the buffer's contents to string s. 更多... | |
void | str (const char *s) |
Sets the buffer's contents to string s Any data already in the buffer will be flushed. 更多... | |
bool | empty () const |
Returns true iff the buffer is empty 更多... | |
Private 成员函数 | |
void | output_int32 (uint32_t n, bool neg) |
Writes a string representation of an integer to the buffer 更多... | |
void | output_double (double d) |
Private 属性 | |
std::string | m_buffer |
std::ostream * | m_s = nullptr |
FILE * | m_f = nullptr |
静态 Private 属性 | |
static const int | INITIAL_CAPACITY = 4096 |
Text streaming class that buffers data.
Simpler version of std::ostringstream that has much better performance.
在文件 textstream.h 第 33 行定义.
|
inline |
|
inline |
Create a text stream object for writing to a std::ostream.
在文件 textstream.h 第 59 行定义.
|
inline |
|
inline |
|
delete |
|
inline |
|
inline |
Returns true iff the buffer is empty
在文件 textstream.h 第 232 行定义.
被这些函数引用 HtmlGenerator::endClassDiagram(), ClassContext::Private::inheritanceDiagram(), insertMapFile(), DotFilePatcher::run() , 以及 writeDotImageMapFromFile().
|
inline |
|
inline |
Flushes the buffer.
If a std::ostream is attached, the buffer's contents will be written to the stream.
在文件 textstream.h 第 188 行定义.
引用了 m_buffer.
被这些函数引用 clear(), OutputGenerator::endPlainFile(), FormulaManager::generateImages(), RTFGenerator::preProcessFileInplace(), TemplateNodeMsg::render(), DotFilePatcher::run(), str(), TextStream(), FlowChart::writeFlowChart() , 以及 VhdlDocGen::writeOverview().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
|
inlineprivate |
在文件 textstream.h 第 255 行定义.
被这些函数引用 operator<<().
|
inlineprivate |
Writes a string representation of an integer to the buffer
n | the absolute value of the integer |
neg | indicates if the integer is negative |
在文件 textstream.h 第 242 行定义.
引用了 m_buffer.
被这些函数引用 operator<<().
|
inline |
|
inline |
Sets or changes the std::ostream to write to.
在文件 textstream.h 第 79 行定义.
引用了 m_s.
被这些函数引用 OutputGenerator::endPlainFile() , 以及 DotFilePatcher::run().
|
inline |
Return the contents of the buffer as a std::string object
在文件 textstream.h 第 208 行定义.
被这些函数引用 addConceptToContext(), addEnumValuesToEnums(), addMemberDocs(), addVariableToClass(), addVariableToFile(), MemberContext::Private::callerGraph(), MemberContext::Private::callGraph(), ClassContext::Private::collaborationDiagram(), DotGraph::computeGraph(), DotGroupCollaboration::computeTheGraph(), DotLegendGraph::computeTheGraph(), DotGfxHierarchyTable::computeTheGraph(), DotDirDeps::computeTheGraph(), convertToLaTeX(), InheritanceGraphContext::Private::createGraph(), createLinkedText(), DirContext::Private::dirGraph(), QhpXmlWriter::dumpTo(), HtmlGenerator::endClassDiagram(), Entry::Entry(), escapeCommas(), getMscImageMapFromFile(), getSearchBox(), ModuleContext::Private::groupGraph(), FileContext::Private::includedByGraph(), FileContext::Private::includeGraph(), ClassContext::Private::inheritanceDiagram(), QhpXmlWriter::insert(), insertMapFile(), latexEscapeIndexChars(), latexEscapeLabelName(), latexEscapePDFString(), latexFilterURL(), parseCode(), parseCommentAsText(), parseDoc(), LatexSpaceless::remove(), HtmlSpaceless::remove(), removeAnonymousScopes(), TemplateNodeBlock::render(), TemplateNodeCreate::render(), TemplateNodeTree::renderChildren(), Entry::reset(), DotFilePatcher::run(), searchId(), stripIndentation(), substituteLatexKeywords(), templateSpec(), writeAnnotatedIndexGeneric(), writeConceptIndex(), ConceptDefImpl::writeDefinition(), writeDotImageMapFromFile(), writeFileIndex(), writeGroupIndex(), writeHierarchicalExceptionIndex(), writeHierarchicalIndex(), writeHierarchicalInterfaceIndex(), writeNamespaceIndex() , 以及 writePageIndex().
|
inline |
Sets the buffer's contents to string s Any data already in the buffer will be flushed.
在文件 textstream.h 第 225 行定义.
|
inline |
Sets the buffer's contents to string s.
Any data already in the buffer will be flushed.
在文件 textstream.h 第 216 行定义.
|
inline |
Returns the attached std::ostream object.
在文件 textstream.h 第 96 行定义.
被这些函数引用 OutputGenerator::operator=() , 以及 OutputGenerator::OutputGenerator().
|
inline |
Adds a array of character to the stream
buf | the character buffer |
len | the number of characters in the buffer to write |
在文件 textstream.h 第 180 行定义.
被这些函数引用 DotGfxHierarchyTable::computeTheGraph(), generateXML() , 以及 writeUTF8Char().
|
staticprivate |
在文件 textstream.h 第 48 行定义.
被这些函数引用 TextStream().
|
private |
在文件 textstream.h 第 261 行定义.
被这些函数引用 clear(), file(), flush(), operator<<(), output_int32(), str() , 以及 TextStream().
|
private |
在文件 textstream.h 第 263 行定义.
被这些函数引用 TextStream().
|
private |
在文件 textstream.h 第 262 行定义.
被这些函数引用 setStream() , 以及 TextStream().