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

rwsf::ArrayBody<T>

Group:  SOAP Utility


rwsf::ArrayBody<T> rwsf::XmlOlBody rwsf::BodyBase

Local Index

Members

Header File

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

Description

All generated SOAP array bodies derive from rwsf::ArrayBody<T> instantiated on the type of element contained in the array.

rwsf::ArrayBody implements multidimensional arrays by instantiating on a rwsf::SoapArray (for example, a two dimensional SoapArray has the structure rwsf::ArrayBody<rwsf::SoapArray<contained type>> ) and maintaining dimension information internally.

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

Instances of rwsf::ArrayBody in turn pass methods to the rwsf::SoapArray instance.


NOTE -- This class is not created directly, but instantiated through its handle rwsf::ArrayHandle.

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

Related Classes

rwsf::ArrayHandle, rwsf::SoapArray

Public Typedefs

typedef rwsf::SoapArray<T>                       container_type;
typedef typename container_type::iterator        iterator;
typedef typename container_type::const_iterator   const_iterator;
typedef typename container_type::size_type       size_type;
typedef typename container_type::value_type      value_type;
typedef typename container_type::reference       reference;
typedef typename container_type::const_reference const_reference;

Public Destructor

~ArrayBody<T>();

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; 
bool
operator==(const ArrayBody<T>& rwc) const; 
bool 
operator!=(const ArrayBody<T>& rwc) 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;
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
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 Constructors

ArrayBody<T>();
ArrayBody<T>(size_type dims);
ArrayBody<T>(size_type n, size_type dims);
ArrayBody<T>(const rwsf::SoapArray<T>& array);  

Protected Member Functions

container_type&
impl()
const container_type&
impl() const
std::vector<size_t>&  
getDimensions() 
const std::vector<size_t>&  
getDimensions() const
void 
parseDimensions(const std::string& arrayType)
virtual XmlOLBodyBase::XmlOLTypeCategory
XmlOLBodyTypeCategory() 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.