Hermes2D  3.0
XMLMesh1D::v Class Reference

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

#include <mesh_h1d_xml.h>

+ Inheritance diagram for XMLMesh1D::v:

Public Member Functions

virtual ~v ()
 Destructor.
 

x

Accessor and modifier functions for the x required attribute.

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

m

Accessor and modifier functions for the m optional attribute.

typedef ::xml_schema::string m_type
 Attribute type.
 
typedef
::xsd::cxx::tree::optional
< m_type
m_optional
 Attribute optional container type.
 
typedef
::xsd::cxx::tree::traits
< m_type, char > 
m_traits
 Attribute traits type.
 
const m_optionalm () const
 Return a read-only (constant) reference to the attribute container. More...
 
m_optionalm ()
 Return a read-write reference to the attribute container. More...
 
void m (const m_type &x)
 Set the attribute value. More...
 
void m (const m_optional &x)
 Set the attribute value. More...
 
void m (::std::auto_ptr< m_type > p)
 Set the attribute value without copying. More...
 

Constructors

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

Detailed Description

Class corresponding to the v schema type.

Definition at line 1218 of file mesh_h1d_xml.h.

Constructor & Destructor Documentation

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

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

Member Function Documentation

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

const v::m_optional & XMLMesh1D::v::m ( ) const

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

Returns
A constant reference to the optional container.

Definition at line 193 of file mesh_h1d_xml.cpp.

v::m_optional & XMLMesh1D::v::m ( )

Return a read-write reference to the attribute container.

Returns
A reference to the optional container.

Definition at line 199 of file mesh_h1d_xml.cpp.

void XMLMesh1D::v::m ( const m_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 205 of file mesh_h1d_xml.cpp.

void XMLMesh1D::v::m ( const m_optional x)

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

Definition at line 211 of file mesh_h1d_xml.cpp.

void XMLMesh1D::v::m ( ::std::auto_ptr< m_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 217 of file mesh_h1d_xml.cpp.

const v::x_type & XMLMesh1D::v::x ( ) const

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

Returns
A constant reference to the attribute.

Definition at line 169 of file mesh_h1d_xml.cpp.

Referenced by m().

v::x_type & XMLMesh1D::v::x ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

Definition at line 175 of file mesh_h1d_xml.cpp.

void XMLMesh1D::v::x ( const x_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 181 of file mesh_h1d_xml.cpp.

void XMLMesh1D::v::x ( ::std::auto_ptr< x_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 187 of file mesh_h1d_xml.cpp.


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