Hermes2D  3.0
XMLSubdomains::subdomain Class Reference

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

#include <subdomains_h2d_xml.h>

+ Inheritance diagram for XMLSubdomains::subdomain:

Public Member Functions

virtual ~subdomain ()
 Destructor.
 

vertices

Accessor and modifier functions for the vertices optional element.

typedef ::XMLSubdomains::vertices vertices_type
 Element type.
 
typedef
::xsd::cxx::tree::optional
< vertices_type
vertices_optional
 Element optional container type.
 
typedef
::xsd::cxx::tree::traits
< vertices_type, char > 
vertices_traits
 Element traits type.
 
const vertices_optionalvertices () const
 Return a read-only (constant) reference to the element container. More...
 
vertices_optionalvertices ()
 Return a read-write reference to the element container. More...
 
void vertices (const vertices_type &x)
 Set the element value. More...
 
void vertices (const vertices_optional &x)
 Set the element value. More...
 
void vertices (::std::auto_ptr< vertices_type > p)
 Set the element value without copying. More...
 

elements

Accessor and modifier functions for the elements optional element.

typedef ::XMLSubdomains::elements elements_type
 Element type.
 
typedef
::xsd::cxx::tree::optional
< elements_type
elements_optional
 Element optional container type.
 
typedef
::xsd::cxx::tree::traits
< elements_type, char > 
elements_traits
 Element traits type.
 
const elements_optionalelements () const
 Return a read-only (constant) reference to the element container. More...
 
elements_optionalelements ()
 Return a read-write reference to the element container. More...
 
void elements (const elements_type &x)
 Set the element value. More...
 
void elements (const elements_optional &x)
 Set the element value. More...
 
void elements (::std::auto_ptr< elements_type > p)
 Set the element value without copying. More...
 

boundary_edges

Accessor and modifier functions for the boundary_edges optional element.

typedef
::XMLSubdomains::boundary_edges 
boundary_edges_type
 Element type.
 
typedef
::xsd::cxx::tree::optional
< boundary_edges_type
boundary_edges_optional
 Element optional container type.
 
typedef
::xsd::cxx::tree::traits
< boundary_edges_type, char > 
boundary_edges_traits
 Element traits type.
 
const boundary_edges_optionalboundary_edges () const
 Return a read-only (constant) reference to the element container. More...
 
boundary_edges_optionalboundary_edges ()
 Return a read-write reference to the element container. More...
 
void boundary_edges (const boundary_edges_type &x)
 Set the element value. More...
 
void boundary_edges (const boundary_edges_optional &x)
 Set the element value. More...
 
void boundary_edges (::std::auto_ptr< boundary_edges_type > p)
 Set the element value without copying. More...
 

inner_edges

Accessor and modifier functions for the inner_edges optional element.

typedef
::XMLSubdomains::inner_edges 
inner_edges_type
 Element type.
 
typedef
::xsd::cxx::tree::optional
< inner_edges_type
inner_edges_optional
 Element optional container type.
 
typedef
::xsd::cxx::tree::traits
< inner_edges_type, char > 
inner_edges_traits
 Element traits type.
 
const inner_edges_optionalinner_edges () const
 Return a read-only (constant) reference to the element container. More...
 
inner_edges_optionalinner_edges ()
 Return a read-write reference to the element container. More...
 
void inner_edges (const inner_edges_type &x)
 Set the element value. More...
 
void inner_edges (const inner_edges_optional &x)
 Set the element value. More...
 
void inner_edges (::std::auto_ptr< inner_edges_type > p)
 Set the element value without copying. More...
 

refinements

Accessor and modifier functions for the refinements optional element.

typedef ::XMLMesh::refinements_type refinements_type
 Element type.
 
typedef
::xsd::cxx::tree::optional
< refinements_type
refinements_optional
 Element optional container type.
 
typedef
::xsd::cxx::tree::traits
< refinements_type, char > 
refinements_traits
 Element traits type.
 
const refinements_optionalrefinements () const
 Return a read-only (constant) reference to the element container. More...
 
refinements_optionalrefinements ()
 Return a read-write reference to the element container. More...
 
void refinements (const refinements_type &x)
 Set the element value. More...
 
void refinements (const refinements_optional &x)
 Set the element value. More...
 
void refinements (::std::auto_ptr< refinements_type > p)
 Set the element value without copying. More...
 

name

Accessor and modifier functions for the name required attribute.

typedef ::xml_schema::string name_type
 Attribute type.
 
typedef
::xsd::cxx::tree::traits
< name_type, char > 
name_traits
 Attribute traits type.
 
const name_typename () const
 Return a read-only (constant) reference to the attribute. More...
 
name_typename ()
 Return a read-write reference to the attribute. More...
 
void name (const name_type &x)
 Set the attribute value. More...
 
void name (::std::auto_ptr< name_type > p)
 Set the attribute value without copying. More...
 

Constructors

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

Detailed Description

Class corresponding to the subdomain schema type.

Definition at line 2429 of file subdomains_h2d_xml.h.

Constructor & Destructor Documentation

XMLSubdomains::subdomain::subdomain ( 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 1648 of file subdomains_h2d_xml.cpp.

XMLSubdomains::subdomain::subdomain ( const subdomain 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 1634 of file subdomains_h2d_xml.cpp.

Member Function Documentation

subdomain * XMLSubdomains::subdomain::_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 1774 of file subdomains_h2d_xml.cpp.

const subdomain::boundary_edges_optional & XMLSubdomains::subdomain::boundary_edges ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 543 of file subdomains_h2d_xml.cpp.

Referenced by Hermes::Hermes2D::MeshReaderH2DXML::save().

subdomain::boundary_edges_optional & XMLSubdomains::subdomain::boundary_edges ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.

Definition at line 549 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::boundary_edges ( const boundary_edges_type x)

Set the element value.

Parameters
xA new value to set.

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

Definition at line 555 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::boundary_edges ( const boundary_edges_optional x)

Set the element 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 element. Otherwise the element container is set the 'not present' state.

Definition at line 561 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::boundary_edges ( ::std::auto_ptr< boundary_edges_type p)

Set the element 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 567 of file subdomains_h2d_xml.cpp.

const subdomain::elements_optional & XMLSubdomains::subdomain::elements ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 513 of file subdomains_h2d_xml.cpp.

Referenced by Hermes::Hermes2D::MeshReaderH2DXML::save().

subdomain::elements_optional & XMLSubdomains::subdomain::elements ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.

Definition at line 519 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::elements ( const elements_type x)

Set the element value.

Parameters
xA new value to set.

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

Definition at line 525 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::elements ( const elements_optional x)

Set the element 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 element. Otherwise the element container is set the 'not present' state.

Definition at line 531 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::elements ( ::std::auto_ptr< elements_type p)

Set the element 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 537 of file subdomains_h2d_xml.cpp.

const subdomain::inner_edges_optional & XMLSubdomains::subdomain::inner_edges ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 573 of file subdomains_h2d_xml.cpp.

Referenced by Hermes::Hermes2D::MeshReaderH2DXML::save().

subdomain::inner_edges_optional & XMLSubdomains::subdomain::inner_edges ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.

Definition at line 579 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::inner_edges ( const inner_edges_type x)

Set the element value.

Parameters
xA new value to set.

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

Definition at line 585 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::inner_edges ( const inner_edges_optional x)

Set the element 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 element. Otherwise the element container is set the 'not present' state.

Definition at line 591 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::inner_edges ( ::std::auto_ptr< inner_edges_type p)

Set the element 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 597 of file subdomains_h2d_xml.cpp.

const subdomain::name_type & XMLSubdomains::subdomain::name ( ) const

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

Returns
A constant reference to the attribute.

Definition at line 633 of file subdomains_h2d_xml.cpp.

subdomain::name_type & XMLSubdomains::subdomain::name ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 639 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::name ( const name_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 645 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::name ( ::std::auto_ptr< name_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 651 of file subdomains_h2d_xml.cpp.

const subdomain::refinements_optional & XMLSubdomains::subdomain::refinements ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 603 of file subdomains_h2d_xml.cpp.

Referenced by Hermes::Hermes2D::MeshReaderH2DXML::save().

subdomain::refinements_optional & XMLSubdomains::subdomain::refinements ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.

Definition at line 609 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::refinements ( const refinements_type x)

Set the element value.

Parameters
xA new value to set.

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

Definition at line 615 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::refinements ( const refinements_optional x)

Set the element 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 element. Otherwise the element container is set the 'not present' state.

Definition at line 621 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::refinements ( ::std::auto_ptr< refinements_type p)

Set the element 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 627 of file subdomains_h2d_xml.cpp.

const subdomain::vertices_optional & XMLSubdomains::subdomain::vertices ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 483 of file subdomains_h2d_xml.cpp.

Referenced by Hermes::Hermes2D::MeshReaderH2DXML::save().

subdomain::vertices_optional & XMLSubdomains::subdomain::vertices ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.

Definition at line 489 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::vertices ( const vertices_type x)

Set the element value.

Parameters
xA new value to set.

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

Definition at line 495 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::vertices ( const vertices_optional x)

Set the element 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 element. Otherwise the element container is set the 'not present' state.

Definition at line 501 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::subdomain::vertices ( ::std::auto_ptr< vertices_type p)

Set the element 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 507 of file subdomains_h2d_xml.cpp.


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