WSF
WsfPProxyUndoValue Class Reference

#include <WsfPProxyUndo.hpp>

Collaboration diagram for WsfPProxyUndoValue:

Public Member Functions

 WsfPProxyUndoValue ()
 WsfPProxyUndoValue (WsfPProxyValue aValue)
 WsfPProxyUndoValue (const WsfPProxyUndoValue &aSrc)
void DisableUndo ()
 ~WsfPProxyUndoValue ()
WsfPProxyUndoValueoperator= (const WsfPProxyUndoValue &aRhs)
bool Assign (WsfPProxyValue aNewValue)
 Assigns a new value. aNewValue's memory is now maintained by WsfPProxyUndo and should not be used directly.
bool MapInsert (const std::string &aMapKey, WsfPProxyValue aValue)
bool MapDelete (const std::string &aMapKey)
bool ListPush ()
bool MoveToAttr (size_t aIndex)
bool MoveToAttr (const std::string &aKey)
bool MoveToAttr (const WsfPProxyKey &aKey)
bool MoveToAttr (const WsfPProxyPath &aPath)
bool MoveToAttr (const WsfParseTypePath &aLookupPath)
WsfPProxyUndoValue GetAttr (const WsfParseTypePath &aLookupPath) const
bool SetUnset (bool aIsUnset)
WsfPProxyUndoValue GetAttr (const std::string &aKey) const
WsfPProxyUndoValue GetAttr (size_t aIndex) const
WsfPProxyUndoValue GetAttr (const WsfPProxyPath &aPath) const
void MoveToParent ()
WsfPProxyUndoValue GetParent () const
WsfPProxyValue Get () const
bool Exists () const
void Rollback ()
void Rollback (size_t aHistoryIndex)
void Commit (size_t aHistoryIndex=0)
size_t GetHistorySize () const
 operator bool () const
std::string DebugAddr () const
const WsfPProxyPathGetPath () const
WsfPProxyUndoGetUndo () const

Protected Member Functions

void Cleanup ()

Protected Attributes

WsfPProxyPath mPath
WsfPProxyUndomUndoPtr
UtReferenceCount * mReferenceCount

Constructor & Destructor Documentation

◆ WsfPProxyUndoValue() [1/3]

WsfPProxyUndoValue::WsfPProxyUndoValue ( )
inline

◆ WsfPProxyUndoValue() [2/3]

WsfPProxyUndoValue::WsfPProxyUndoValue ( WsfPProxyValue aValue)
inlineexplicit

References mReferenceCount, and mUndoPtr.

◆ WsfPProxyUndoValue() [3/3]

WsfPProxyUndoValue::WsfPProxyUndoValue ( const WsfPProxyUndoValue & aSrc)
inline

◆ ~WsfPProxyUndoValue()

WsfPProxyUndoValue::~WsfPProxyUndoValue ( )
inline

References Cleanup().

Member Function Documentation

◆ Assign()

bool WsfPProxyUndoValue::Assign ( WsfPProxyValue aNewValue)
inline

Assigns a new value. aNewValue's memory is now maintained by WsfPProxyUndo and should not be used directly.

References mPath, and mUndoPtr.

Referenced by WsfPProxySatisfy::ApplyEquations().

◆ Cleanup()

void WsfPProxyUndoValue::Cleanup ( )
inlineprotected

◆ Commit()

void WsfPProxyUndoValue::Commit ( size_t aHistoryIndex = 0)
inline

References mUndoPtr.

◆ DebugAddr()

std::string WsfPProxyUndoValue::DebugAddr ( ) const

References mPath, and mUndoPtr.

◆ DisableUndo()

void WsfPProxyUndoValue::DisableUndo ( )
inline

◆ Exists()

bool WsfPProxyUndoValue::Exists ( ) const
inline

◆ Get()

◆ GetAttr() [1/4]

WsfPProxyUndoValue WsfPProxyUndoValue::GetAttr ( const std::string & aKey) const
inline

◆ GetAttr() [2/4]

◆ GetAttr() [3/4]

WsfPProxyUndoValue WsfPProxyUndoValue::GetAttr ( const WsfPProxyPath & aPath) const
inline

◆ GetAttr() [4/4]

WsfPProxyUndoValue WsfPProxyUndoValue::GetAttr ( size_t aIndex) const
inline

◆ GetHistorySize()

◆ GetParent()

WsfPProxyUndoValue WsfPProxyUndoValue::GetParent ( ) const
inline

◆ GetPath()

◆ GetUndo()

WsfPProxyUndo * WsfPProxyUndoValue::GetUndo ( ) const
inline

References mUndoPtr.

◆ ListPush()

bool WsfPProxyUndoValue::ListPush ( )
inline

References mPath, and mUndoPtr.

Referenced by WsfPProxySatisfy::FollowAction().

◆ MapDelete()

bool WsfPProxyUndoValue::MapDelete ( const std::string & aMapKey)
inline

References mPath, and mUndoPtr.

Referenced by WsfPProxySatisfy::FollowAction().

◆ MapInsert()

bool WsfPProxyUndoValue::MapInsert ( const std::string & aMapKey,
WsfPProxyValue aValue )
inline

Inserts a new value into a map. aValue's memory is now maintained by WsfPProxyUndo and should not be used directly.

References mPath, and mUndoPtr.

Referenced by WsfPProxySatisfy::FollowAction().

◆ MoveToAttr() [1/5]

bool WsfPProxyUndoValue::MoveToAttr ( const std::string & aKey)
inline

References Cleanup(), Get(), mPath, and ok.

◆ MoveToAttr() [2/5]

bool WsfPProxyUndoValue::MoveToAttr ( const WsfParseTypePath & aLookupPath)
inline

References MoveToAttr(), and ok.

◆ MoveToAttr() [3/5]

bool WsfPProxyUndoValue::MoveToAttr ( const WsfPProxyKey & aKey)
inline

◆ MoveToAttr() [4/5]

bool WsfPProxyUndoValue::MoveToAttr ( const WsfPProxyPath & aPath)
inline

◆ MoveToAttr() [5/5]

◆ MoveToParent()

void WsfPProxyUndoValue::MoveToParent ( )
inline

References mPath.

Referenced by GetParent().

◆ operator bool()

WsfPProxyUndoValue::operator bool ( ) const
inline

References mUndoPtr.

◆ operator=()

WsfPProxyUndoValue & WsfPProxyUndoValue::operator= ( const WsfPProxyUndoValue & aRhs)
inline

◆ Rollback() [1/2]

◆ Rollback() [2/2]

void WsfPProxyUndoValue::Rollback ( size_t aHistoryIndex)
inline

References GetHistorySize(), and mUndoPtr.

◆ SetUnset()

bool WsfPProxyUndoValue::SetUnset ( bool aIsUnset)
inline

References mPath, and mUndoPtr.

Referenced by WsfPProxySatisfy::ApplyEquations().

Member Data Documentation

◆ mPath

◆ mReferenceCount

UtReferenceCount* WsfPProxyUndoValue::mReferenceCount
protected

◆ mUndoPtr


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved