CppBlock Class Reference

#include <ArmarXCore/libraries/cppgen/CppBlock.h>

Public Member Functions

void addBlock (const CppBlockPtr &block)
 
void addCommentLine (const boost::basic_format< char > &line)
 
void addCommentLine (const std::string &line)
 
void addCommentLines (const std::vector< boost::basic_format< char >> &lines)
 
void addCommentLines (const std::vector< std::string > &lines)
 
void addLine (const boost::basic_format< char > &line)
 
void addLine (const std::string &line)
 
void addLineAsBlock (const std::string &line)
 
void appendBlock (const CppBlockPtr &block)
 
 CppBlock ()
 
std::string getAsSingleLine ()
 
size_t size () const
 
void writeCpp (const CppWriterPtr &writer)
 

Static Public Member Functions

static CppBlockPtr MergeBlocks (const CppBlockPtr &block1, const CppBlockPtr &block2)
 

Protected Member Functions

void addEntry (const CppBlockEntryPtr &entry)
 

Protected Attributes

std::vector< CppBlockEntryPtrentries
 

Detailed Description

Definition at line 73 of file CppBlock.h.

Constructor & Destructor Documentation

◆ CppBlock()

CppBlock ( )

Definition at line 30 of file CppBlock.cpp.

+ Here is the caller graph for this function:

Member Function Documentation

◆ addBlock()

void addBlock ( const CppBlockPtr block)

Definition at line 136 of file CppBlock.cpp.

+ Here is the caller graph for this function:

◆ addCommentLine() [1/2]

void addCommentLine ( const boost::basic_format< char > &  line)

Definition at line 111 of file CppBlock.cpp.

+ Here is the call graph for this function:

◆ addCommentLine() [2/2]

void addCommentLine ( const std::string &  line)

Definition at line 106 of file CppBlock.cpp.

+ Here is the call graph for this function:

◆ addCommentLines() [1/2]

void addCommentLines ( const std::vector< boost::basic_format< char >> &  lines)

Definition at line 126 of file CppBlock.cpp.

+ Here is the call graph for this function:

◆ addCommentLines() [2/2]

void addCommentLines ( const std::vector< std::string > &  lines)

Definition at line 116 of file CppBlock.cpp.

+ Here is the call graph for this function:

◆ addEntry()

void addEntry ( const CppBlockEntryPtr entry)
protected

Definition at line 157 of file CppBlock.cpp.

+ Here is the caller graph for this function:

◆ addLine() [1/2]

void addLine ( const boost::basic_format< char > &  line)

Definition at line 96 of file CppBlock.cpp.

+ Here is the call graph for this function:

◆ addLine() [2/2]

void addLine ( const std::string &  line)

Definition at line 90 of file CppBlock.cpp.

+ Here is the caller graph for this function:

◆ addLineAsBlock()

void addLineAsBlock ( const std::string &  line)

Definition at line 150 of file CppBlock.cpp.

+ Here is the call graph for this function:

◆ appendBlock()

void appendBlock ( const CppBlockPtr block)

Definition at line 142 of file CppBlock.cpp.

+ Here is the call graph for this function:

◆ getAsSingleLine()

std::string getAsSingleLine ( )

Definition at line 76 of file CppBlock.cpp.

◆ MergeBlocks()

CppBlockPtr MergeBlocks ( const CppBlockPtr block1,
const CppBlockPtr block2 
)
static

Definition at line 162 of file CppBlock.cpp.

+ Here is the call graph for this function:

◆ size()

size_t size ( ) const

Definition at line 101 of file CppBlock.cpp.

◆ writeCpp()

void writeCpp ( const CppWriterPtr writer)

Definition at line 56 of file CppBlock.cpp.

Member Data Documentation

◆ entries

std::vector<CppBlockEntryPtr> entries
protected

Definition at line 100 of file CppBlock.h.


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