TAO_PI  2.1.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
TAO::PICurrent Class Reference

Implementation of the PortableInterceptor::Current interface. More...

#include <PICurrent.h>

Inheritance diagram for TAO::PICurrent:
Inheritance graph
Collaboration diagram for TAO::PICurrent:
Collaboration graph

Public Member Functions

 PICurrent (TAO_ORB_Core &orb_core)
 Constructor. More...
 
virtual CORBA::ORB_ptr _get_orb (void)
 
PortableInterceptor::SlotId slot_count (void) const
 Number of slots allocated in the slot table. More...
 
PICurrent_Impltsc (void)
 
void check_validity (const PortableInterceptor::SlotId &identifier)
 Verify the validity of the given SlotId. More...
 
void initialize (PortableInterceptor::SlotId sc)
 Initialize the PICurrent object. More...
 
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. More...
 

Protected Member Functions

virtual ~PICurrent (void)
 Destructor. More...
 
- Protected Member Functions inherited from CORBA::LocalObject
 Object (int dummy=0)
 
TAO::Object_Proxy_Brokerproxy_broker () const
 

Private Member Functions

 PICurrent (const PICurrent &)
 
void operator= (const PICurrent &)
 

Private Attributes

TAO_ORB_Coreorb_core_
 Reference to the orb core. More...
 
size_t tss_slot_
 
PortableInterceptor::SlotId slot_count_
 

Additional Inherited Members

- Public Types inherited from CORBA::LocalObject
typedef Object_ptr _ptr_type
 
typedef Object_var _var_type
 
typedef Object_out _out_type
 
- Static Public Member Functions inherited from CORBA::LocalObject
static CORBA::Boolean marshal (const Object_ptr x, TAO_OutputCDR &cdr)
 
static void _tao_any_destructor (void *)
 
static CORBA::Boolean is_nil_i (CORBA::Object_ptr obj)
 
static void tao_object_initialize (Object *)
 
static CORBA::Object_ptr _duplicate (CORBA::Object_ptr obj)
 
static CORBA::Object_ptr _nil (void)
 
static CORBA::Object_ptr _narrow (CORBA::Object_ptr obj)
 

Detailed Description

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.

Constructor & Destructor Documentation

TAO::PICurrent::PICurrent ( TAO_ORB_Core orb_core)

Constructor.

TAO::PICurrent::~PICurrent ( void  )
protectedvirtual

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.

Member Function Documentation

CORBA::ORB_ptr TAO::PICurrent::_get_orb ( void  )
virtual

Reimplemented from CORBA::Object.

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).

Member Data Documentation

TAO_ORB_Core& TAO::PICurrent::orb_core_
private

Reference to the orb core.

PortableInterceptor::SlotId TAO::PICurrent::slot_count_
private

The number of allocated PICurrent slots end user wants. (0 is uninitialized or PICurrent is not used as no data is to be stored).

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.


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