TAO_PI
2.0.8
|
Implementation of the PortableInterceptor::Current interface. More...
#include <PICurrent.h>
Public Member Functions | |
PICurrent (TAO_ORB_Core &orb_core) | |
Constructor. | |
virtual CORBA::ORB_ptr | _get_orb (void) |
PortableInterceptor::SlotId | slot_count (void) const |
Number of slots allocated in the slot table. | |
PICurrent_Impl * | tsc (void) |
void | check_validity (const PortableInterceptor::SlotId &identifier) |
Verify the validity of the given SlotId. | |
void | initialize (PortableInterceptor::SlotId sc) |
Initialize the PICurrent object. | |
PortableInterceptor::Current Methods | |
These are methods exposed by the PortableInterceptor::Current interface. | |
virtual CORBA::Any * | get_slot (PortableInterceptor::SlotId id) |
virtual void | set_slot (PortableInterceptor::SlotId identifier, const CORBA::Any &data) |
Set information in the slot table at the given SlotId. | |
Protected Member Functions | |
virtual | ~PICurrent (void) |
Destructor. | |
Private Member Functions | |
PICurrent (const PICurrent &) | |
void | operator= (const PICurrent &) |
Private Attributes | |
TAO_ORB_Core & | orb_core_ |
Reference to the orb core. | |
size_t | tss_slot_ |
PortableInterceptor::SlotId | slot_count_ |
Implementation of the PortableInterceptor::Current interface.
PortableInterceptor::Current is useful for passing data between request interceptors, in addition to passing data from an interceptor to the calling thread.
TAO::PICurrent::PICurrent | ( | TAO_ORB_Core & | orb_core | ) |
Constructor.
TAO::PICurrent::~PICurrent | ( | void | ) | [protected, virtual] |
Destructor.
Protected destructor to enforce the fact this class is reference counted, and should not be destroyed using delete() by anything other than the reference counting mechanism.
TAO::PICurrent::PICurrent | ( | const PICurrent & | ) | [private] |
Prevent copying through the copy constructor and the assignment operator.
CORBA::ORB_ptr TAO::PICurrent::_get_orb | ( | void | ) | [virtual] |
Reimplemented from CORBA::LocalObject.
void TAO::PICurrent::check_validity | ( | const PortableInterceptor::SlotId & | identifier | ) |
Verify the validity of the given SlotId.
CORBA::Any * TAO::PICurrent::get_slot | ( | PortableInterceptor::SlotId | id | ) | [virtual] |
Retrieve information stored in the slot table at the given SlotId.
void TAO::PICurrent::initialize | ( | PortableInterceptor::SlotId | sc | ) |
Initialize the PICurrent object.
void TAO::PICurrent::operator= | ( | const PICurrent & | ) | [private] |
Prevent copying through the copy constructor and the assignment operator.
void TAO::PICurrent::set_slot | ( | PortableInterceptor::SlotId | identifier, |
const CORBA::Any & | data | ||
) | [virtual] |
Set information in the slot table at the given SlotId.
PortableInterceptor::SlotId TAO::PICurrent::slot_count | ( | void | ) | const [inline] |
Number of slots allocated in the slot table.
TAO::PICurrent_Impl * TAO::PICurrent::tsc | ( | void | ) |
Retrieve the PICurrent implementation from TSS, i.e. the thread scope current (TSC).
TAO_ORB_Core& TAO::PICurrent::orb_core_ [private] |
Reference to the orb core.
Reimplemented from CORBA::Object.
PortableInterceptor::SlotId TAO::PICurrent::slot_count_ [private] |
size_t TAO::PICurrent::tss_slot_ [private] |
TSS slot assigned to PICurrent_Impl objects in the OrbCore. Allocated by the orb_core_.add_tss_cleanup_func() when our initialize() method is called.