Class corresponding to the ArrayData schema type. More...
#include <Properties.hxx>
Public Member Functions | |
virtual | ~ArrayData () |
Destructor. More... | |
Public Member Functions inherited from mil::tatrc::physiology::datamodel::PropertyData | |
virtual | ~PropertyData () |
Destructor. More... | |
PropertyData () | |
Create an instance from the ultimate base and initializers for required elements and attributes. More... | |
PropertyData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM element. More... | |
PropertyData (const ::xercesc::DOMAttr &a,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM attribute. More... | |
PropertyData (const ::std::string &s, const ::xercesc::DOMElement *e,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a string fragment. More... | |
PropertyData (const PropertyData &x,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Copy constructor. More... | |
Value | |
Accessor and modifier functions for the Value required element. | |
typedef ::mil::tatrc::physiology::datamodel::DoubleArray | Value_type |
Element type. More... | |
typedef ::xsd::cxx::tree::traits< Value_type, char > | Value_traits |
Element traits type. More... | |
const Value_type & | Value () const |
Return a read-only (constant) reference to the element. More... | |
Value_type & | Value () |
Return a read-write reference to the element. More... | |
void | Value (const Value_type &x) |
Set the element value. More... | |
void | Value (::std::unique_ptr< Value_type > p) |
Set the element value without copying. More... | |
unit | |
Accessor and modifier functions for the unit optional attribute. | |
typedef ::xml_schema::string | unit_type |
Attribute type. More... | |
typedef ::xsd::cxx::tree::optional< unit_type > | unit_optional |
Attribute optional container type. More... | |
typedef ::xsd::cxx::tree::traits< unit_type, char > | unit_traits |
Attribute traits type. More... | |
const unit_optional & | unit () const |
Return a read-only (constant) reference to the attribute container. More... | |
unit_optional & | unit () |
Return a read-write reference to the attribute container. More... | |
void | unit (const unit_type &x) |
Set the attribute value. More... | |
void | unit (const unit_optional &x) |
Set the attribute value. More... | |
void | unit (::std::unique_ptr< unit_type > p) |
Set the attribute value without copying. More... | |
Constructors | |
ArrayData () | |
Default constructor. More... | |
ArrayData (const Value_type &) | |
Create an instance from the ultimate base and initializers for required elements and attributes. More... | |
ArrayData (::std::unique_ptr< Value_type >) | |
Create an instance from the ultimate base and initializers for required elements and attributes (::std::unique_ptr version). More... | |
ArrayData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM element. More... | |
ArrayData (const ArrayData &x,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Copy constructor. More... | |
virtual ArrayData * | _clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const |
Copy the instance polymorphically. More... | |
ArrayData & | operator= (const ArrayData &x) |
Copy assignment operator. More... | |
Detailed Description
Class corresponding to the ArrayData schema type.
Member Typedef Documentation
typedef ::xsd::cxx::tree::optional< unit_type > mil::tatrc::physiology::datamodel::ArrayData::unit_optional |
Attribute optional container type.
typedef ::xsd::cxx::tree::traits< unit_type, char > mil::tatrc::physiology::datamodel::ArrayData::unit_traits |
Attribute traits type.
Attribute type.
typedef ::xsd::cxx::tree::traits< Value_type, char > mil::tatrc::physiology::datamodel::ArrayData::Value_traits |
Element traits type.
typedef ::mil::tatrc::physiology::datamodel::DoubleArray mil::tatrc::physiology::datamodel::ArrayData::Value_type |
Element type.
Constructor & Destructor Documentation
mil::tatrc::physiology::datamodel::ArrayData::ArrayData | ( | ) |
Default constructor.
Note that this constructor leaves required elements and attributes uninitialized.
mil::tatrc::physiology::datamodel::ArrayData::ArrayData | ( | const Value_type & | Value | ) |
Create an instance from the ultimate base and initializers for required elements and attributes.
mil::tatrc::physiology::datamodel::ArrayData::ArrayData | ( | ::std::unique_ptr< Value_type > | Value | ) |
Create an instance from the ultimate base and initializers for required elements and attributes (::std::unique_ptr version).
This constructor will try to use the passed values directly instead of making copies.
mil::tatrc::physiology::datamodel::ArrayData::ArrayData | ( | const ::xercesc::DOMElement & | e, |
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Create an instance from a DOM element.
- Parameters
-
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.
mil::tatrc::physiology::datamodel::ArrayData::ArrayData | ( | const ArrayData & | x, |
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Copy constructor.
- Parameters
-
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.
|
virtual |
Destructor.
Member Function Documentation
|
virtual |
Copy the instance polymorphically.
- Parameters
-
f Flags to create the copy with. c A 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.
Reimplemented from mil::tatrc::physiology::datamodel::PropertyData.
Reimplemented in mil::tatrc::physiology::datamodel::ArrayTimeData.
Copy assignment operator.
- Parameters
-
x An instance to make a copy of.
- Returns
- A reference to itself.
For polymorphic object models use the _clone
function instead.
const ArrayData::unit_optional & mil::tatrc::physiology::datamodel::ArrayData::unit | ( | ) | const |
Return a read-only (constant) reference to the attribute container.
- Returns
- A constant reference to the optional container.
ArrayData::unit_optional & mil::tatrc::physiology::datamodel::ArrayData::unit | ( | ) |
Return a read-write reference to the attribute container.
- Returns
- A reference to the optional container.
void mil::tatrc::physiology::datamodel::ArrayData::unit | ( | const unit_type & | x | ) |
Set the attribute value.
- Parameters
-
x A new value to set.
This function makes a copy of its argument and sets it as the new value of the attribute.
void mil::tatrc::physiology::datamodel::ArrayData::unit | ( | const unit_optional & | x | ) |
Set the attribute value.
- Parameters
-
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.
void mil::tatrc::physiology::datamodel::ArrayData::unit | ( | ::std::unique_ptr< unit_type > | p | ) |
Set the attribute value without copying.
- Parameters
-
p A new value to use.
This function will try to use the passed value directly instead of making a copy.
const ArrayData::Value_type & mil::tatrc::physiology::datamodel::ArrayData::Value | ( | ) | const |
Return a read-only (constant) reference to the element.
- Returns
- A constant reference to the element.
ArrayData::Value_type & mil::tatrc::physiology::datamodel::ArrayData::Value | ( | ) |
Return a read-write reference to the element.
- Returns
- A reference to the element.
void mil::tatrc::physiology::datamodel::ArrayData::Value | ( | const Value_type & | x | ) |
Set the element value.
- Parameters
-
x A new value to set.
This function makes a copy of its argument and sets it as the new value of the element.
void mil::tatrc::physiology::datamodel::ArrayData::Value | ( | ::std::unique_ptr< Value_type > | p | ) |
Set the element value without copying.
- Parameters
-
p A new value to use.
This function will try to use the passed value directly instead of making a copy.