Hermes2D  3.0
XMLMesh::ref Class Reference

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

#include <mesh_h2d_xml.h>

+ Inheritance diagram for XMLMesh::ref:

Public Member Functions

virtual ~ref ()
 Destructor.
 

element_id

Accessor and modifier functions for the element_id required attribute.

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

refinement_type

Accessor and modifier functions for the refinement_type required attribute.

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

Constructors

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

Detailed Description

Class corresponding to the ref schema type.

Definition at line 3880 of file mesh_h2d_xml.h.

Constructor & Destructor Documentation

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

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

Member Function Documentation

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

const ref::element_id_type & XMLMesh::ref::element_id ( ) const

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

Returns
A constant reference to the attribute.

Definition at line 805 of file mesh_h2d_xml.cpp.

ref::element_id_type & XMLMesh::ref::element_id ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 811 of file mesh_h2d_xml.cpp.

void XMLMesh::ref::element_id ( const element_id_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 817 of file mesh_h2d_xml.cpp.

const ref::refinement_type_type & XMLMesh::ref::refinement_type ( ) const

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

Returns
A constant reference to the attribute.

Definition at line 823 of file mesh_h2d_xml.cpp.

ref::refinement_type_type & XMLMesh::ref::refinement_type ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 829 of file mesh_h2d_xml.cpp.

void XMLMesh::ref::refinement_type ( const refinement_type_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 835 of file mesh_h2d_xml.cpp.


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