Hermes2D
3.0
|
Class corresponding to the space schema type. More...
#include <space_h2d_xml.h>
Public Member Functions | |
virtual | ~space () |
Destructor. | |
element_data | |
Accessor and modifier functions for the element_data sequence element. | |
typedef ::XMLSpace::element_data | element_data_type |
Element type. | |
typedef ::xsd::cxx::tree::sequence < element_data_type > | element_data_sequence |
Element sequence container type. | |
typedef element_data_sequence::iterator | element_data_iterator |
Element iterator type. | |
typedef element_data_sequence::const_iterator | element_data_const_iterator |
Element constant iterator type. | |
typedef ::xsd::cxx::tree::traits < element_data_type, char > | element_data_traits |
Element traits type. | |
const element_data_sequence & | element_data () const |
Return a read-only (constant) reference to the element sequence. More... | |
element_data_sequence & | element_data () |
Return a read-write reference to the element sequence. More... | |
void | element_data (const element_data_sequence &s) |
Copy elements from a given sequence. More... | |
spaceType | |
Accessor and modifier functions for the spaceType optional attribute. | |
typedef ::xml_schema::string | spaceType_type |
Attribute type. | |
typedef ::xsd::cxx::tree::optional < spaceType_type > | spaceType_optional |
Attribute optional container type. | |
typedef ::xsd::cxx::tree::traits < spaceType_type, char > | spaceType_traits |
Attribute traits type. | |
const spaceType_optional & | spaceType () const |
Return a read-only (constant) reference to the attribute container. More... | |
spaceType_optional & | spaceType () |
Return a read-write reference to the attribute container. More... | |
void | spaceType (const spaceType_type &x) |
Set the attribute value. More... | |
void | spaceType (const spaceType_optional &x) |
Set the attribute value. More... | |
void | spaceType (::std::auto_ptr< spaceType_type > p) |
Set the attribute value without copying. More... | |
Constructors | |
space () | |
Create an instance from the ultimate base and initializers for required elements and attributes. | |
space (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM element. More... | |
space (const space &x,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Copy constructor. More... | |
virtual space * | _clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const |
Copy the instance polymorphically. More... | |
Class corresponding to the space schema type.
Definition at line 655 of file space_h2d_xml.h.
XMLSpace::space::space | ( | const ::xercesc::DOMElement & | e, |
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Create an instance from a DOM element.
e | A DOM element to extract the data from. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
Definition at line 226 of file space_h2d_xml.cpp.
XMLSpace::space::space | ( | const space & | x, |
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Copy constructor.
x | An instance to make a copy of. |
f | Flags to create the copy with. |
c | A pointer to the object that will contain the copy. |
For polymorphic object models use the _clone
function instead.
Definition at line 216 of file space_h2d_xml.cpp.
|
virtual |
Copy the instance polymorphically.
f | Flags to create the copy with. |
c | A pointer to the object that will contain the 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 282 of file space_h2d_xml.cpp.
const space::element_data_sequence & XMLSpace::space::element_data | ( | ) | const |
Return a read-only (constant) reference to the element sequence.
Definition at line 49 of file space_h2d_xml.cpp.
Referenced by Hermes::Hermes2D::Space< Scalar >::save().
space::element_data_sequence & XMLSpace::space::element_data | ( | ) |
Return a read-write reference to the element sequence.
Definition at line 55 of file space_h2d_xml.cpp.
void XMLSpace::space::element_data | ( | const element_data_sequence & | s | ) |
Copy elements from a given sequence.
s | A sequence to copy elements from. |
For each element in s this function makes a copy and adds it to the sequence. Note that this operation completely changes the sequence and all old elements will be lost.
Definition at line 61 of file space_h2d_xml.cpp.
const space::spaceType_optional & XMLSpace::space::spaceType | ( | ) | const |
Return a read-only (constant) reference to the attribute container.
Definition at line 67 of file space_h2d_xml.cpp.
Referenced by Hermes::Hermes2D::Space< Scalar >::save().
space::spaceType_optional & XMLSpace::space::spaceType | ( | ) |
Return a read-write reference to the attribute container.
Definition at line 73 of file space_h2d_xml.cpp.
void XMLSpace::space::spaceType | ( | const spaceType_type & | x | ) |
Set the attribute value.
x | A 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 79 of file space_h2d_xml.cpp.
void XMLSpace::space::spaceType | ( | const spaceType_optional & | x | ) |
Set the attribute value.
x | An 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 85 of file space_h2d_xml.cpp.
void XMLSpace::space::spaceType | ( | ::std::auto_ptr< spaceType_type > | p | ) |
Set the attribute value without copying.
p | A new value to use. |
This function will try to use the passed value directly instead of making a copy.
Definition at line 91 of file space_h2d_xml.cpp.