Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress Web Service Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::ArrayHandle<T>

Group:  SOAP Utility


rwsf::ArrayHandle<T> rwsf::XmlOlHandle rwsf::HandleBase

Local Index

Members

Header File

#include <rw/rwsf/soapworx/ArrayHandle.h> 

Description

All generated SOAP-Encoded arrays are derived from rwsf::ArrayHandle<T> instantiated on the type of element contained in the array.

rwsf::ArrayHandle implements the handle/body idiom in which rwsf::ArrayBody is the body. The handle passes all methods to the body, which contains an instance of rwsf::SoapArray, the class that contains all the actual container functionality and to which the array body passes all its methods.

For more information on SOAP-Encoded arrays, see Section A.5.1, "SOAP-Encoded Arrays," in the HydraExpress Web Service Development Guide

Note: For information on the parent class rwsf::XmlOlHandle, see its entry in the HydraExpress XML Binding Reference Guide.


NOTE -- Handle methods that just call the corresponding method on the body are described only in the body class. For instance, if the handle class includes a method invoke() that calls the body's corresponding method doInvoke(), that method is documented only in the body class.

Example

In this example, genArray is a SOAP array containing doubles, derived from rwsf::ArrayHandle.

Program Output:

Public Typedefs

typedef typename rwsf::ArrayBody<T>         body_type;
typedef typename body_type::iterator        
iterator; typedef typename body_type::const_iterator const_iterator; typedef typename body_type::size_type size_type; typedef typename body_type::value_type value_type; typedef typename body_type::reference reference; typedef typename body_type::const_reference const_reference;

Public Constructors

ArrayHandle<T>(ArrayBody<T>* body)
ArrayHandle<T>(const ArrayHandle<T>& other)
ArrayHandle<T>(const rwsf::SoapArray<T>& body)

Iterators

iterator
begin();
const_iterator
begin() const;
iterator
end();
const_iterator
end() const;
iterator
insert(iterator it, const_reference key); 
iterator
insert(const_reference key); 

Public Member Operators

reference
operator()(size_type idx); 
const_reference 
operator() (size_type idx) const; 
reference
operator[](size_type idx);
const_reference 
operator[](size_type idx) const; 

Public Member Functions

void
append(const_reference item); 
reference
at(size_type idx); 
const_reference
at(size_type idx) const;
reference
back();
const_reference 
back() const;
void
clear();
bool
contains(const_reference key) const; 
bool
empty() const;
size_type
entries() const; 
bool
find(const_reference key, value_type& val) const; 
reference
first();
const_reference
first() const;
std::vector<size_t>&  
getDimensions() 
const std::vector<size_t>&  
getDimensions() const 
size_type
index(const_reference key) const; 
void
insertAt(size_type index, const_reference item); 
bool
isEmpty() const; 
reference
last();
const_reference
last() const;
size_type
length() const; 
size_type 
occurrencesOf(const_reference key) const; 
void 
parseDimensions(const std::string& arrayType)
Parses the dimension string in the XML SOAP Array definition and sets the array dimensions in "this".

void
prepend(const_reference item); 
void
push_back(const_reference item);
bool
remove(const_reference key); 
size_type
removeAll(const_reference key); 
value_type
removeAt(size_type index); 
value_type
removeFirst();
value_type
removeLast();
size_type
replaceAll(const_reference oldVal, const_reference newVal); 
void
resize(size_t n); 
size_type
size() const

Protected Member Functions

body_type & 
body()
const body_type& 
body() const


Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.