|
TAO
2.4.2
|
Used by the Transport Current feature to keep track of which Transport is currently active. More...
#include <Transport_Selection_Guard.h>

Public Member Functions | |
| Transport_Selection_Guard (TAO_Transport *t) | |
| Ctor. More... | |
| ~Transport_Selection_Guard (void) | |
| Dtor. More... | |
| TAO_Transport * | operator-> (void) const |
| getter More... | |
| TAO_Transport & | operator* (void) const |
| getter More... | |
| TAO_Transport * | get (void) const |
| Getter. More... | |
| Transport_Selection_Guard & | set (TAO_Transport *t) |
| Setter. More... | |
| Transport_Selection_Guard & | operator= (const Transport_Selection_Guard &rhs) |
Static Public Member Functions | |
| static Transport_Selection_Guard * | current (TAO_ORB_Core *core, size_t tss_slot_id) |
Private Member Functions | |
| Transport_Selection_Guard (const Transport_Selection_Guard &) | |
| bool | operator! () const |
Private Attributes | |
| Transport_Selection_Guard * | prev_ |
| TAO_Transport * | curr_ |
| The "real" Transport, i.e. the one selected at present. More... | |
Friends | |
| bool | operator== (const Transport_Selection_Guard &lhs, const TAO_Transport *rhs) |
| bool | operator== (const TAO_Transport *lhs, const Transport_Selection_Guard &rhs) |
| bool | operator!= (const Transport_Selection_Guard &lhs, const TAO_Transport *rhs) |
| bool | operator!= (const TAO_Transport *lhs, const Transport_Selection_Guard &rhs) |
| template<class U > | |
| bool | operator== (const Transport_Selection_Guard &lhs, const U *rhs) |
| template<class U > | |
| bool | operator== (const U *lhs, const Transport_Selection_Guard &rhs) |
| template<class U > | |
| bool | operator!= (const Transport_Selection_Guard &lhs, const U *rhs) |
| template<class U > | |
| bool | operator!= (const U *lhs, const Transport_Selection_Guard &rhs) |
Used by the Transport Current feature to keep track of which Transport is currently active.
Whenever a Transport is selected: during an upcall, or prior to a client invocation an instance of this class is created [on the stack, or as a member of another class] to keep track of the said Transport. The class implements the RAII idiom, which makes it possible to build a stack of these instances as the thread is doing nested upcalls or client invocations.
It utilizes TAO_TSS_Resources::tsg_ member pointer to keep track of stack-linked Transport_Selection_Guard instances.
If the Transport Current feature is disabled most methods are no-ops and add no overhead on the critical path.
See Also:
| TAO::Transport_Selection_Guard::Transport_Selection_Guard | ( | TAO_Transport * | t | ) |
Ctor.
| TAO::Transport_Selection_Guard::~Transport_Selection_Guard | ( | void | ) |
Dtor.
|
private |
|
static |
|
inline |
Getter.
|
inlineprivate |
|
inline |
getter
|
inline |
getter
|
inline |
|
inline |
Setter.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
The "real" Transport, i.e. the one selected at present.
|
private |
This is pointing to the guard that was active prior to instantiating us.
1.8.11