TAO::unbounded_value_sequence< CORBA::Octet > Class Template 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]
List of all members.

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_traits
implementation_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< CORBA::Octet > &rhs) const
bool operator!= (const unbounded_value_sequence< CORBA::Octet > &rhs) const
void swap (unbounded_value_sequence &rhs) throw ()
ACE_Message_Blockmb (void) const
void replace (CORBA::ULong length, const ACE_Message_Block *mb)
 unbounded_value_sequence (const unbounded_value_sequence< CORBA::Octet > &rhs)
unbounded_value_sequence<
CORBA::Octet > & 
operator= (const unbounded_value_sequence< CORBA::Octet > &rhs)

Static Public Member Functions

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

Private Attributes

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

template<>
class TAO::unbounded_value_sequence< CORBA::Octet >


Member Typedef Documentation

typedef details::unbounded_value_allocation_traits<value_type,true> TAO::unbounded_value_sequence< CORBA::Octet >::allocation_traits

typedef value_type const& TAO::unbounded_value_sequence< CORBA::Octet >::const_subscript_type

typedef CORBA::Octet const TAO::unbounded_value_sequence< CORBA::Octet >::const_value_type

typedef details::value_traits<value_type,true> TAO::unbounded_value_sequence< CORBA::Octet >::element_traits

typedef CORBA::Octet TAO::unbounded_value_sequence< CORBA::Octet >::element_type

typedef details::generic_sequence<value_type, allocation_traits, element_traits> TAO::unbounded_value_sequence< CORBA::Octet >::implementation_type

typedef details::range_checking<value_type,true> TAO::unbounded_value_sequence< CORBA::Octet >::range

typedef value_type& TAO::unbounded_value_sequence< CORBA::Octet >::subscript_type

typedef CORBA::Octet TAO::unbounded_value_sequence< CORBA::Octet >::value_type


Constructor & Destructor Documentation

TAO::unbounded_value_sequence< CORBA::Octet >::unbounded_value_sequence (  )  [inline]

TAO::unbounded_value_sequence< CORBA::Octet >::unbounded_value_sequence ( CORBA::ULong  maximum  )  [inline, explicit]

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

TAO::unbounded_value_sequence< CORBA::Octet >::~unbounded_value_sequence (  )  [inline]

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

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

TAO::unbounded_value_sequence< CORBA::Octet >::unbounded_value_sequence ( const unbounded_value_sequence< CORBA::Octet > &  rhs  )  [inline]


Member Function Documentation

static value_type* TAO::unbounded_value_sequence< CORBA::Octet >::allocbuf ( CORBA::ULong  maximum  )  [inline, static]

static void TAO::unbounded_value_sequence< CORBA::Octet >::freebuf ( value_type buffer  )  [inline, static]

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

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

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

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

CORBA::ULong TAO::unbounded_value_sequence< CORBA::Octet >::maximum (  )  const [inline]

ACE_Message_Block* TAO::unbounded_value_sequence< CORBA::Octet >::mb ( void   )  const [inline]

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

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

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

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

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

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

CORBA::Boolean TAO::unbounded_value_sequence< CORBA::Octet >::release (  )  const [inline]

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.

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

void TAO::unbounded_value_sequence< CORBA::Octet >::swap ( unbounded_value_sequence< CORBA::Octet > &  rhs  )  throw () [inline]


Member Data Documentation

value_type* TAO::unbounded_value_sequence< CORBA::Octet >::buffer_ [mutable, private]

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

CORBA::ULong TAO::unbounded_value_sequence< CORBA::Octet >::length_ [private]

The current number of elements in the buffer.

CORBA::ULong TAO::unbounded_value_sequence< CORBA::Octet >::maximum_ [private]

The maximum number of elements the buffer can contain.

ACE_Message_Block* TAO::unbounded_value_sequence< CORBA::Octet >::mb_ [private]

CORBA::Boolean TAO::unbounded_value_sequence< CORBA::Octet >::release_ [private]

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


The documentation for this class was generated from the following file:
Generated on Thu Mar 22 07:29:29 2007 for TAO by  doxygen 1.4.7-1