Hermes2D  3.0
XMLSubdomains::domain Class Reference

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

#include <subdomains_h2d_xml.h>

+ Inheritance diagram for XMLSubdomains::domain:

Public Member Functions

virtual ~domain ()
 Destructor.
 

variables

Accessor and modifier functions for the variables optional element.

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

vertices

Accessor and modifier functions for the vertices required element.

typedef ::XMLMesh::vertices_type vertices_type
 Element type.
 
typedef
::xsd::cxx::tree::traits
< vertices_type, char > 
vertices_traits
 Element traits type.
 
const vertices_typevertices () const
 Return a read-only (constant) reference to the element. More...
 
vertices_typevertices ()
 Return a read-write reference to the element. More...
 
void vertices (const vertices_type &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 required element.

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

edges

Accessor and modifier functions for the edges required element.

typedef ::XMLSubdomains::edges_type edges_type
 Element type.
 
typedef
::xsd::cxx::tree::traits
< edges_type, char > 
edges_traits
 Element traits type.
 
const edges_typeedges () const
 Return a read-only (constant) reference to the element. More...
 
edges_typeedges ()
 Return a read-write reference to the element. More...
 
void edges (const edges_type &x)
 Set the element value. More...
 
void edges (::std::auto_ptr< edges_type > p)
 Set the element value without copying. More...
 

curves

Accessor and modifier functions for the curves optional element.

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

subdomains

Accessor and modifier functions for the subdomains required element.

typedef ::XMLSubdomains::subdomains subdomains_type
 Element type.
 
typedef
::xsd::cxx::tree::traits
< subdomains_type, char > 
subdomains_traits
 Element traits type.
 
const subdomains_typesubdomains () const
 Return a read-only (constant) reference to the element. More...
 
subdomains_typesubdomains ()
 Return a read-write reference to the element. More...
 
void subdomains (const subdomains_type &x)
 Set the element value. More...
 
void subdomains (::std::auto_ptr< subdomains_type > p)
 Set the element value without copying. More...
 

Constructors

 domain (const vertices_type &, const elements_type &, const edges_type &, const subdomains_type &)
 Create an instance from the ultimate base and initializers for required elements and attributes.
 
 domain (::std::auto_ptr< vertices_type > &,::std::auto_ptr< elements_type > &,::std::auto_ptr< edges_type > &,::std::auto_ptr< subdomains_type > &)
 Create an instance from the ultimate base and initializers for required elements and attributes (auto_ptr version). More...
 
 domain (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 domain (const domain &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual domain_clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const
 Copy the instance polymorphically. More...
 

Detailed Description

Class corresponding to the domain schema type.

Definition at line 1506 of file subdomains_h2d_xml.h.

Constructor & Destructor Documentation

XMLSubdomains::domain::domain ( ::std::auto_ptr< vertices_type > &  vertices,
::std::auto_ptr< elements_type > &  elements,
::std::auto_ptr< edges_type > &  edges,
::std::auto_ptr< subdomains_type > &  subdomains 
)

Create an instance from the ultimate base and initializers for required elements and attributes (auto_ptr version).

This constructor will try to use the passed values directly instead of making copies.

Definition at line 1239 of file subdomains_h2d_xml.cpp.

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

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

Member Function Documentation

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

const domain::curves_optional & XMLSubdomains::domain::curves ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 321 of file subdomains_h2d_xml.cpp.

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

domain::curves_optional & XMLSubdomains::domain::curves ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.

Definition at line 327 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::curves ( const curves_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 333 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::curves ( const curves_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 339 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::curves ( ::std::auto_ptr< curves_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 345 of file subdomains_h2d_xml.cpp.

const domain::edges_type & XMLSubdomains::domain::edges ( ) const

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

Returns
A constant reference to the element.

Definition at line 297 of file subdomains_h2d_xml.cpp.

domain::edges_type & XMLSubdomains::domain::edges ( )

Return a read-write reference to the element.

Returns
A reference to the element.

Definition at line 303 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::edges ( const 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 309 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::edges ( ::std::auto_ptr< 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 315 of file subdomains_h2d_xml.cpp.

const domain::elements_type & XMLSubdomains::domain::elements ( ) const

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

Returns
A constant reference to the element.

Definition at line 273 of file subdomains_h2d_xml.cpp.

domain::elements_type & XMLSubdomains::domain::elements ( )

Return a read-write reference to the element.

Returns
A reference to the element.

Definition at line 279 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::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 285 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::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 291 of file subdomains_h2d_xml.cpp.

const domain::subdomains_type & XMLSubdomains::domain::subdomains ( ) const

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

Returns
A constant reference to the element.

Definition at line 351 of file subdomains_h2d_xml.cpp.

domain::subdomains_type & XMLSubdomains::domain::subdomains ( )

Return a read-write reference to the element.

Returns
A reference to the element.

Definition at line 357 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::subdomains ( const subdomains_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 363 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::subdomains ( ::std::auto_ptr< subdomains_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 369 of file subdomains_h2d_xml.cpp.

const domain::variables_optional & XMLSubdomains::domain::variables ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 219 of file subdomains_h2d_xml.cpp.

domain::variables_optional & XMLSubdomains::domain::variables ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.

Definition at line 225 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::variables ( const variables_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 231 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::variables ( const variables_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 237 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::variables ( ::std::auto_ptr< variables_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 243 of file subdomains_h2d_xml.cpp.

const domain::vertices_type & XMLSubdomains::domain::vertices ( ) const

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

Returns
A constant reference to the element.

Definition at line 249 of file subdomains_h2d_xml.cpp.

domain::vertices_type & XMLSubdomains::domain::vertices ( )

Return a read-write reference to the element.

Returns
A reference to the element.

Definition at line 255 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::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 261 of file subdomains_h2d_xml.cpp.

void XMLSubdomains::domain::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 267 of file subdomains_h2d_xml.cpp.


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