TAO 3.0.6
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
TAO::unbounded_value_sequence< CORBA::Octet > Class Reference

#include <Unbounded_Octet_Sequence_T.h>

Inheritance diagram for TAO::unbounded_value_sequence< CORBA::Octet >:
Inheritance graph
[legend]
Collaboration diagram for TAO::unbounded_value_sequence< CORBA::Octet >:
Collaboration graph
[legend]

Public Types

typedef CORBA::Octet value_type
 
typedef CORBA::Octet element_type
 
typedef CORBA::Octet const const_value_type
 
typedef value_typesubscript_type
 
typedef value_type const & const_subscript_type
 
typedef details::unbounded_value_allocation_traits< value_type, true > allocation_traits
 
typedef details::value_traits< value_type, true > element_traits
 
typedef details::generic_sequence< value_type, allocation_traits, element_traitsimplementation_type
 
typedef details::range_checking< value_type, true > range
 

Public Member Functions

 unbounded_value_sequence ()
 
 unbounded_value_sequence (CORBA::ULong maximum)
 
 unbounded_value_sequence (CORBA::ULong maximum, CORBA::ULong length, value_type *data, CORBA::Boolean release=false)
 
 ~unbounded_value_sequence ()
 
 unbounded_value_sequence (CORBA::ULong length, const ACE_Message_Block *mb)
 
CORBA::ULong maximum () const
 
CORBA::Boolean release () const
 
CORBA::ULong length () const
 
void length (CORBA::ULong length)
 
value_type const & operator[] (CORBA::ULong i) const
 
value_typeoperator[] (CORBA::ULong i)
 
void replace (CORBA::ULong maximum, CORBA::ULong length, value_type *data, CORBA::Boolean release=false)
 
value_type const * get_buffer () const
 
value_typeget_buffer (CORBA::Boolean orphan=false)
 
bool operator== (const unbounded_value_sequence &rhs) const
 
bool operator!= (const unbounded_value_sequence &rhs) const
 
void swap (unbounded_value_sequence &rhs) throw ()
 
ACE_Message_Blockmb () const
 
void replace (CORBA::ULong length, const ACE_Message_Block *mb)
 
 unbounded_value_sequence (const unbounded_value_sequence &rhs)
 
unbounded_value_sequenceoperator= (const unbounded_value_sequence &rhs)
 

Static Public Member Functions

static value_typeallocbuf (CORBA::ULong maximum)
 
static void freebuf (value_type *buffer)
 

Public Attributes

typedef::CORBA::ULong size_type
 

Private Attributes

CORBA::ULong maximum_
 The maximum number of elements the buffer can contain. More...
 
CORBA::ULong length_
 The current number of elements in the buffer. More...
 
value_typebuffer_
 
CORBA::Boolean release_
 
ACE_Message_Blockmb_
 

Member Typedef Documentation

◆ allocation_traits

◆ const_subscript_type

◆ const_value_type

◆ element_traits

◆ element_type

◆ implementation_type

◆ range

◆ subscript_type

◆ value_type

Constructor & Destructor Documentation

◆ unbounded_value_sequence() [1/5]

◆ unbounded_value_sequence() [2/5]

◆ unbounded_value_sequence() [3/5]

◆ ~unbounded_value_sequence()

◆ unbounded_value_sequence() [4/5]

Create a sequence of octets from a single message block (i.e. it ignores any chaining in the message block).

◆ unbounded_value_sequence() [5/5]

Member Function Documentation

◆ allocbuf()

static value_type * TAO::unbounded_value_sequence< CORBA::Octet >::allocbuf ( CORBA::ULong  maximum)
inlinestatic

◆ freebuf()

static void TAO::unbounded_value_sequence< CORBA::Octet >::freebuf ( value_type buffer)
inlinestatic

◆ get_buffer() [1/2]

value_type const * TAO::unbounded_value_sequence< CORBA::Octet >::get_buffer ( ) const
inline

◆ get_buffer() [2/2]

value_type * TAO::unbounded_value_sequence< CORBA::Octet >::get_buffer ( CORBA::Boolean  orphan = false)
inline

◆ length() [1/2]

◆ length() [2/2]

void TAO::unbounded_value_sequence< CORBA::Octet >::length ( CORBA::ULong  length)
inline

◆ maximum()

◆ mb()

Returns the underlying message block, the caller must not release the copy.

◆ operator!=()

bool TAO::unbounded_value_sequence< CORBA::Octet >::operator!= ( const unbounded_value_sequence< CORBA::Octet > &  rhs) const
inline

◆ operator=()

◆ operator==()

bool TAO::unbounded_value_sequence< CORBA::Octet >::operator== ( const unbounded_value_sequence< CORBA::Octet > &  rhs) const
inline

◆ operator[]() [1/2]

◆ operator[]() [2/2]

value_type const & TAO::unbounded_value_sequence< CORBA::Octet >::operator[] ( CORBA::ULong  i) const
inline

◆ release()

◆ replace() [1/2]

void TAO::unbounded_value_sequence< CORBA::Octet >::replace ( CORBA::ULong  length,
const ACE_Message_Block mb 
)
inline

Replaces the current buffer with mb, using only length bytes. It takes a duplicate of <mb> so the user still owns it.

◆ replace() [2/2]

void TAO::unbounded_value_sequence< CORBA::Octet >::replace ( CORBA::ULong  maximum,
CORBA::ULong  length,
value_type data,
CORBA::Boolean  release = false 
)
inline

◆ swap()

Member Data Documentation

◆ buffer_

The buffer with all the elements, casting must be done in derived classes.

◆ length_

The current number of elements in the buffer.

◆ maximum_

The maximum number of elements the buffer can contain.

◆ mb_

◆ release_

If true then the sequence should release the buffer when it is destroyed.

◆ size_type

typedef::CORBA::ULong TAO::unbounded_value_sequence< CORBA::Octet >::size_type

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