mil::tatrc::physiology::datamodel::NutritionData Class Reference

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

#include <PatientNutrition.hxx>

Inheritance diagram for mil::tatrc::physiology::datamodel::NutritionData:

Public Member Functions

virtual ~NutritionData ()
 Destructor. More...
 
- Public Member Functions inherited from mil::tatrc::physiology::datamodel::ObjectData
virtual ~ObjectData ()
 Destructor. More...
 
const contentVersion_optionalcontentVersion () const
 Return a read-only (constant) reference to the attribute container. More...
 
contentVersion_optionalcontentVersion ()
 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...
 
ObjectDataoperator= (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_typeName_optional
 Element optional container type. More...
 
typedef ::xsd::cxx::tree::traits< Name_type, char > Name_traits
 Element traits type. More...
 
const Name_optionalName () const
 Return a read-only (constant) reference to the element container. More...
 
Name_optionalName ()
 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_typeCarbohydrate_optional
 Element optional container type. More...
 
typedef ::xsd::cxx::tree::traits< Carbohydrate_type, char > Carbohydrate_traits
 Element traits type. More...
 
const Carbohydrate_optionalCarbohydrate () const
 Return a read-only (constant) reference to the element container. More...
 
Carbohydrate_optionalCarbohydrate ()
 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_typeFat_optional
 Element optional container type. More...
 
typedef ::xsd::cxx::tree::traits< Fat_type, char > Fat_traits
 Element traits type. More...
 
const Fat_optionalFat () const
 Return a read-only (constant) reference to the element container. More...
 
Fat_optionalFat ()
 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_typeProtein_optional
 Element optional container type. More...
 
typedef ::xsd::cxx::tree::traits< Protein_type, char > Protein_traits
 Element traits type. More...
 
const Protein_optionalProtein () const
 Return a read-only (constant) reference to the element container. More...
 
Protein_optionalProtein ()
 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_typeCalcium_optional
 Element optional container type. More...
 
typedef ::xsd::cxx::tree::traits< Calcium_type, char > Calcium_traits
 Element traits type. More...
 
const Calcium_optionalCalcium () const
 Return a read-only (constant) reference to the element container. More...
 
Calcium_optionalCalcium ()
 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_typeSodium_optional
 Element optional container type. More...
 
typedef ::xsd::cxx::tree::traits< Sodium_type, char > Sodium_traits
 Element traits type. More...
 
const Sodium_optionalSodium () const
 Return a read-only (constant) reference to the element container. More...
 
Sodium_optionalSodium ()
 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_typeWater_optional
 Element optional container type. More...
 
typedef ::xsd::cxx::tree::traits< Water_type, char > Water_traits
 Element traits type. More...
 
const Water_optionalWater () const
 Return a read-only (constant) reference to the element container. More...
 
Water_optionalWater ()
 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...
 
NutritionDataoperator= (const NutritionData &x)
 Copy assignment operator. More...
 

Additional Inherited Members

- Public Types inherited from mil::tatrc::physiology::datamodel::ObjectData
typedef ::xml_schema::string contentVersion_type
 Attribute type. More...
 
typedef ::xsd::cxx::tree::optional< contentVersion_typecontentVersion_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

Element optional container type.

Element traits type.

Element optional container type.

Element traits type.

Element optional container type.

Element traits type.

Element optional container type.

Element traits type.

Element optional container type.

Element traits type.

Element optional container type.

Element traits type.

Element optional container type.

Element traits 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
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.
mil::tatrc::physiology::datamodel::NutritionData::NutritionData ( const NutritionData 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.

mil::tatrc::physiology::datamodel::NutritionData::~NutritionData ( )
virtual

Destructor.

Member Function Documentation

NutritionData * mil::tatrc::physiology::datamodel::NutritionData::_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.

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
xA 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
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 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
pA 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
xA 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
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 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
pA 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
xA 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
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 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
pA 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
xA 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
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 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
pA 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
xAn 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
xA 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
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 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
pA 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
xA 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
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 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
pA 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
xA 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
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 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
pA new value to use.

This function will try to use the passed value directly instead of making a copy.