TAO_DynamicInterface 3.1.4
|
ContextList definition taken from CORBA v2.3a Dec 1998. More...
#include <Context.h>
Public Types | |
typedef CORBA::ContextList_ptr | _ptr_type |
typedef CORBA::ContextList_var | _var_type |
typedef CORBA::ContextList_out | _out_type |
Public Member Functions | |
ContextList ()=default | |
Constructor. | |
ContextList (CORBA::ULong len, char **ctx_list) | |
~ContextList () | |
Destructor. | |
CORBA::ULong | count () |
Return the number of elements. | |
ContextList_ptr | _duplicate () |
Increment the reference count. | |
void | _destroy () |
Decrement the reference count and delete if it is 0. | |
void | add (char *ctx) |
Add a string to the list. | |
void | add_consume (char *ctx) |
Add and consume a string to the list. | |
char * | item (CORBA::ULong slot) |
Return the typecode at slot i. Raises the "Bounds" exception. | |
void | remove (CORBA::ULong slot) |
Remove the typecode at slot i. Raises the "Bounds" exception. | |
void | _incr_refcount () |
Increment and decrement ref counts. | |
void | _decr_refcount () |
Static Public Member Functions | |
static ContextList_ptr | _duplicate (ContextList *) |
Increment the reference count. | |
static ContextList_ptr | _nil () |
Return null pointer of this type. | |
Private Member Functions | |
ContextList (const ContextList &)=delete | |
ContextList & | operator= (const ContextList &)=delete |
Private Attributes | |
std::atomic< uint32_t > | refcount_ |
Reference counter. | |
ACE_Unbounded_Queue< char * > | ctx_list_ |
Internal list of typecodes. | |
ContextList definition taken from CORBA v2.3a Dec 1998.
Maintains a list of strings for Contexts.
|
default |
Constructor.
CORBA::ContextList::ContextList | ( | CORBA::ULong | len, |
char ** | ctx_list ) |
Constructor - initialize given a length and an array of strings.
CORBA::ContextList::~ContextList | ( | ) |
Destructor.
|
privatedelete |
void CORBA::ContextList::_decr_refcount | ( | ) |
void CORBA::ContextList::_destroy | ( | ) |
Decrement the reference count and delete if it is 0.
CORBA::ContextList_ptr CORBA::ContextList::_duplicate | ( | ) |
Increment the reference count.
|
static |
Increment the reference count.
void CORBA::ContextList::_incr_refcount | ( | ) |
Increment and decrement ref counts.
|
static |
Return null pointer of this type.
void CORBA::ContextList::add | ( | char * | ctx | ) |
Add a string to the list.
void CORBA::ContextList::add_consume | ( | char * | ctx | ) |
Add and consume a string to the list.
CORBA::ULong CORBA::ContextList::count | ( | ) |
Return the number of elements.
char * CORBA::ContextList::item | ( | CORBA::ULong | slot | ) |
Return the typecode at slot i. Raises the "Bounds" exception.
|
privatedelete |
void CORBA::ContextList::remove | ( | CORBA::ULong | slot | ) |
Remove the typecode at slot i. Raises the "Bounds" exception.
|
private |
Internal list of typecodes.
|
private |
Reference counter.