Hermes2D  3.0
XMLMesh1D::var Class Reference

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

#include <mesh_h1d_xml.h>

+ Inheritance diagram for XMLMesh1D::var:

Public Member Functions

virtual ~var ()
 Destructor.
 

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

value

Accessor and modifier functions for the value required attribute.

typedef ::xml_schema::decimal value_type
 Attribute type.
 
typedef
::xsd::cxx::tree::traits
< value_type, char,::xsd::cxx::tree::schema_type::decimal > 
value_traits
 Attribute traits type.
 
const value_typevalue () const
 Return a read-only (constant) reference to the attribute. More...
 
value_typevalue ()
 Return a read-write reference to the attribute. More...
 
void value (const value_type &x)
 Set the attribute value. More...
 

Constructors

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

Detailed Description

Class corresponding to the var schema type.

Definition at line 1028 of file mesh_h1d_xml.h.

Constructor & Destructor Documentation

XMLMesh1D::var::var ( 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 416 of file mesh_h1d_xml.cpp.

XMLMesh1D::var::var ( const var 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 406 of file mesh_h1d_xml.cpp.

Member Function Documentation

var * XMLMesh1D::var::_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 472 of file mesh_h1d_xml.cpp.

const var::name_type & XMLMesh1D::var::name ( ) const

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

Returns
A constant reference to the attribute.

Definition at line 123 of file mesh_h1d_xml.cpp.

var::name_type & XMLMesh1D::var::name ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 129 of file mesh_h1d_xml.cpp.

void XMLMesh1D::var::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 135 of file mesh_h1d_xml.cpp.

void XMLMesh1D::var::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 141 of file mesh_h1d_xml.cpp.

const var::value_type & XMLMesh1D::var::value ( ) const

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

Returns
A constant reference to the attribute.

Definition at line 147 of file mesh_h1d_xml.cpp.

var::value_type & XMLMesh1D::var::value ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 153 of file mesh_h1d_xml.cpp.

void XMLMesh1D::var::value ( const value_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 159 of file mesh_h1d_xml.cpp.


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