systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
systemc_clang::SplitCFGPathInfo Class Reference

#include <SplitCFG.h>

Collaboration diagram for systemc_clang::SplitCFGPathInfo:
Collaboration graph
[legend]

Public Types

using SplitCFGBlockPtrVector = llvm::SmallVector<const SplitCFGBlock *>
 

Public Member Functions

 SplitCFGPathInfo (const SplitCFGBlock *block)
 class SplitCFGPathInfo
 
 SplitCFGPathInfo (const SplitCFGPathInfo &from)
 Copy constructor for SplitCFGPathInfo.
 
SplitCFGPathInfooperator= (const SplitCFGPathInfo &from)
 
virtual ~SplitCFGPathInfo ()
 
bool isTruePathValid () const
 Return if there is a valid TRUE path.
 
bool isFalsePathValid () const
 Return if there is a valid FALSE path.
 
const SplitCFGBlockPtrVectorgetTruePath () const
 Return the list of blocks visited on the TRUE path.
 
const SplitCFGBlockPtrVectorgetFalsePath () const
 Return the list of blocks visited on the FALSE path.
 
std::string toStringFalsePath () const
 Converts the TRUE path into a string for testing.
 
std::string toStringTruePath () const
 Converts the FALSE path into a string for testing.
 
void dump () const
 Dump the paths.
 

Private Attributes

const SplitCFGBlocksplit_block_
 
const clang::CFGBlock * cfg_block_
 
int path_idx_
 
SplitCFGBlockPtrVector false_path_
 
SplitCFGBlockPtrVector true_path_
 

Friends

class SplitCFG
 

Detailed Description

===========================================

SplitCFGPathInfo

Definition at line 43 of file SplitCFG.h.

Member Typedef Documentation

◆ SplitCFGBlockPtrVector

Definition at line 45 of file SplitCFG.h.

Constructor & Destructor Documentation

◆ SplitCFGPathInfo() [1/2]

SplitCFGPathInfo::SplitCFGPathInfo ( const SplitCFGBlock * block)

class SplitCFGPathInfo

Definition at line 55 of file SplitCFG.cpp.

◆ SplitCFGPathInfo() [2/2]

SplitCFGPathInfo::SplitCFGPathInfo ( const SplitCFGPathInfo & from)

Copy constructor for SplitCFGPathInfo.

Definition at line 61 of file SplitCFG.cpp.

◆ ~SplitCFGPathInfo()

SplitCFGPathInfo::~SplitCFGPathInfo ( )
virtual

Definition at line 115 of file SplitCFG.cpp.

Member Function Documentation

◆ dump()

void SplitCFGPathInfo::dump ( ) const

Dump the paths.

Definition at line 101 of file SplitCFG.cpp.

◆ getFalsePath()

const SplitCFGBlockPtrVector & systemc_clang::SplitCFGPathInfo::getFalsePath ( ) const
inline

Return the list of blocks visited on the FALSE path.

Definition at line 68 of file SplitCFG.h.

◆ getTruePath()

const SplitCFGBlockPtrVector & systemc_clang::SplitCFGPathInfo::getTruePath ( ) const
inline

Return the list of blocks visited on the TRUE path.

Definition at line 65 of file SplitCFG.h.

◆ isFalsePathValid()

bool systemc_clang::SplitCFGPathInfo::isFalsePathValid ( ) const
inline

Return if there is a valid FALSE path.

Definition at line 62 of file SplitCFG.h.

◆ isTruePathValid()

bool systemc_clang::SplitCFGPathInfo::isTruePathValid ( ) const
inline

Return if there is a valid TRUE path.

Definition at line 59 of file SplitCFG.h.

◆ operator=()

SplitCFGPathInfo & SplitCFGPathInfo::operator= ( const SplitCFGPathInfo & from)

Definition at line 65 of file SplitCFG.cpp.

◆ toStringFalsePath()

std::string SplitCFGPathInfo::toStringFalsePath ( ) const

Converts the TRUE path into a string for testing.

Definition at line 75 of file SplitCFG.cpp.

◆ toStringTruePath()

std::string SplitCFGPathInfo::toStringTruePath ( ) const

Converts the FALSE path into a string for testing.

Definition at line 88 of file SplitCFG.cpp.

Friends And Related Symbol Documentation

◆ SplitCFG

friend class SplitCFG
friend

Definition at line 46 of file SplitCFG.h.

Member Data Documentation

◆ cfg_block_

const clang::CFGBlock* systemc_clang::SplitCFGPathInfo::cfg_block_
private

Definition at line 83 of file SplitCFG.h.

◆ false_path_

SplitCFGBlockPtrVector systemc_clang::SplitCFGPathInfo::false_path_
private

Definition at line 85 of file SplitCFG.h.

◆ path_idx_

int systemc_clang::SplitCFGPathInfo::path_idx_
private

Definition at line 84 of file SplitCFG.h.

◆ split_block_

const SplitCFGBlock* systemc_clang::SplitCFGPathInfo::split_block_
private

Definition at line 82 of file SplitCFG.h.

◆ true_path_

SplitCFGBlockPtrVector systemc_clang::SplitCFGPathInfo::true_path_
private

Definition at line 86 of file SplitCFG.h.


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