Hermes2D  3.0
XMLMesh::mesh Class Reference

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

#include <mesh_h2d_xml.h>

+ Inheritance diagram for XMLMesh::mesh:

Public Member Functions

virtual ~mesh ()
 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 ::XMLMesh::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 ::XMLMesh::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...
 

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...
 

Constructors

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

Detailed Description

Class corresponding to the mesh schema type.

Definition at line 2111 of file mesh_h2d_xml.h.

Constructor & Destructor Documentation

XMLMesh::mesh::mesh ( ::std::auto_ptr< vertices_type > &  vertices,
::std::auto_ptr< elements_type > &  elements,
::std::auto_ptr< edges_type > &  edges 
)

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 1687 of file mesh_h2d_xml.cpp.

XMLMesh::mesh::mesh ( 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 1715 of file mesh_h2d_xml.cpp.

XMLMesh::mesh::mesh ( const mesh 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 1701 of file mesh_h2d_xml.cpp.

Member Function Documentation

mesh * XMLMesh::mesh::_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 1853 of file mesh_h2d_xml.cpp.

const mesh::curves_optional & XMLMesh::mesh::curves ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 409 of file mesh_h2d_xml.cpp.

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

mesh::curves_optional & XMLMesh::mesh::curves ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.

Definition at line 415 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 421 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 427 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 433 of file mesh_h2d_xml.cpp.

const mesh::edges_type & XMLMesh::mesh::edges ( ) const

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

Returns
A constant reference to the element.

Definition at line 385 of file mesh_h2d_xml.cpp.

mesh::edges_type & XMLMesh::mesh::edges ( )

Return a read-write reference to the element.

Returns
A reference to the element.

Definition at line 391 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 397 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 403 of file mesh_h2d_xml.cpp.

const mesh::elements_type & XMLMesh::mesh::elements ( ) const

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

Returns
A constant reference to the element.

Definition at line 361 of file mesh_h2d_xml.cpp.

mesh::elements_type & XMLMesh::mesh::elements ( )

Return a read-write reference to the element.

Returns
A reference to the element.

Definition at line 367 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 373 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 379 of file mesh_h2d_xml.cpp.

const mesh::refinements_optional & XMLMesh::mesh::refinements ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 439 of file mesh_h2d_xml.cpp.

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

mesh::refinements_optional & XMLMesh::mesh::refinements ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.

Definition at line 445 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 451 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 457 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 463 of file mesh_h2d_xml.cpp.

const mesh::variables_optional & XMLMesh::mesh::variables ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 307 of file mesh_h2d_xml.cpp.

mesh::variables_optional & XMLMesh::mesh::variables ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.

Definition at line 313 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 319 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 325 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 331 of file mesh_h2d_xml.cpp.

const mesh::vertices_type & XMLMesh::mesh::vertices ( ) const

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

Returns
A constant reference to the element.

Definition at line 337 of file mesh_h2d_xml.cpp.

mesh::vertices_type & XMLMesh::mesh::vertices ( )

Return a read-write reference to the element.

Returns
A reference to the element.

Definition at line 343 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 349 of file mesh_h2d_xml.cpp.

void XMLMesh::mesh::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 355 of file mesh_h2d_xml.cpp.


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