AFI
Advanced Forwarding Interface
|
Transactional insert used for inserting sandbox state. More...
#include <AftSandbox.h>
Public Member Functions | |
AftInsert (const AftSandboxPtr &sandbox) | |
Constructor for insert blocks. More... | |
template<class T > | |
void | insert (T handler) |
AftNodeToken | push (const AftNodePtr &node, AftNodeToken nodeToken, const std::string &name) |
Push node into insert block. More... | |
AftNodeToken | push (const AftNodePtr &node) |
Push node into the insert block. More... | |
AftNodeToken | push (const AftNodePtr &node, const std::string &name) |
Push node into the insert block. More... | |
AftNodeToken | push (const AftNodePtr &node, AftNodeToken nodeToken) |
Push node into the insert block. More... | |
void | push (const AftEntryPtr &entry) |
Push entry into the insert block. More... | |
void | clear () |
Clear any pushed state from block. | |
const AftNodeVector & | nodes () const |
const AftEntryVector & | entries () const |
Static Public Member Functions | |
static AftInsertPtr | create (const AftSandboxPtr &sandbox) |
Factory constructor for insert blocks. More... | |
Protected Attributes | |
friend | AftSandbox |
AftSandbox accesses the protected vectors. | |
friend | AftRemove |
AftRemove accesses the protected vectors. | |
AftSandboxPtr | _sandbox |
Pointer to sandbox to use to allocate tokens. | |
AftNodeVector | _nodes |
Vector of AftNode objects to insert in sandbox. | |
AftEntryVector | _entries |
Vector of AftEntry objects to insert sandbox. | |
bool | _sent |
True if the insert has been sent to a sandbox. | |
Transactional insert used for inserting sandbox state.
|
inline |
Constructor for insert blocks.
[in] | sandbox | Reference to sandbox to use for insertion |
|
inlinestatic |
Factory constructor for insert blocks.
[in] | sandbox | Reference to sandbox to use for insertion |
|
inline |
|
inline |
|
inline |
Push node into insert block.
[in] | node | Reference to node to push into insert block |
[in] | nodeToken | Token to use for pushed node |
[in] | name | Name to use for node in sandbox |
|
inline |
Push node into the insert block.
[in] | node | Reference to node to push into insert block |
|
inline |
Push node into the insert block.
[in] | node | Reference to node to push into insert block |
[in] | name | Name to use for node in sandbox |
|
inline |
Push node into the insert block.
[in] | node | Reference to node to push into insert block |
[in] | nodeToken | Token to use for pushed node |
|
inline |
Push entry into the insert block.
[in] | entry | Reference to entry to push into insert block |