Hermes2D  3.0
XMLSolution::solution Class Reference

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

#include <solution_h2d_xml.h>

+ Inheritance diagram for XMLSolution::solution:

Public Member Functions

virtual ~solution ()
 Destructor.
 

mono_coeffs

Accessor and modifier functions for the mono_coeffs sequence element.

typedef ::XMLSolution::mono_coeffs mono_coeffs_type
 Element type.
 
typedef
::xsd::cxx::tree::sequence
< mono_coeffs_type
mono_coeffs_sequence
 Element sequence container type.
 
typedef
mono_coeffs_sequence::iterator 
mono_coeffs_iterator
 Element iterator type.
 
typedef
mono_coeffs_sequence::const_iterator 
mono_coeffs_const_iterator
 Element constant iterator type.
 
typedef
::xsd::cxx::tree::traits
< mono_coeffs_type, char > 
mono_coeffs_traits
 Element traits type.
 
const mono_coeffs_sequencemono_coeffs () const
 Return a read-only (constant) reference to the element sequence. More...
 
mono_coeffs_sequencemono_coeffs ()
 Return a read-write reference to the element sequence. More...
 
void mono_coeffs (const mono_coeffs_sequence &s)
 Copy elements from a given sequence. More...
 

elem_orders

Accessor and modifier functions for the elem_orders sequence element.

typedef ::XMLSolution::elem_orders elem_orders_type
 Element type.
 
typedef
::xsd::cxx::tree::sequence
< elem_orders_type
elem_orders_sequence
 Element sequence container type.
 
typedef
elem_orders_sequence::iterator 
elem_orders_iterator
 Element iterator type.
 
typedef
elem_orders_sequence::const_iterator 
elem_orders_const_iterator
 Element constant iterator type.
 
typedef
::xsd::cxx::tree::traits
< elem_orders_type, char > 
elem_orders_traits
 Element traits type.
 
const elem_orders_sequenceelem_orders () const
 Return a read-only (constant) reference to the element sequence. More...
 
elem_orders_sequenceelem_orders ()
 Return a read-write reference to the element sequence. More...
 
void elem_orders (const elem_orders_sequence &s)
 Copy elements from a given sequence. More...
 

component

Accessor and modifier functions for the component sequence element.

typedef ::XMLSolution::component component_type
 Element type.
 
typedef
::xsd::cxx::tree::sequence
< component_type
component_sequence
 Element sequence container type.
 
typedef
component_sequence::iterator 
component_iterator
 Element iterator type.
 
typedef
component_sequence::const_iterator 
component_const_iterator
 Element constant iterator type.
 
typedef
::xsd::cxx::tree::traits
< component_type, char > 
component_traits
 Element traits type.
 
const component_sequencecomponent () const
 Return a read-only (constant) reference to the element sequence. More...
 
component_sequencecomponent ()
 Return a read-write reference to the element sequence. More...
 
void component (const component_sequence &s)
 Copy elements from a given sequence. More...
 

ncmp

Accessor and modifier functions for the ncmp required attribute.

typedef ::xml_schema::integer ncmp_type
 Attribute type.
 
typedef
::xsd::cxx::tree::traits
< ncmp_type, char > 
ncmp_traits
 Attribute traits type.
 
const ncmp_typencmp () const
 Return a read-only (constant) reference to the attribute. More...
 
ncmp_typencmp ()
 Return a read-write reference to the attribute. More...
 
void ncmp (const ncmp_type &x)
 Set the attribute value. More...
 

nel

Accessor and modifier functions for the nel required attribute.

typedef ::xml_schema::integer nel_type
 Attribute type.
 
typedef
::xsd::cxx::tree::traits
< nel_type, char > 
nel_traits
 Attribute traits type.
 
const nel_typenel () const
 Return a read-only (constant) reference to the attribute. More...
 
nel_typenel ()
 Return a read-write reference to the attribute. More...
 
void nel (const nel_type &x)
 Set the attribute value. More...
 

nc

Accessor and modifier functions for the nc required attribute.

typedef ::xml_schema::integer nc_type
 Attribute type.
 
typedef
::xsd::cxx::tree::traits
< nc_type, char > 
nc_traits
 Attribute traits type.
 
const nc_typenc () const
 Return a read-only (constant) reference to the attribute. More...
 
nc_typenc ()
 Return a read-write reference to the attribute. More...
 
void nc (const nc_type &x)
 Set the attribute value. More...
 

exact

Accessor and modifier functions for the exact required attribute.

typedef ::xml_schema::integer exact_type
 Attribute type.
 
typedef
::xsd::cxx::tree::traits
< exact_type, char > 
exact_traits
 Attribute traits type.
 
const exact_typeexact () const
 Return a read-only (constant) reference to the attribute. More...
 
exact_typeexact ()
 Return a read-write reference to the attribute. More...
 
void exact (const exact_type &x)
 Set the attribute value. More...
 

exactC

Accessor and modifier functions for the exactC required attribute.

typedef ::xml_schema::integer exactC_type
 Attribute type.
 
typedef
::xsd::cxx::tree::traits
< exactC_type, char > 
exactC_traits
 Attribute traits type.
 
const exactC_typeexactC () const
 Return a read-only (constant) reference to the attribute. More...
 
exactC_typeexactC ()
 Return a read-write reference to the attribute. More...
 
void exactC (const exactC_type &x)
 Set the attribute value. More...
 

exactCXR

Accessor and modifier functions for the exactCXR optional attribute.

typedef ::xml_schema::decimal exactCXR_type
 Attribute type.
 
typedef
::xsd::cxx::tree::optional
< exactCXR_type
exactCXR_optional
 Attribute optional container type.
 
typedef
::xsd::cxx::tree::traits
< exactCXR_type, char,::xsd::cxx::tree::schema_type::decimal > 
exactCXR_traits
 Attribute traits type.
 
const exactCXR_optionalexactCXR () const
 Return a read-only (constant) reference to the attribute container. More...
 
exactCXR_optionalexactCXR ()
 Return a read-write reference to the attribute container. More...
 
void exactCXR (const exactCXR_type &x)
 Set the attribute value. More...
 
void exactCXR (const exactCXR_optional &x)
 Set the attribute value. More...
 

exactCYR

Accessor and modifier functions for the exactCYR optional attribute.

typedef ::xml_schema::decimal exactCYR_type
 Attribute type.
 
typedef
::xsd::cxx::tree::optional
< exactCYR_type
exactCYR_optional
 Attribute optional container type.
 
typedef
::xsd::cxx::tree::traits
< exactCYR_type, char,::xsd::cxx::tree::schema_type::decimal > 
exactCYR_traits
 Attribute traits type.
 
const exactCYR_optionalexactCYR () const
 Return a read-only (constant) reference to the attribute container. More...
 
exactCYR_optionalexactCYR ()
 Return a read-write reference to the attribute container. More...
 
void exactCYR (const exactCYR_type &x)
 Set the attribute value. More...
 
void exactCYR (const exactCYR_optional &x)
 Set the attribute value. More...
 

exactCXC

Accessor and modifier functions for the exactCXC optional attribute.

typedef ::xml_schema::decimal exactCXC_type
 Attribute type.
 
typedef
::xsd::cxx::tree::optional
< exactCXC_type
exactCXC_optional
 Attribute optional container type.
 
typedef
::xsd::cxx::tree::traits
< exactCXC_type, char,::xsd::cxx::tree::schema_type::decimal > 
exactCXC_traits
 Attribute traits type.
 
const exactCXC_optionalexactCXC () const
 Return a read-only (constant) reference to the attribute container. More...
 
exactCXC_optionalexactCXC ()
 Return a read-write reference to the attribute container. More...
 
void exactCXC (const exactCXC_type &x)
 Set the attribute value. More...
 
void exactCXC (const exactCXC_optional &x)
 Set the attribute value. More...
 

exactCYC

Accessor and modifier functions for the exactCYC optional attribute.

typedef ::xml_schema::decimal exactCYC_type
 Attribute type.
 
typedef
::xsd::cxx::tree::optional
< exactCYC_type
exactCYC_optional
 Attribute optional container type.
 
typedef
::xsd::cxx::tree::traits
< exactCYC_type, char,::xsd::cxx::tree::schema_type::decimal > 
exactCYC_traits
 Attribute traits type.
 
const exactCYC_optionalexactCYC () const
 Return a read-only (constant) reference to the attribute container. More...
 
exactCYC_optionalexactCYC ()
 Return a read-write reference to the attribute container. More...
 
void exactCYC (const exactCYC_type &x)
 Set the attribute value. More...
 
void exactCYC (const exactCYC_optional &x)
 Set the attribute value. More...
 

space

Accessor and modifier functions for the space optional attribute.

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

Constructors

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

Detailed Description

Class corresponding to the solution schema type.

Definition at line 658 of file solution_h2d_xml.h.

Constructor & Destructor Documentation

XMLSolution::solution::solution ( 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 570 of file solution_h2d_xml.cpp.

XMLSolution::solution::solution ( const solution 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 549 of file solution_h2d_xml.cpp.

Member Function Documentation

solution * XMLSolution::solution::_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 748 of file solution_h2d_xml.cpp.

const solution::component_sequence & XMLSolution::solution::component ( ) const

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

Returns
A constant reference to the sequence container.

Definition at line 85 of file solution_h2d_xml.cpp.

solution::component_sequence & XMLSolution::solution::component ( )

Return a read-write reference to the element sequence.

Returns
A reference to the sequence container.

Definition at line 91 of file solution_h2d_xml.cpp.

void XMLSolution::solution::component ( const component_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 97 of file solution_h2d_xml.cpp.

const solution::elem_orders_sequence & XMLSolution::solution::elem_orders ( ) const

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

Returns
A constant reference to the sequence container.

Definition at line 67 of file solution_h2d_xml.cpp.

solution::elem_orders_sequence & XMLSolution::solution::elem_orders ( )

Return a read-write reference to the element sequence.

Returns
A reference to the sequence container.

Definition at line 73 of file solution_h2d_xml.cpp.

void XMLSolution::solution::elem_orders ( const elem_orders_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 79 of file solution_h2d_xml.cpp.

const solution::exact_type & XMLSolution::solution::exact ( ) const

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

Returns
A constant reference to the attribute.

Definition at line 157 of file solution_h2d_xml.cpp.

solution::exact_type & XMLSolution::solution::exact ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 163 of file solution_h2d_xml.cpp.

void XMLSolution::solution::exact ( const exact_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 169 of file solution_h2d_xml.cpp.

const solution::exactC_type & XMLSolution::solution::exactC ( ) const

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

Returns
A constant reference to the attribute.

Definition at line 175 of file solution_h2d_xml.cpp.

solution::exactC_type & XMLSolution::solution::exactC ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 181 of file solution_h2d_xml.cpp.

void XMLSolution::solution::exactC ( const exactC_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 187 of file solution_h2d_xml.cpp.

const solution::exactCXC_optional & XMLSolution::solution::exactCXC ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 241 of file solution_h2d_xml.cpp.

Referenced by Hermes::Hermes2D::ConstantSolution< Scalar >::save(), and Hermes::Hermes2D::ConstantSolutionVector< Scalar >::save().

solution::exactCXC_optional & XMLSolution::solution::exactCXC ( )

Return a read-write reference to the attribute container.

Returns
A reference to the optional container.

Definition at line 247 of file solution_h2d_xml.cpp.

void XMLSolution::solution::exactCXC ( const exactCXC_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 253 of file solution_h2d_xml.cpp.

void XMLSolution::solution::exactCXC ( const exactCXC_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 259 of file solution_h2d_xml.cpp.

const solution::exactCXR_optional & XMLSolution::solution::exactCXR ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 193 of file solution_h2d_xml.cpp.

Referenced by Hermes::Hermes2D::ConstantSolution< Scalar >::save(), and Hermes::Hermes2D::ConstantSolutionVector< Scalar >::save().

solution::exactCXR_optional & XMLSolution::solution::exactCXR ( )

Return a read-write reference to the attribute container.

Returns
A reference to the optional container.

Definition at line 199 of file solution_h2d_xml.cpp.

void XMLSolution::solution::exactCXR ( const exactCXR_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 205 of file solution_h2d_xml.cpp.

void XMLSolution::solution::exactCXR ( const exactCXR_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 211 of file solution_h2d_xml.cpp.

const solution::exactCYC_optional & XMLSolution::solution::exactCYC ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 265 of file solution_h2d_xml.cpp.

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

solution::exactCYC_optional & XMLSolution::solution::exactCYC ( )

Return a read-write reference to the attribute container.

Returns
A reference to the optional container.

Definition at line 271 of file solution_h2d_xml.cpp.

void XMLSolution::solution::exactCYC ( const exactCYC_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 277 of file solution_h2d_xml.cpp.

void XMLSolution::solution::exactCYC ( const exactCYC_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 283 of file solution_h2d_xml.cpp.

const solution::exactCYR_optional & XMLSolution::solution::exactCYR ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 217 of file solution_h2d_xml.cpp.

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

solution::exactCYR_optional & XMLSolution::solution::exactCYR ( )

Return a read-write reference to the attribute container.

Returns
A reference to the optional container.

Definition at line 223 of file solution_h2d_xml.cpp.

void XMLSolution::solution::exactCYR ( const exactCYR_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 229 of file solution_h2d_xml.cpp.

void XMLSolution::solution::exactCYR ( const exactCYR_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 235 of file solution_h2d_xml.cpp.

const solution::mono_coeffs_sequence & XMLSolution::solution::mono_coeffs ( ) 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 solution_h2d_xml.cpp.

solution::mono_coeffs_sequence & XMLSolution::solution::mono_coeffs ( )

Return a read-write reference to the element sequence.

Returns
A reference to the sequence container.

Definition at line 55 of file solution_h2d_xml.cpp.

void XMLSolution::solution::mono_coeffs ( const mono_coeffs_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 solution_h2d_xml.cpp.

const solution::nc_type & XMLSolution::solution::nc ( ) const

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

Returns
A constant reference to the attribute.

Definition at line 139 of file solution_h2d_xml.cpp.

solution::nc_type & XMLSolution::solution::nc ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 145 of file solution_h2d_xml.cpp.

void XMLSolution::solution::nc ( const nc_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 151 of file solution_h2d_xml.cpp.

const solution::ncmp_type & XMLSolution::solution::ncmp ( ) const

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

Returns
A constant reference to the attribute.

Definition at line 103 of file solution_h2d_xml.cpp.

solution::ncmp_type & XMLSolution::solution::ncmp ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 109 of file solution_h2d_xml.cpp.

void XMLSolution::solution::ncmp ( const ncmp_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 115 of file solution_h2d_xml.cpp.

const solution::nel_type & XMLSolution::solution::nel ( ) const

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

Returns
A constant reference to the attribute.

Definition at line 121 of file solution_h2d_xml.cpp.

solution::nel_type & XMLSolution::solution::nel ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 127 of file solution_h2d_xml.cpp.

void XMLSolution::solution::nel ( const nel_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 133 of file solution_h2d_xml.cpp.

const solution::space_optional & XMLSolution::solution::space ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 289 of file solution_h2d_xml.cpp.

solution::space_optional & XMLSolution::solution::space ( )

Return a read-write reference to the attribute container.

Returns
A reference to the optional container.

Definition at line 295 of file solution_h2d_xml.cpp.

void XMLSolution::solution::space ( const space_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 301 of file solution_h2d_xml.cpp.

void XMLSolution::solution::space ( const space_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 307 of file solution_h2d_xml.cpp.

void XMLSolution::solution::space ( ::std::auto_ptr< space_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 313 of file solution_h2d_xml.cpp.


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