AFI
Advanced Forwarding Interface
|
![]() |
Transactional insert used for removing sandbox state. More...
#include <AftSandbox.h>
Public Member Functions | |
AftRemove (const AftInsertPtr &insert) | |
Constructor for insert blocks. More... | |
template<class T > | |
void | remove (T handler) |
void | update (const AftRemovePtr &newRemove) |
Used to trim the remove block of any nodes/entries required by an update. More... | |
void | push (const AftNodeToken nodeToken) |
Push token on to remove block. More... | |
void | push (const AftNodePtr &node) |
Push node on to remove block. More... | |
void | push (const AftEntryPtr &entry) |
Push entry on to remove block. More... | |
void | erase (const AftNodeToken nodeToken) |
Erase a node token in a remove block. More... | |
void | erase (const AftEntryPtr &entry) |
Erase an entry in a remove block. More... | |
void | clear () |
Clear any pushed state from block. | |
const AftTokenVector & | nodes () const |
const AftEntryVector & | entries () const |
Static Public Member Functions | |
static AftRemovePtr | create () |
Factory constructor for remove blocks. | |
static AftRemovePtr | create (const AftInsertPtr &insert) |
Factory constructor for insert blocks. More... | |
Protected Attributes | |
friend | AftSandbox |
AftSandbox accesses protected vectors. | |
AftTokenVector | _nodes |
Vector of node tokens to delete. | |
AftEntryVector | _entries |
Vector of entries to delete. | |
bool | _sent |
True if the remove has been sent to a sandbox. | |
Transactional insert used for removing sandbox state.
|
inline |
Constructor for insert blocks.
[in] | insert | Reference to insert block to convert to remove block |
|
inlinestatic |
Factory constructor for insert blocks.
[in] | insert | Reference to insert block to convert to remove block |
|
inline |
|
inline |
Erase a node token in a remove block.
[in] | nodeToken | Node token to find and erase |
|
inline |
Erase an entry in a remove block.
[in] | entry | Reference to entry to find and erase |
|
inline |
|
inline |
Push token on to remove block.
[in] | nodeToken | Token to use for pushed node |
|
inline |
Push node on to remove block.
[in] | node | Reference to node to push into remove block |
|
inline |
Push entry on to remove block.
[in] | entry | Reference to entry to push into remove block |
|
inline |
Used to trim the remove block of any nodes/entries required by an update.
[in] | newRemove | Reference to remove block to filter against |