#include <Principal.h>
Collaboration diagram for CORBA::Principal:
Public Types | |
typedef Principal_ptr | _ptr_type |
typedef Principal_var | _var_type |
Public Member Functions | |
unsigned long | _incr_refcnt (void) |
unsigned long | _decr_refcnt (void) |
Principal (void) | |
Static Public Member Functions | |
Principal * | _duplicate (Principal *) |
Principal * | _nil (void) |
Public Attributes | |
CORBA::OctetSeq | id |
Protected Member Functions | |
~Principal (void) | |
Destructor. | |
Private Member Functions | |
Principal & | operator= (const CORBA::Principal_ptr &) |
Principal (const CORBA::Principal_ptr &) | |
Private Attributes | |
ACE_Atomic_Op< TAO_SYNCH_MUTEX, unsigned long > | refcount_ |
Reference counter. |
Identities are used to control acccess (authorization) as well as in audit trails (accountability).
Definition at line 56 of file Principal.h.
|
Definition at line 77 of file Principal.h. |
|
Definition at line 78 of file Principal.h. |
|
Definition at line 21 of file Principal.cpp.
00022 : refcount_ (1) 00023 { 00024 } |
|
Destructor. Protected destructor to enforce proper memory management through the reference counting mechanism. Definition at line 26 of file Principal.cpp.
00027 { 00028 } |
|
|
|
Definition at line 16 of file Principal.inl. Referenced by CORBA::release().
00017 { 00018 unsigned long new_count = --this->refcount_; 00019 00020 if (new_count == 0) 00021 delete this; 00022 00023 return new_count; 00024 } |
|
Definition at line 46 of file Principal.inl. References _incr_refcnt().
00047 { 00048 if (x != 0) 00049 { 00050 x->_incr_refcnt (); 00051 } 00052 00053 return x; 00054 } |
|
Definition at line 38 of file Principal.inl. Referenced by _duplicate().
00039 { 00040 return ++this->refcount_; 00041 } |
|
Definition at line 59 of file Principal.inl.
00060 {
00061 return 0;
00062 }
|
|
|
|
Definition at line 62 of file Principal.h. Referenced by operator<<(), and operator>>(). |
|
Reference counter.
Definition at line 97 of file Principal.h. |