Class corresponding to the DiscreteDistributionRangeData schema type. More...
#include <Patient.hxx>

Public Member Functions | |
virtual | ~DiscreteDistributionRangeData () |
Destructor. More... | |
weight | |
Accessor and modifier functions for the weight sequence element. | |
typedef ::xml_schema::int_ | weight_type |
Element type. More... | |
typedef ::xsd::cxx::tree::sequence< weight_type > | weight_sequence |
Element sequence container type. More... | |
typedef weight_sequence::iterator | weight_iterator |
Element iterator type. More... | |
typedef weight_sequence::const_iterator | weight_const_iterator |
Element constant iterator type. More... | |
typedef ::xsd::cxx::tree::traits< weight_type, char > | weight_traits |
Element traits type. More... | |
const weight_sequence & | weight () const |
Return a read-only (constant) reference to the element sequence. More... | |
weight_sequence & | weight () |
Return a read-write reference to the element sequence. More... | |
void | weight (const weight_sequence &s) |
Copy elements from a given sequence. More... | |
static weight_type | weight_default_value () |
Return the default value for the element. More... | |
group | |
Accessor and modifier functions for the group optional attribute with a default value. | |
typedef ::xml_schema::string | group_type |
Attribute type. More... | |
typedef ::xsd::cxx::tree::traits< group_type, char > | group_traits |
Attribute traits type. More... | |
const group_type & | group () const |
Return a read-only (constant) reference to the attribute. More... | |
group_type & | group () |
Return a read-write reference to the attribute. More... | |
void | group (const group_type &x) |
Set the attribute value. More... | |
void | group (::std::unique_ptr< group_type > p) |
Set the attribute value without copying. More... | |
static const group_type & | group_default_value () |
Return the default value for the attribute. More... | |
Constructors | |
DiscreteDistributionRangeData () | |
Create an instance from the ultimate base and initializers for required elements and attributes. More... | |
DiscreteDistributionRangeData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM element. More... | |
DiscreteDistributionRangeData (const DiscreteDistributionRangeData &x,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Copy constructor. More... | |
virtual DiscreteDistributionRangeData * | _clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const |
Copy the instance polymorphically. More... | |
DiscreteDistributionRangeData & | operator= (const DiscreteDistributionRangeData &x) |
Copy assignment operator. More... | |
Detailed Description
Class corresponding to the DiscreteDistributionRangeData schema type.
Parameters for defining a discrete distribution for enum selection each weight will be used as a probility for numbers [0..N) based on W_i/sum(W)
Member Typedef Documentation
typedef ::xsd::cxx::tree::traits< group_type, char > mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::group_traits |
Attribute traits type.
typedef ::xml_schema::string mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::group_type |
Attribute type.
typedef weight_sequence::const_iterator mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::weight_const_iterator |
Element constant iterator type.
typedef weight_sequence::iterator mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::weight_iterator |
Element iterator type.
typedef ::xsd::cxx::tree::sequence< weight_type > mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::weight_sequence |
Element sequence container type.
typedef ::xsd::cxx::tree::traits< weight_type, char > mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::weight_traits |
Element traits type.
typedef ::xml_schema::int_ mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::weight_type |
Element type.
Constructor & Destructor Documentation
mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::DiscreteDistributionRangeData | ( | ) |
Create an instance from the ultimate base and initializers for required elements and attributes.
mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::DiscreteDistributionRangeData | ( | 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::DiscreteDistributionRangeData::DiscreteDistributionRangeData | ( | const DiscreteDistributionRangeData & | 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.
const DiscreteDistributionRangeData::group_type & mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::group | ( | ) | const |
Return a read-only (constant) reference to the attribute.
- Returns
- A constant reference to the attribute.
DiscreteDistributionRangeData::group_type & mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::group | ( | ) |
Return a read-write reference to the attribute.
- Returns
- A reference to the attribute.
void mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::group | ( | const group_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::DiscreteDistributionRangeData::group | ( | ::std::unique_ptr< group_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.
|
static |
Return the default value for the attribute.
- Returns
- A read-only (constant) reference to the attribute's default value.
DiscreteDistributionRangeData & mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::operator= | ( | const DiscreteDistributionRangeData & | 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 DiscreteDistributionRangeData::weight_sequence & mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::weight | ( | ) | const |
Return a read-only (constant) reference to the element sequence.
- Returns
- A constant reference to the sequence container.
DiscreteDistributionRangeData::weight_sequence & mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::weight | ( | ) |
Return a read-write reference to the element sequence.
- Returns
- A reference to the sequence container.
void mil::tatrc::physiology::datamodel::DiscreteDistributionRangeData::weight | ( | const weight_sequence & | s | ) |
Copy elements from a given sequence.
- Parameters
-
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.
|
static |
Return the default value for the element.
- Returns
- The element's default value.