TAO_PI 4.0.2
Loading...
Searching...
No Matches
Public Member Functions | 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
[legend]
Collaboration diagram for TAO::PICurrent:
Collaboration graph
[legend]

Public Member Functions

 PICurrent (TAO_ORB_Core &orb_core)
 Constructor.
 
- Public Member Functions inherited from PortableInterceptor::Current
any get_slot (in SlotId id) raises (InvalidSlot)
 
void set_slot (in SlotId id, in any data) raises (InvalidSlot)
 
- Public Member Functions inherited from CORBA::LocalObject
virtual ~LocalObject ()
 
virtual CORBA::Boolean _non_existent ()
 
virtual char * _repository_id ()
 
virtual CORBA::InterfaceDef_ptr _get_interface ()
 
virtual CORBA::Object_ptr _get_component ()
 
virtual void _create_request (CORBA::Context_ptr ctx, const char *operation, CORBA::NVList_ptr arg_list, CORBA::NamedValue_ptr result, CORBA::Request_ptr &request, CORBA::Flags req_flags)
 
virtual void _create_request (CORBA::Context_ptr ctx, const char *operation, CORBA::NVList_ptr arg_list, CORBA::NamedValue_ptr result, CORBA::ExceptionList_ptr exclist, CORBA::ContextList_ptr ctxtlist, CORBA::Request_ptr &request, CORBA::Flags req_flags)
 
virtual CORBA::Request_ptr _request (const char *operation)
 
virtual CORBA::ULong _hash (CORBA::ULong maximum)
 
virtual CORBA::Boolean _is_equivalent (CORBA::Object_ptr other_obj)
 
virtual TAO::ObjectKey_key ()
 
- Public Member Functions inherited from CORBA::Object
virtual ~Object ()
 
virtual void _add_ref ()
 
virtual void _remove_ref ()
 
virtual CORBA::ULong _refcount_value () const
 
virtual TAO_Abstract_ServantBase_servant () const
 
virtual CORBA::Boolean _is_collocated () const
 
virtual CORBA::Boolean _is_local () const
 
 Object (TAO_Stub *p, CORBA::Boolean collocated=false, TAO_Abstract_ServantBase *servant=0, TAO_ORB_Core *orb_core=0)
 
 Object (IOP::IOR *ior, TAO_ORB_Core *orb_core)
 
virtual TAO_Stub_stubobj () const
 
virtual TAO_Stub_stubobj ()
 
virtual void _proxy_broker (TAO::Object_Proxy_Broker *proxy_broker)
 
virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr)
 
CORBA::Boolean is_evaluated () const
 
TAO_ORB_Coreorb_core () const
 
IOP::IORsteal_ior ()
 
const IOP::IORior () const
 
virtual bool can_convert_to_ior () const
 
virtual char * convert_to_ior (bool use_omg_ior_format, const char *ior_prefix) const
 
void _decr_refcount ()
 
virtual CORBA::Boolean _is_a (const char *logical_type_id)
 
virtual const char * _interface_repository_id () const
 

PortableInterceptor::Current Methods

These are methods exposed by the PortableInterceptor::Current interface.

TAO_ORB_Coreorb_core_
 Reference to the orb core.
 
size_t tss_slot_
 
PortableInterceptor::SlotId slot_count_
 
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.
 
virtual CORBA::ORB_ptr _get_orb ()
 Reference to the orb core.
 
PortableInterceptor::SlotId slot_count () const
 Number of slots allocated in the slot table.
 
PICurrent_Impltsc ()
 
void check_validity (const PortableInterceptor::SlotId &identifier)
 Verify the validity of the given SlotId.
 
void initialize (PortableInterceptor::SlotId sc)
 Initialize the PICurrent object.
 
virtual ~PICurrent ()=default
 Destructor.
 
 PICurrent (const PICurrent &)=delete
 Reference to the orb core.
 
void operator= (const PICurrent &)=delete
 Reference to the orb core.
 

Additional Inherited Members

- Public Types inherited from CORBA::LocalObject
typedef LocalObject_ptr _ptr_type
 
typedef LocalObject_var _var_type
 
typedef LocalObject_out _out_type
 
- Public Types inherited from CORBA::Object
typedef Object_ptr _ptr_type
 
typedef Object_var _var_type
 
typedef Object_out _out_type
 
- Static Public Member Functions inherited from CORBA::LocalObject
static LocalObject_ptr _duplicate (LocalObject_ptr obj)
 
static LocalObject_ptr _nil ()
 
static LocalObject_ptr _narrow (CORBA::Object_ptr obj)
 
- Static Public Member Functions inherited from CORBA::Object
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 ()
 
static CORBA::Object_ptr _narrow (CORBA::Object_ptr obj)
 
- Protected Member Functions inherited from CORBA::LocalObject
 LocalObject ()
 
- Protected Member Functions inherited from CORBA::Object
 Object (int dummy=0)
 
TAO::Object_Proxy_Brokerproxy_broker () const
 
- Protected Attributes inherited from CORBA::Object
std::atomic< uint32_t > refcount_
 

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

◆ PICurrent() [1/2]

TAO::PICurrent::PICurrent ( TAO_ORB_Core & orb_core)

Constructor.

◆ ~PICurrent()

virtual TAO::PICurrent::~PICurrent ( )
protectedvirtualdefault

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.

◆ PICurrent() [2/2]

TAO::PICurrent::PICurrent ( const PICurrent & )
privatedelete

Reference to the orb core.

Member Function Documentation

◆ _get_orb()

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

Reference to the orb core.

Reimplemented from CORBA::LocalObject.

◆ check_validity()

void TAO::PICurrent::check_validity ( const PortableInterceptor::SlotId & identifier)

Verify the validity of the given SlotId.

◆ get_slot()

CORBA::Any * TAO::PICurrent::get_slot ( PortableInterceptor::SlotId id)
virtual

Retrieve information stored in the slot table at the given SlotId.

◆ initialize()

void TAO::PICurrent::initialize ( PortableInterceptor::SlotId sc)

Initialize the PICurrent object.

◆ operator=()

void TAO::PICurrent::operator= ( const PICurrent & )
privatedelete

Reference to the orb core.

◆ set_slot()

void TAO::PICurrent::set_slot ( PortableInterceptor::SlotId identifier,
const CORBA::Any & data )
virtual

Set information in the slot table at the given SlotId.

◆ slot_count()

PortableInterceptor::SlotId TAO::PICurrent::slot_count ( ) const
inline

Number of slots allocated in the slot table.

◆ tsc()

TAO::PICurrent_Impl * TAO::PICurrent::tsc ( )

Retrieve the PICurrent implementation from TSS, i.e. the thread scope current (TSC).

Member Data Documentation

◆ orb_core_

TAO_ORB_Core& TAO::PICurrent::orb_core_
private

Reference to the orb core.

◆ slot_count_

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

◆ tss_slot_

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: