Hermes2D  3.0
XMLSolution::component Class Reference

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

#include <solution_h2d_xml.h>

+ Inheritance diagram for XMLSolution::component:

Public Member Functions

virtual ~component ()
 Destructor.
 

elem_coeffs

Accessor and modifier functions for the elem_coeffs sequence element.

typedef ::XMLSolution::elem_coeffs elem_coeffs_type
 Element type.
 
typedef
::xsd::cxx::tree::sequence
< elem_coeffs_type
elem_coeffs_sequence
 Element sequence container type.
 
typedef
elem_coeffs_sequence::iterator 
elem_coeffs_iterator
 Element iterator type.
 
typedef
elem_coeffs_sequence::const_iterator 
elem_coeffs_const_iterator
 Element constant iterator type.
 
typedef
::xsd::cxx::tree::traits
< elem_coeffs_type, char > 
elem_coeffs_traits
 Element traits type.
 
const elem_coeffs_sequenceelem_coeffs () const
 Return a read-only (constant) reference to the element sequence. More...
 
elem_coeffs_sequenceelem_coeffs ()
 Return a read-write reference to the element sequence. More...
 
void elem_coeffs (const elem_coeffs_sequence &s)
 Copy elements from a given sequence. More...
 

component_number

Accessor and modifier functions for the component_number optional attribute.

typedef ::xml_schema::integer component_number_type
 Attribute type.
 
typedef
::xsd::cxx::tree::optional
< component_number_type
component_number_optional
 Attribute optional container type.
 
typedef
::xsd::cxx::tree::traits
< component_number_type, char > 
component_number_traits
 Attribute traits type.
 
const component_number_optionalcomponent_number () const
 Return a read-only (constant) reference to the attribute container. More...
 
component_number_optionalcomponent_number ()
 Return a read-write reference to the attribute container. More...
 
void component_number (const component_number_type &x)
 Set the attribute value. More...
 
void component_number (const component_number_optional &x)
 Set the attribute value. More...
 

Constructors

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

Detailed Description

Class corresponding to the component schema type.

Definition at line 1944 of file solution_h2d_xml.h.

Constructor & Destructor Documentation

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

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

Member Function Documentation

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

const component::component_number_optional & XMLSolution::component::component_number ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 445 of file solution_h2d_xml.cpp.

component::component_number_optional & XMLSolution::component::component_number ( )

Return a read-write reference to the attribute container.

Returns
A reference to the optional container.

Definition at line 451 of file solution_h2d_xml.cpp.

void XMLSolution::component::component_number ( const component_number_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 457 of file solution_h2d_xml.cpp.

void XMLSolution::component::component_number ( const component_number_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 463 of file solution_h2d_xml.cpp.

const component::elem_coeffs_sequence & XMLSolution::component::elem_coeffs ( ) const

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

Returns
A constant reference to the sequence container.

Definition at line 427 of file solution_h2d_xml.cpp.

component::elem_coeffs_sequence & XMLSolution::component::elem_coeffs ( )

Return a read-write reference to the element sequence.

Returns
A reference to the sequence container.

Definition at line 433 of file solution_h2d_xml.cpp.

void XMLSolution::component::elem_coeffs ( const elem_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 439 of file solution_h2d_xml.cpp.


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