Class corresponding to the NutritionData schema type. More...
#include <PatientNutrition.hxx>

Public Member Functions | |
virtual | ~NutritionData () |
Destructor. More... | |
![]() | |
virtual | ~ObjectData () |
Destructor. More... | |
const contentVersion_optional & | contentVersion () const |
Return a read-only (constant) reference to the attribute container. More... | |
contentVersion_optional & | contentVersion () |
Return a read-write reference to the attribute container. More... | |
void | contentVersion (const contentVersion_type &x) |
Set the attribute value. More... | |
void | contentVersion (const contentVersion_optional &x) |
Set the attribute value. More... | |
void | contentVersion (::std::unique_ptr< contentVersion_type > p) |
Set the attribute value without copying. More... | |
ObjectData () | |
Create an instance from the ultimate base and initializers for required elements and attributes. More... | |
ObjectData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM element. More... | |
ObjectData (const ObjectData &x,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Copy constructor. More... | |
ObjectData & | operator= (const ObjectData &x) |
Copy assignment operator. More... | |
Name | |
Accessor and modifier functions for the Name optional element. | |
typedef ::xml_schema::string | Name_type |
Element type. More... | |
typedef ::xsd::cxx::tree::optional< Name_type > | Name_optional |
Element optional container type. More... | |
typedef ::xsd::cxx::tree::traits< Name_type, char > | Name_traits |
Element traits type. More... | |
const Name_optional & | Name () const |
Return a read-only (constant) reference to the element container. More... | |
Name_optional & | Name () |
Return a read-write reference to the element container. More... | |
void | Name (const Name_type &x) |
Set the element value. More... | |
void | Name (const Name_optional &x) |
Set the element value. More... | |
void | Name (::std::unique_ptr< Name_type > p) |
Set the element value without copying. More... | |
Carbohydrate | |
Accessor and modifier functions for the Carbohydrate optional element. | |
typedef ::mil::tatrc::physiology::datamodel::ScalarMassData | Carbohydrate_type |
Element type. More... | |
typedef ::xsd::cxx::tree::optional< Carbohydrate_type > | Carbohydrate_optional |
Element optional container type. More... | |
typedef ::xsd::cxx::tree::traits< Carbohydrate_type, char > | Carbohydrate_traits |
Element traits type. More... | |
const Carbohydrate_optional & | Carbohydrate () const |
Return a read-only (constant) reference to the element container. More... | |
Carbohydrate_optional & | Carbohydrate () |
Return a read-write reference to the element container. More... | |
void | Carbohydrate (const Carbohydrate_type &x) |
Set the element value. More... | |
void | Carbohydrate (const Carbohydrate_optional &x) |
Set the element value. More... | |
void | Carbohydrate (::std::unique_ptr< Carbohydrate_type > p) |
Set the element value without copying. More... | |
Fat | |
Accessor and modifier functions for the Fat optional element. | |
typedef ::mil::tatrc::physiology::datamodel::ScalarMassData | Fat_type |
Element type. More... | |
typedef ::xsd::cxx::tree::optional< Fat_type > | Fat_optional |
Element optional container type. More... | |
typedef ::xsd::cxx::tree::traits< Fat_type, char > | Fat_traits |
Element traits type. More... | |
const Fat_optional & | Fat () const |
Return a read-only (constant) reference to the element container. More... | |
Fat_optional & | Fat () |
Return a read-write reference to the element container. More... | |
void | Fat (const Fat_type &x) |
Set the element value. More... | |
void | Fat (const Fat_optional &x) |
Set the element value. More... | |
void | Fat (::std::unique_ptr< Fat_type > p) |
Set the element value without copying. More... | |
Protein | |
Accessor and modifier functions for the Protein optional element. | |
typedef ::mil::tatrc::physiology::datamodel::ScalarMassData | Protein_type |
Element type. More... | |
typedef ::xsd::cxx::tree::optional< Protein_type > | Protein_optional |
Element optional container type. More... | |
typedef ::xsd::cxx::tree::traits< Protein_type, char > | Protein_traits |
Element traits type. More... | |
const Protein_optional & | Protein () const |
Return a read-only (constant) reference to the element container. More... | |
Protein_optional & | Protein () |
Return a read-write reference to the element container. More... | |
void | Protein (const Protein_type &x) |
Set the element value. More... | |
void | Protein (const Protein_optional &x) |
Set the element value. More... | |
void | Protein (::std::unique_ptr< Protein_type > p) |
Set the element value without copying. More... | |
Calcium | |
Accessor and modifier functions for the Calcium optional element. | |
typedef ::mil::tatrc::physiology::datamodel::ScalarMassData | Calcium_type |
Element type. More... | |
typedef ::xsd::cxx::tree::optional< Calcium_type > | Calcium_optional |
Element optional container type. More... | |
typedef ::xsd::cxx::tree::traits< Calcium_type, char > | Calcium_traits |
Element traits type. More... | |
const Calcium_optional & | Calcium () const |
Return a read-only (constant) reference to the element container. More... | |
Calcium_optional & | Calcium () |
Return a read-write reference to the element container. More... | |
void | Calcium (const Calcium_type &x) |
Set the element value. More... | |
void | Calcium (const Calcium_optional &x) |
Set the element value. More... | |
void | Calcium (::std::unique_ptr< Calcium_type > p) |
Set the element value without copying. More... | |
Sodium | |
Accessor and modifier functions for the Sodium optional element. | |
typedef ::mil::tatrc::physiology::datamodel::ScalarMassData | Sodium_type |
Element type. More... | |
typedef ::xsd::cxx::tree::optional< Sodium_type > | Sodium_optional |
Element optional container type. More... | |
typedef ::xsd::cxx::tree::traits< Sodium_type, char > | Sodium_traits |
Element traits type. More... | |
const Sodium_optional & | Sodium () const |
Return a read-only (constant) reference to the element container. More... | |
Sodium_optional & | Sodium () |
Return a read-write reference to the element container. More... | |
void | Sodium (const Sodium_type &x) |
Set the element value. More... | |
void | Sodium (const Sodium_optional &x) |
Set the element value. More... | |
void | Sodium (::std::unique_ptr< Sodium_type > p) |
Set the element value without copying. More... | |
Water | |
Accessor and modifier functions for the Water optional element. | |
typedef ::mil::tatrc::physiology::datamodel::ScalarVolumeData | Water_type |
Element type. More... | |
typedef ::xsd::cxx::tree::optional< Water_type > | Water_optional |
Element optional container type. More... | |
typedef ::xsd::cxx::tree::traits< Water_type, char > | Water_traits |
Element traits type. More... | |
const Water_optional & | Water () const |
Return a read-only (constant) reference to the element container. More... | |
Water_optional & | Water () |
Return a read-write reference to the element container. More... | |
void | Water (const Water_type &x) |
Set the element value. More... | |
void | Water (const Water_optional &x) |
Set the element value. More... | |
void | Water (::std::unique_ptr< Water_type > p) |
Set the element value without copying. More... | |
Constructors | |
NutritionData () | |
Create an instance from the ultimate base and initializers for required elements and attributes. More... | |
NutritionData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM element. More... | |
NutritionData (const NutritionData &x,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Copy constructor. More... | |
virtual NutritionData * | _clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const |
Copy the instance polymorphically. More... | |
NutritionData & | operator= (const NutritionData &x) |
Copy assignment operator. More... | |
Additional Inherited Members | |
![]() | |
typedef ::xml_schema::string | contentVersion_type |
Attribute type. More... | |
typedef ::xsd::cxx::tree::optional< contentVersion_type > | contentVersion_optional |
Attribute optional container type. More... | |
typedef ::xsd::cxx::tree::traits< contentVersion_type, char > | contentVersion_traits |
Attribute traits type. More... | |
Detailed Description
Class corresponding to the NutritionData schema type.
Member Typedef Documentation
typedef ::xsd::cxx::tree::optional< Calcium_type > mil::tatrc::physiology::datamodel::NutritionData::Calcium_optional |
Element optional container type.
typedef ::xsd::cxx::tree::traits< Calcium_type, char > mil::tatrc::physiology::datamodel::NutritionData::Calcium_traits |
Element traits type.
typedef ::mil::tatrc::physiology::datamodel::ScalarMassData mil::tatrc::physiology::datamodel::NutritionData::Calcium_type |
Element type.
typedef ::xsd::cxx::tree::optional< Carbohydrate_type > mil::tatrc::physiology::datamodel::NutritionData::Carbohydrate_optional |
Element optional container type.
typedef ::xsd::cxx::tree::traits< Carbohydrate_type, char > mil::tatrc::physiology::datamodel::NutritionData::Carbohydrate_traits |
Element traits type.
typedef ::mil::tatrc::physiology::datamodel::ScalarMassData mil::tatrc::physiology::datamodel::NutritionData::Carbohydrate_type |
Element type.
typedef ::xsd::cxx::tree::optional< Fat_type > mil::tatrc::physiology::datamodel::NutritionData::Fat_optional |
Element optional container type.
typedef ::xsd::cxx::tree::traits< Fat_type, char > mil::tatrc::physiology::datamodel::NutritionData::Fat_traits |
Element traits type.
typedef ::mil::tatrc::physiology::datamodel::ScalarMassData mil::tatrc::physiology::datamodel::NutritionData::Fat_type |
Element type.
typedef ::xsd::cxx::tree::optional< Name_type > mil::tatrc::physiology::datamodel::NutritionData::Name_optional |
Element optional container type.
typedef ::xsd::cxx::tree::traits< Name_type, char > mil::tatrc::physiology::datamodel::NutritionData::Name_traits |
Element traits type.
Element type.
typedef ::xsd::cxx::tree::optional< Protein_type > mil::tatrc::physiology::datamodel::NutritionData::Protein_optional |
Element optional container type.
typedef ::xsd::cxx::tree::traits< Protein_type, char > mil::tatrc::physiology::datamodel::NutritionData::Protein_traits |
Element traits type.
typedef ::mil::tatrc::physiology::datamodel::ScalarMassData mil::tatrc::physiology::datamodel::NutritionData::Protein_type |
Element type.
typedef ::xsd::cxx::tree::optional< Sodium_type > mil::tatrc::physiology::datamodel::NutritionData::Sodium_optional |
Element optional container type.
typedef ::xsd::cxx::tree::traits< Sodium_type, char > mil::tatrc::physiology::datamodel::NutritionData::Sodium_traits |
Element traits type.
typedef ::mil::tatrc::physiology::datamodel::ScalarMassData mil::tatrc::physiology::datamodel::NutritionData::Sodium_type |
Element type.
typedef ::xsd::cxx::tree::optional< Water_type > mil::tatrc::physiology::datamodel::NutritionData::Water_optional |
Element optional container type.
typedef ::xsd::cxx::tree::traits< Water_type, char > mil::tatrc::physiology::datamodel::NutritionData::Water_traits |
Element traits type.
typedef ::mil::tatrc::physiology::datamodel::ScalarVolumeData mil::tatrc::physiology::datamodel::NutritionData::Water_type |
Element type.
Constructor & Destructor Documentation
mil::tatrc::physiology::datamodel::NutritionData::NutritionData | ( | ) |
Create an instance from the ultimate base and initializers for required elements and attributes.
mil::tatrc::physiology::datamodel::NutritionData::NutritionData | ( | 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::NutritionData::NutritionData | ( | const NutritionData & | 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::ObjectData.
const NutritionData::Calcium_optional & mil::tatrc::physiology::datamodel::NutritionData::Calcium | ( | ) | const |
Return a read-only (constant) reference to the element container.
- Returns
- A constant reference to the optional container.
NutritionData::Calcium_optional & mil::tatrc::physiology::datamodel::NutritionData::Calcium | ( | ) |
Return a read-write reference to the element container.
- Returns
- A reference to the optional container.
void mil::tatrc::physiology::datamodel::NutritionData::Calcium | ( | const Calcium_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::NutritionData::Calcium | ( | const Calcium_optional & | x | ) |
Set the element 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 element. Otherwise the element container is set the 'not present' state.
void mil::tatrc::physiology::datamodel::NutritionData::Calcium | ( | ::std::unique_ptr< Calcium_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.
const NutritionData::Carbohydrate_optional & mil::tatrc::physiology::datamodel::NutritionData::Carbohydrate | ( | ) | const |
Return a read-only (constant) reference to the element container.
- Returns
- A constant reference to the optional container.
NutritionData::Carbohydrate_optional & mil::tatrc::physiology::datamodel::NutritionData::Carbohydrate | ( | ) |
Return a read-write reference to the element container.
- Returns
- A reference to the optional container.
void mil::tatrc::physiology::datamodel::NutritionData::Carbohydrate | ( | const Carbohydrate_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::NutritionData::Carbohydrate | ( | const Carbohydrate_optional & | x | ) |
Set the element 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 element. Otherwise the element container is set the 'not present' state.
void mil::tatrc::physiology::datamodel::NutritionData::Carbohydrate | ( | ::std::unique_ptr< Carbohydrate_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.
const NutritionData::Fat_optional & mil::tatrc::physiology::datamodel::NutritionData::Fat | ( | ) | const |
Return a read-only (constant) reference to the element container.
- Returns
- A constant reference to the optional container.
NutritionData::Fat_optional & mil::tatrc::physiology::datamodel::NutritionData::Fat | ( | ) |
Return a read-write reference to the element container.
- Returns
- A reference to the optional container.
void mil::tatrc::physiology::datamodel::NutritionData::Fat | ( | const Fat_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::NutritionData::Fat | ( | const Fat_optional & | x | ) |
Set the element 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 element. Otherwise the element container is set the 'not present' state.
void mil::tatrc::physiology::datamodel::NutritionData::Fat | ( | ::std::unique_ptr< Fat_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.
const NutritionData::Name_optional & mil::tatrc::physiology::datamodel::NutritionData::Name | ( | ) | const |
Return a read-only (constant) reference to the element container.
- Returns
- A constant reference to the optional container.
NutritionData::Name_optional & mil::tatrc::physiology::datamodel::NutritionData::Name | ( | ) |
Return a read-write reference to the element container.
- Returns
- A reference to the optional container.
void mil::tatrc::physiology::datamodel::NutritionData::Name | ( | const Name_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::NutritionData::Name | ( | const Name_optional & | x | ) |
Set the element 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 element. Otherwise the element container is set the 'not present' state.
void mil::tatrc::physiology::datamodel::NutritionData::Name | ( | ::std::unique_ptr< Name_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.
NutritionData & mil::tatrc::physiology::datamodel::NutritionData::operator= | ( | const NutritionData & | x | ) |
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 NutritionData::Protein_optional & mil::tatrc::physiology::datamodel::NutritionData::Protein | ( | ) | const |
Return a read-only (constant) reference to the element container.
- Returns
- A constant reference to the optional container.
NutritionData::Protein_optional & mil::tatrc::physiology::datamodel::NutritionData::Protein | ( | ) |
Return a read-write reference to the element container.
- Returns
- A reference to the optional container.
void mil::tatrc::physiology::datamodel::NutritionData::Protein | ( | const Protein_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::NutritionData::Protein | ( | const Protein_optional & | x | ) |
Set the element 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 element. Otherwise the element container is set the 'not present' state.
void mil::tatrc::physiology::datamodel::NutritionData::Protein | ( | ::std::unique_ptr< Protein_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.
const NutritionData::Sodium_optional & mil::tatrc::physiology::datamodel::NutritionData::Sodium | ( | ) | const |
Return a read-only (constant) reference to the element container.
- Returns
- A constant reference to the optional container.
NutritionData::Sodium_optional & mil::tatrc::physiology::datamodel::NutritionData::Sodium | ( | ) |
Return a read-write reference to the element container.
- Returns
- A reference to the optional container.
void mil::tatrc::physiology::datamodel::NutritionData::Sodium | ( | const Sodium_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::NutritionData::Sodium | ( | const Sodium_optional & | x | ) |
Set the element 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 element. Otherwise the element container is set the 'not present' state.
void mil::tatrc::physiology::datamodel::NutritionData::Sodium | ( | ::std::unique_ptr< Sodium_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.
const NutritionData::Water_optional & mil::tatrc::physiology::datamodel::NutritionData::Water | ( | ) | const |
Return a read-only (constant) reference to the element container.
- Returns
- A constant reference to the optional container.
NutritionData::Water_optional & mil::tatrc::physiology::datamodel::NutritionData::Water | ( | ) |
Return a read-write reference to the element container.
- Returns
- A reference to the optional container.
void mil::tatrc::physiology::datamodel::NutritionData::Water | ( | const Water_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::NutritionData::Water | ( | const Water_optional & | x | ) |
Set the element 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 element. Otherwise the element container is set the 'not present' state.
void mil::tatrc::physiology::datamodel::NutritionData::Water | ( | ::std::unique_ptr< Water_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.