#include <Object.h>
Inheritance diagram for CORBA_Object:
Public Types | |
typedef CORBA_Object_ptr | _ptr_type |
typedef CORBA_Object_var | _var_type |
Public Methods | |
virtual | ~CORBA_Object (void) |
Destructor. More... | |
virtual CORBA::Boolean | _is_a (const char *logical_type_id ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
Determine if we are of the type specified by the "logical_type_id". More... | |
virtual const char * | _interface_repository_id (void) const |
The repository ID for the most derived class, this is an implementation method and does no remote invocations! More... | |
virtual CORBA::Boolean | _is_collocated (void) const |
Is this object collocated with the servant? More... | |
virtual CORBA::Boolean | _is_local (void) const |
Is this a local object? More... | |
virtual TAO_Abstract_ServantBase * | _servant (void) const |
virtual CORBA::Boolean | _non_existent (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) |
virtual CORBA::ImplementationDef_ptr | _get_implementation (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) |
This method is deprecated in the CORBA 2.2 spec, we just return 0 every time. More... | |
virtual CORBA_InterfaceDef_ptr | _get_interface (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) |
Get info about the object from the Interface Repository. More... | |
virtual CORBA::Object_ptr | _get_component (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) |
Get info about the object from the Interface Repository. More... | |
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 ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
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 ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
virtual CORBA::Request_ptr | _request (const char *operation ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
DII operation to create a request. More... | |
CORBA::Policy_ptr | _get_policy (CORBA::PolicyType type ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
CORBA::Policy_ptr | _get_client_policy (CORBA::PolicyType type ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
CORBA::Object_ptr | _set_policy_overrides (const CORBA::PolicyList &policies, CORBA::SetOverrideType set_add ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
CORBA::PolicyList * | _get_policy_overrides (const CORBA::PolicyTypeSeq &types ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
CORBA::Boolean | _validate_connection (CORBA::PolicyList_out inconsistent_policies ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
virtual CORBA::ULong | _hash (CORBA::ULong maximum ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
Return a (potentially non-unique) hash value for this object. More... | |
virtual CORBA::Boolean | _is_equivalent (CORBA::Object_ptr other_obj ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw () |
Try to determine if this object is the same as other_obj. More... | |
virtual TAO_ObjectKey * | _key (ACE_ENV_SINGLE_ARG_DECL) |
Return the object key as an out parameter. Caller should release return value when finished with it. More... | |
virtual const TAO_ObjectKey & | _object_key (void) |
Return a reference to the object key of profile in-use. More... | |
virtual void * | _tao_QueryInterface (ptr_arith_t type) |
Downcasting this object pointer to some other derived class. This QueryInterface stuff only work for local object. More... | |
CORBA_Object (TAO_Stub *p=0, CORBA::Boolean collocated=0, TAO_Abstract_ServantBase *servant=0) | |
Constructor. More... | |
virtual TAO_Stub * | _stubobj (void) const |
Get the underlying stub object. More... | |
virtual void | _proxy_broker (TAO_Object_Proxy_Broker *proxy_broker) |
Set the proxy broker. More... | |
virtual TAO_Object_Proxy_Broker * | _proxy_broker (void) |
Get the proxy broker. More... | |
Reference Count Managment | |
virtual void | _add_ref (void) |
Increment the reference count. More... | |
virtual void | _remove_ref (void) |
Decrement the reference count. More... | |
Static Public Methods | |
CORBA::Object_ptr | _duplicate (CORBA::Object_ptr obj) |
Increment the ref count. More... | |
CORBA::Object_ptr | _nil (void) |
Return a NULL object. More... | |
ACE_INLINE_FOR_GNUC CORBA::Object_ptr | _narrow (CORBA_Object_ptr obj ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
No-op it is just here to simplify some templates. More... | |
CORBA::Object_ptr | _unchecked_narrow (CORBA_Object_ptr obj ACE_ENV_ARG_DECL_WITH_DEFAULTS) |
void | _tao_any_destructor (void *) |
Used in the implementation of CORBA::Any. More... | |
CORBA::Boolean | is_nil_i (CORBA::Object_ptr obj) |
Uninlined part of the now-inlined CORBA::is_nil(). More... | |
Static Public Attributes | |
int | _tao_class_id = 0 |
Address of this variable used in _unchecked_narrow(). More... | |
Protected Methods | |
CORBA_Object (int dummy) | |
Initializing a local object. More... | |
Protected Attributes | |
CORBA::Boolean | is_collocated_ |
Flag to indicate collocation. It is 0 except for collocated objects. More... | |
TAO_Abstract_ServantBase * | servant_ |
Servant pointer. It is 0 except for collocated objects. More... | |
CORBA::Boolean | is_local_ |
Specify whether this is a local object or not. More... | |
TAO_Object_Proxy_Broker * | proxy_broker_ |
Pointer to the Proxy Broker i.e. the instance that takes care of getting the right proxy for performing a given call. More... | |
Private Methods | |
CORBA_Object (const CORBA_Object &) | |
CORBA_Object & | operator= (const CORBA_Object &) |
Private Attributes | |
TAO_Stub * | protocol_proxy_ |
Pointer to the protocol-specific "object" containing important profiling information regarding this proxy. More... | |
CORBA::ULong | refcount_ |
Number of outstanding references to this object. More... | |
TAO_SYNCH_MUTEX * | refcount_lock_ |
This lock is only instantiated for unconstrained objects. More... |
All CORBA objects, both unconstrained and locality-constrained, inherit from this class. The interface is defined in the CORBA specification and the C++ mapping.
|
|
|
Destructor.
|
|
Constructor.
|
|
Initializing a local object.
|
|
|
|
Increment the reference count.
Reimplemented in CORBA_LocalObject, and TAO_Local_RefCounted_Object. |
|
|
|
|
|
Increment the ref count.
|
|
Reimplemented in CORBA_LocalObject. |
|
Get info about the object from the Interface Repository.
Reimplemented in CORBA_LocalObject. |
|
This method is deprecated in the CORBA 2.2 spec, we just return 0 every time.
Reimplemented in CORBA_LocalObject. |
|
Get info about the object from the Interface Repository.
Reimplemented in CORBA_LocalObject. |
|
Reimplemented in CORBA_LocalObject. |
|
Reimplemented in CORBA_LocalObject. |
|
Return a (potentially non-unique) hash value for this object. This method relies on the representation of the object reference's private state. Since that changes easily (when different ORB protocols are in use) there is no default implementation. Reimplemented in CORBA_LocalObject. |
|
The repository ID for the most derived class, this is an implementation method and does no remote invocations!
Reimplemented in CORBA_Current, CORBA::DomainManager, CORBA::ConstructionPolicy, IOP::Codec, IOP::CodecFactory, TAO_ORBInitInfo, CORBA::Policy, CORBA::PolicyManager, CORBA::PolicyCurrent, CORBA::Pollable, CORBA::DIIPollable, CORBA::PollableSet, PortableInterceptor::Interceptor, PortableInterceptor::RequestInfo, PortableInterceptor::ClientRequestInfo, PortableInterceptor::ServerRequestInfo, PortableInterceptor::ClientRequestInterceptor, PortableInterceptor::ServerRequestInterceptor, PortableInterceptor::IORInfo, PortableInterceptor::IORInterceptor, PortableInterceptor::PolicyFactory, PortableInterceptor::ORBInitInfo, PortableInterceptor::ORBInitializer, and TAO::BufferingConstraintPolicy. |
|
Determine if we are of the type specified by the "logical_type_id".
|
|
Is this object collocated with the servant?
|
|
Try to determine if this object is the same as other_obj. This method relies on the representation of the object reference's private state. Since that changes easily (when different ORB protocols are in use) there is no default implementation. |
|
Is this a local object?
|
|
Return the object key as an out parameter. Caller should release return value when finished with it.
Reimplemented in CORBA_LocalObject. |
|
No-op it is just here to simplify some templates.
|
|
|
Reimplemented in CORBA_LocalObject. |
|
Return a reference to the object key of profile in-use. If there's no in-use profile, then the program will probably crash. This method does not create a new copy. |
|
Get the proxy broker.
|
|
Set the proxy broker.
|
|
Decrement the reference count.
Reimplemented in CORBA_LocalObject, and TAO_Local_RefCounted_Object. |
|
DII operation to create a request.
|
|
|
|
Reimplemented in CORBA_LocalObject. |
|
Get the underlying stub object.
|
|
Used in the implementation of CORBA::Any.
Reimplemented in CORBA::DomainManager, CORBA::ConstructionPolicy, IOP::Codec, IOP::CodecFactory, CORBA::Policy, CORBA::PolicyManager, CORBA::PolicyCurrent, and TAO::BufferingConstraintPolicy. |
|
Downcasting this object pointer to some other derived class. This QueryInterface stuff only work for local object.
Reimplemented in CORBA_Current, CORBA::DomainManager, CORBA::ConstructionPolicy, IOP::Codec, IOP::CodecFactory, TAO_ORBInitInfo, CORBA::Policy, CORBA::PolicyManager, CORBA::PolicyCurrent, CORBA::Pollable, CORBA::DIIPollable, CORBA::PollableSet, PortableInterceptor::Interceptor, PortableInterceptor::RequestInfo, PortableInterceptor::ClientRequestInfo, PortableInterceptor::ServerRequestInfo, PortableInterceptor::ClientRequestInterceptor, PortableInterceptor::ServerRequestInterceptor, PortableInterceptor::IORInfo, PortableInterceptor::IORInterceptor, PortableInterceptor::PolicyFactory, PortableInterceptor::ORBInitInfo, PortableInterceptor::ORBInitializer, and TAO::BufferingConstraintPolicy. |
|
|
|
Reimplemented in CORBA_LocalObject. |
|
Uninlined part of the now-inlined CORBA::is_nil().
|
|
|
|
|
Flag to indicate collocation. It is 0 except for collocated objects.
|
|
Specify whether this is a local object or not.
|
|
Pointer to the protocol-specific "object" containing important profiling information regarding this proxy. The protocol proxy is (potentially) shared among several CORBA_Objects |
|
Pointer to the Proxy Broker i.e. the instance that takes care of getting the right proxy for performing a given call.
|
|
Number of outstanding references to this object.
Reimplemented in TAO_Local_RefCounted_Object. |
|
This lock is only instantiated for unconstrained objects. The reason for this is that locality-constrained objects that do not require reference counting (the default) may be instantiated in the critical path.
Reimplemented in TAO_Local_RefCounted_Object. |
|
Servant pointer. It is 0 except for collocated objects.
|