GTIRB  v2.1.0
GrammaTech Intermediate Representation for Binaries: C++ API
Public Member Functions | List of all members
gtirb::DataBlockObserver Class Referenceabstract

Interface for notifying observers when a DataBlock is modified. More...

#include <ByteInterval.hpp>

Public Member Functions

virtual ~DataBlockObserver ()=default
 
virtual ChangeStatus sizeChange (DataBlock *B, uint64_t OldSize, uint64_t NewSize)=0
 Notify the parent when the DataBlock changes size. More...
 

Detailed Description

Interface for notifying observers when a DataBlock is modified.

Constructor & Destructor Documentation

◆ ~DataBlockObserver()

virtual gtirb::DataBlockObserver::~DataBlockObserver ( )
virtualdefault

Member Function Documentation

◆ sizeChange()

virtual ChangeStatus gtirb::DataBlockObserver::sizeChange ( DataBlock B,
uint64_t  OldSize,
uint64_t  NewSize 
)
pure virtual

Notify the parent when the DataBlock changes size.

Called after the DataBlock updates its internal state.

Parameters
Bthe DataBlock that changed.
OldSizethe previous size of the DataBlock.
NewSizethe new size of the DataBlock.
Returns
indication of whether the observer accepts the change.

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