TAO  2.4.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
CORBA::LocalObject Class Reference

#include <LocalObject.h>

Inheritance diagram for CORBA::LocalObject:
Inheritance graph
[legend]
Collaboration diagram for CORBA::LocalObject:
Collaboration graph
[legend]

Public Types

typedef LocalObject_ptr _ptr_type
 Useful for template programming. More...
 
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
 

Public Member Functions

virtual ~LocalObject (void)
 Destructor. More...
 
virtual CORBA::Boolean _non_existent (void)
 Always returns false. More...
 
virtual char * _repository_id (void)
 Get the repository id. More...
 
virtual CORBA::InterfaceDef_ptr _get_interface (void)
 Gets info about object from the Interface Repository. More...
 
virtual CORBA::Object_ptr _get_component (void)
 Throws NO_IMPLEMENT. 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)
 Determine if we are of the type specified by the "logical_type_id". More...
 
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)
 Determine if we are of the type specified by the "logical_type_id". More...
 
virtual CORBA::Request_ptr _request (const char *operation)
 Throws NO_IMPLEMENT. More...
 
CORBA::Policy_ptr _get_policy (CORBA::PolicyType type)
 Throws CORBA::NO_IMPLEMENT. More...
 
CORBA::Policy_ptr _get_cached_policy (TAO_Cached_Policy_Type type)
 Throws CORBA::NO_IMPLEMENT. More...
 
CORBA::Object_ptr _set_policy_overrides (const CORBA::PolicyList &policies, CORBA::SetOverrideType set_add)
 Throws CORBA::NO_IMPLEMENT. More...
 
CORBA::PolicyList_get_policy_overrides (const CORBA::PolicyTypeSeq &types)
 Throws CORBA::NO_IMPLEMENT. More...
 
CORBA::Boolean _validate_connection (CORBA::PolicyList_out inconsistent_policies)
 Throws CORBA::NO_IMPLEMENT. More...
 
virtual CORBA::ULong _hash (CORBA::ULong maximum)
 
virtual CORBA::Boolean _is_equivalent (CORBA::Object_ptr other_obj)
 
virtual CORBA::ORB_ptr _get_orb (void)
 Determine if we are of the type specified by the "logical_type_id". More...
 
virtual TAO::ObjectKey_key (void)
 Throws CORBA::NO_IMPLEMENT. More...
 
- Public Member Functions inherited from CORBA::Object
virtual ~Object (void)
 Destructor. More...
 
virtual TAO_Abstract_ServantBase_servant (void) const
 
virtual CORBA::Boolean _is_collocated (void) const
 
virtual CORBA::Boolean _is_local (void) const
 Is this a local object? More...
 
 Object (TAO_Stub *p, CORBA::Boolean collocated=false, TAO_Abstract_ServantBase *servant=0, TAO_ORB_Core *orb_core=0)
 Constructor. More...
 
 Object (IOP::IOR *ior, TAO_ORB_Core *orb_core)
 
virtual TAO_Stub_stubobj (void) const
 Get the underlying stub object. More...
 
virtual TAO_Stub_stubobj (void)
 
virtual void _proxy_broker (TAO::Object_Proxy_Broker *proxy_broker)
 Set the proxy broker. More...
 
virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr)
 Allows us to forbid marshaling of local interfaces. More...
 
CORBA::Boolean is_evaluated (void) const
 Accessor to the flag.. More...
 
TAO_ORB_Coreorb_core (void) const
 Accessor for the ORB_Core.. More...
 
IOP::IORsteal_ior (void)
 Accessors for the underlying IOP::IOR's. More...
 
const IOP::IORior (void) const
 
virtual bool can_convert_to_ior (void) const
 Can this object be stringified? More...
 
virtual char * convert_to_ior (bool use_omg_ior_format, const char *ior_prefix) const
 
void _decr_refcount (void)
 Wrapper for _remove_ref(), naming convention for templatizing. More...
 
virtual void _add_ref (void)
 Increment the reference count. More...
 
virtual void _remove_ref (void)
 Decrement the reference count. More...
 
virtual CORBA::ULong _refcount_value (void) const
 Get the refcount. More...
 
virtual CORBA::Boolean _is_a (const char *logical_type_id)
 Determine if we are of the type specified by the "logical_type_id". More...
 
virtual const char * _interface_repository_id (void) const
 
CORBA::Policy_ptr _get_policy (CORBA::PolicyType type)
 Determine if we are of the type specified by the "logical_type_id". More...
 
CORBA::Policy_ptr _get_cached_policy (TAO_Cached_Policy_Type type)
 Determine if we are of the type specified by the "logical_type_id". More...
 
CORBA::Object_ptr _set_policy_overrides (const CORBA::PolicyList &policies, CORBA::SetOverrideType set_add)
 Determine if we are of the type specified by the "logical_type_id". More...
 
CORBA::PolicyList_get_policy_overrides (const CORBA::PolicyTypeSeq &types)
 Determine if we are of the type specified by the "logical_type_id". More...
 
CORBA::Boolean _validate_connection (CORBA::PolicyList_out inconsistent_policies)
 Determine if we are of the type specified by the "logical_type_id". More...
 

Static Public Member Functions

static LocalObject_ptr _duplicate (LocalObject_ptr obj)
 Increment the ref count. More...
 
static LocalObject_ptr _nil (void)
 Return a NIL object. More...
 
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 *)
 Used in the implementation of CORBA::Any. More...
 
static CORBA::Boolean is_nil_i (CORBA::Object_ptr obj)
 Uninlined part of the now-inlined CORBA::is_nil(). More...
 
static void tao_object_initialize (Object *)
 Helper function for reading contents of an IOR. More...
 
static CORBA::Object_ptr _duplicate (CORBA::Object_ptr obj)
 Increment the ref count. More...
 
static CORBA::Object_ptr _nil (void)
 Return a NULL object. More...
 
static CORBA::Object_ptr _narrow (CORBA::Object_ptr obj)
 No-op it is just here to simplify some templates. More...
 

Protected Member Functions

 LocalObject (void)
 Default constructor. More...
 
- Protected Member Functions inherited from CORBA::Object
 Object (int dummy=0)
 Initializing a local object. More...
 
TAO::Object_Proxy_Brokerproxy_broker () const
 

Private Member Functions

Unimplemented methods
 LocalObject (const LocalObject &)
 
LocalObjectoperator= (const LocalObject &)
 

Additional Inherited Members

- Protected Attributes inherited from CORBA::Object
ACE_Atomic_Op< TAO_SYNCH_MUTEX, unsigned long > refcount_
 Number of outstanding references to this object. More...
 

Member Typedef Documentation

Useful for template programming.

Constructor & Destructor Documentation

CORBA::LocalObject::~LocalObject ( void  )
virtual

Destructor.

CORBA::LocalObject::LocalObject ( void  )
protected

Default constructor.

Make it protected to prevent instantiation of this class.

CORBA::LocalObject::LocalObject ( const LocalObject )
private

Member Function Documentation

void CORBA::LocalObject::_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

Determine if we are of the type specified by the "logical_type_id".

Reimplemented from CORBA::Object.

void CORBA::LocalObject::_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

Determine if we are of the type specified by the "logical_type_id".

Reimplemented from CORBA::Object.

CORBA::LocalObject_ptr CORBA::LocalObject::_duplicate ( CORBA::LocalObject_ptr  obj)
static

Increment the ref count.

CORBA::Policy_ptr CORBA::LocalObject::_get_cached_policy ( TAO_Cached_Policy_Type  type)

Throws CORBA::NO_IMPLEMENT.

CORBA::Object_ptr CORBA::LocalObject::_get_component ( void  )
virtual

Throws NO_IMPLEMENT.

Reimplemented from CORBA::Object.

CORBA::InterfaceDef_ptr CORBA::LocalObject::_get_interface ( void  )
virtual

Gets info about object from the Interface Repository.

Reimplemented from CORBA::Object.

CORBA::ORB_ptr CORBA::LocalObject::_get_orb ( void  )
virtual

Determine if we are of the type specified by the "logical_type_id".

Reimplemented from CORBA::Object.

CORBA::Policy_ptr CORBA::LocalObject::_get_policy ( CORBA::PolicyType  type)

Throws CORBA::NO_IMPLEMENT.

CORBA::PolicyList * CORBA::LocalObject::_get_policy_overrides ( const CORBA::PolicyTypeSeq types)

Throws CORBA::NO_IMPLEMENT.

CORBA::ULong CORBA::LocalObject::_hash ( CORBA::ULong  maximum)
virtual

Return a hash value for this object. The hash is based on the address of the object. On non-32 bit platforms, the hash may be non-unique.

Reimplemented from CORBA::Object.

CORBA::Boolean CORBA::LocalObject::_is_equivalent ( CORBA::Object_ptr  other_obj)
virtual

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.

Reimplemented from CORBA::Object.

TAO::ObjectKey * CORBA::LocalObject::_key ( void  )
virtual

Throws CORBA::NO_IMPLEMENT.

Reimplemented from CORBA::Object.

CORBA::LocalObject_ptr CORBA::LocalObject::_narrow ( CORBA::Object_ptr  obj)
static
Todo:
Narrowing a LocalObject to a CORBA::Object is broken right now. The solution seems to be making CORBA::Object an abstract base class and create a CORBA::RemoteObject for regular object. Or, even easier, add a is_local member into CORBA::Object. I'll take the easier route for now.
CORBA::LocalObject_ptr CORBA::LocalObject::_nil ( void  )
static

Return a NIL object.

CORBA::Boolean CORBA::LocalObject::_non_existent ( void  )
virtual

Always returns false.

Reimplemented from CORBA::Object.

char * CORBA::LocalObject::_repository_id ( void  )
virtual

Get the repository id.

Reimplemented from CORBA::Object.

CORBA::Request_ptr CORBA::LocalObject::_request ( const char *  operation)
virtual

Throws NO_IMPLEMENT.

Reimplemented from CORBA::Object.

CORBA::Object_ptr CORBA::LocalObject::_set_policy_overrides ( const CORBA::PolicyList policies,
CORBA::SetOverrideType  set_add 
)

Throws CORBA::NO_IMPLEMENT.

CORBA::Boolean CORBA::LocalObject::_validate_connection ( CORBA::PolicyList_out  inconsistent_policies)

Throws CORBA::NO_IMPLEMENT.

LocalObject& CORBA::LocalObject::operator= ( const LocalObject )
private

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