Cppcheck
Public Member Functions | Public Attributes | List of all members
ProgramMemoryState Struct Reference

#include <programmemory.h>

Public Member Functions

 ProgramMemoryState (const Settings *s)
 
void insert (const ProgramMemory &pm, const Token *origin=nullptr)
 
void replace (ProgramMemory pm, const Token *origin=nullptr)
 
void addState (const Token *tok, const ProgramMemory::Map &vars)
 
void assume (const Token *tok, bool b, bool isEmpty=false)
 
void removeModifiedVars (const Token *tok)
 
ProgramMemory get (const Token *tok, const Token *ctx, const ProgramMemory::Map &vars) const
 

Public Attributes

ProgramMemory state
 
std::map< nonneg int, const Token * > origins
 
const Settingssettings
 

Detailed Description

Definition at line 164 of file programmemory.h.

Constructor & Destructor Documentation

◆ ProgramMemoryState()

ProgramMemoryState::ProgramMemoryState ( const Settings s)
explicit

Definition at line 442 of file programmemory.cpp.

References settings.

Member Function Documentation

◆ addState()

void ProgramMemoryState::addState ( const Token tok,
const ProgramMemory::Map vars 
)

◆ assume()

void ProgramMemoryState::assume ( const Token tok,
bool  b,
bool  isEmpty = false 
)

◆ get()

ProgramMemory ProgramMemoryState::get ( const Token tok,
const Token ctx,
const ProgramMemory::Map vars 
) const

◆ insert()

void ProgramMemoryState::insert ( const ProgramMemory pm,
const Token origin = nullptr 
)

Definition at line 447 of file programmemory.cpp.

References ProgramMemory::insert(), origins, and state.

◆ removeModifiedVars()

void ProgramMemoryState::removeModifiedVars ( const Token tok)

◆ replace()

void ProgramMemoryState::replace ( ProgramMemory  pm,
const Token origin = nullptr 
)

Definition at line 455 of file programmemory.cpp.

References origins, ProgramMemory::replace(), and state.

Referenced by addState(), and assume().

Member Data Documentation

◆ origins

std::map<nonneg int, const Token*> ProgramMemoryState::origins

Definition at line 166 of file programmemory.h.

Referenced by insert(), removeModifiedVars(), and replace().

◆ settings

const Settings* ProgramMemoryState::settings

Definition at line 167 of file programmemory.h.

Referenced by addState(), assume(), ProgramMemoryState(), and removeModifiedVars().

◆ state

ProgramMemory ProgramMemoryState::state

Definition at line 165 of file programmemory.h.

Referenced by addState(), assume(), get(), insert(), removeModifiedVars(), and replace().


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