Hermes2D  3.0
XMLSpace::space Class Reference

Class corresponding to the space schema type. More...

#include <space_h2d_xml.h>

+ Inheritance diagram for XMLSpace::space:

Public Member Functions

virtual ~space ()
 Destructor.
 

element_data

Accessor and modifier functions for the element_data sequence element.

typedef ::XMLSpace::element_data element_data_type
 Element type.
 
typedef
::xsd::cxx::tree::sequence
< element_data_type
element_data_sequence
 Element sequence container type.
 
typedef
element_data_sequence::iterator 
element_data_iterator
 Element iterator type.
 
typedef
element_data_sequence::const_iterator 
element_data_const_iterator
 Element constant iterator type.
 
typedef
::xsd::cxx::tree::traits
< element_data_type, char > 
element_data_traits
 Element traits type.
 
const element_data_sequenceelement_data () const
 Return a read-only (constant) reference to the element sequence. More...
 
element_data_sequenceelement_data ()
 Return a read-write reference to the element sequence. More...
 
void element_data (const element_data_sequence &s)
 Copy elements from a given sequence. More...
 

spaceType

Accessor and modifier functions for the spaceType optional attribute.

typedef ::xml_schema::string spaceType_type
 Attribute type.
 
typedef
::xsd::cxx::tree::optional
< spaceType_type
spaceType_optional
 Attribute optional container type.
 
typedef
::xsd::cxx::tree::traits
< spaceType_type, char > 
spaceType_traits
 Attribute traits type.
 
const spaceType_optionalspaceType () const
 Return a read-only (constant) reference to the attribute container. More...
 
spaceType_optionalspaceType ()
 Return a read-write reference to the attribute container. More...
 
void spaceType (const spaceType_type &x)
 Set the attribute value. More...
 
void spaceType (const spaceType_optional &x)
 Set the attribute value. More...
 
void spaceType (::std::auto_ptr< spaceType_type > p)
 Set the attribute value without copying. More...
 

Constructors

 space ()
 Create an instance from the ultimate base and initializers for required elements and attributes.
 
 space (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 space (const space &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual space_clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const
 Copy the instance polymorphically. More...
 

Detailed Description

Class corresponding to the space schema type.

Definition at line 655 of file space_h2d_xml.h.

Constructor & Destructor Documentation

XMLSpace::space::space ( const ::xercesc::DOMElement &  e,
::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
)

Create an instance from a DOM element.

Parameters
eA DOM element to extract the data from.
fFlags to create the new instance with.
cA pointer to the object that will contain the new instance.

Definition at line 226 of file space_h2d_xml.cpp.

XMLSpace::space::space ( const space x,
::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
)

Copy constructor.

Parameters
xAn instance to make a copy of.
fFlags to create the copy with.
cA pointer to the object that will contain the copy.

For polymorphic object models use the _clone function instead.

Definition at line 216 of file space_h2d_xml.cpp.

Member Function Documentation

space * XMLSpace::space::_clone ( ::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
) const
virtual

Copy the instance polymorphically.

Parameters
fFlags to create the copy with.
cA pointer to the object that will contain the copy.
Returns
A pointer to the dynamically allocated copy.

This function ensures that the dynamic type of the instance is used for copying and should be used for polymorphic object models instead of the copy constructor.

Definition at line 282 of file space_h2d_xml.cpp.

const space::element_data_sequence & XMLSpace::space::element_data ( ) const

Return a read-only (constant) reference to the element sequence.

Returns
A constant reference to the sequence container.

Definition at line 49 of file space_h2d_xml.cpp.

Referenced by Hermes::Hermes2D::Space< Scalar >::save().

space::element_data_sequence & XMLSpace::space::element_data ( )

Return a read-write reference to the element sequence.

Returns
A reference to the sequence container.

Definition at line 55 of file space_h2d_xml.cpp.

void XMLSpace::space::element_data ( const element_data_sequence s)

Copy elements from a given sequence.

Parameters
sA sequence to copy elements from.

For each element in s this function makes a copy and adds it to the sequence. Note that this operation completely changes the sequence and all old elements will be lost.

Definition at line 61 of file space_h2d_xml.cpp.

const space::spaceType_optional & XMLSpace::space::spaceType ( ) const

Return a read-only (constant) reference to the attribute container.

Returns
A constant reference to the optional container.

Definition at line 67 of file space_h2d_xml.cpp.

Referenced by Hermes::Hermes2D::Space< Scalar >::save().

space::spaceType_optional & XMLSpace::space::spaceType ( )

Return a read-write reference to the attribute container.

Returns
A reference to the optional container.

Definition at line 73 of file space_h2d_xml.cpp.

void XMLSpace::space::spaceType ( const spaceType_type x)

Set the attribute value.

Parameters
xA new value to set.

This function makes a copy of its argument and sets it as the new value of the attribute.

Definition at line 79 of file space_h2d_xml.cpp.

void XMLSpace::space::spaceType ( const spaceType_optional x)

Set the attribute value.

Parameters
xAn optional container with the new value to set.

If the value is present in x then this function makes a copy of this value and sets it as the new value of the attribute. Otherwise the attribute container is set the 'not present' state.

Definition at line 85 of file space_h2d_xml.cpp.

void XMLSpace::space::spaceType ( ::std::auto_ptr< spaceType_type p)

Set the attribute value without copying.

Parameters
pA new value to use.

This function will try to use the passed value directly instead of making a copy.

Definition at line 91 of file space_h2d_xml.cpp.


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