mil::tatrc::physiology::datamodel::BernoulliDistributionData Class Reference

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

#include <Patient.hxx>

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

Public Member Functions

virtual ~BernoulliDistributionData ()
 Destructor. More...
 

weight

Accessor and modifier functions for the weight required element.

typedef ::xml_schema::double_ weight_type
 Element type. More...
 
typedef ::xsd::cxx::tree::traits< weight_type, char,::xsd::cxx::tree::schema_type::double_ > weight_traits
 Element traits type. More...
 
const weight_typeweight () const
 Return a read-only (constant) reference to the element. More...
 
weight_typeweight ()
 Return a read-write reference to the element. More...
 
void weight (const weight_type &x)
 Set the element value. 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_typegroup () const
 Return a read-only (constant) reference to the attribute. More...
 
group_typegroup ()
 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_typegroup_default_value ()
 Return the default value for the attribute. More...
 

Constructors

 BernoulliDistributionData ()
 Default constructor. More...
 
 BernoulliDistributionData (const weight_type &)
 Create an instance from the ultimate base and initializers for required elements and attributes. More...
 
 BernoulliDistributionData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 BernoulliDistributionData (const BernoulliDistributionData &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual BernoulliDistributionData_clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const
 Copy the instance polymorphically. More...
 
BernoulliDistributionDataoperator= (const BernoulliDistributionData &x)
 Copy assignment operator. More...
 

Detailed Description

Class corresponding to the BernoulliDistributionData schema type.

Parameters for defining a Bernoulli distribution of [0,1] with p(0) = weight

Member Typedef Documentation

Attribute traits type.

typedef ::xsd::cxx::tree::traits< weight_type, char, ::xsd::cxx::tree::schema_type::double_ > mil::tatrc::physiology::datamodel::BernoulliDistributionData::weight_traits

Element traits type.

Constructor & Destructor Documentation

mil::tatrc::physiology::datamodel::BernoulliDistributionData::BernoulliDistributionData ( )

Default constructor.

Note that this constructor leaves required elements and attributes uninitialized.

mil::tatrc::physiology::datamodel::BernoulliDistributionData::BernoulliDistributionData ( const weight_type weight)

Create an instance from the ultimate base and initializers for required elements and attributes.

mil::tatrc::physiology::datamodel::BernoulliDistributionData::BernoulliDistributionData ( 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::BernoulliDistributionData::BernoulliDistributionData ( const BernoulliDistributionData 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::BernoulliDistributionData::~BernoulliDistributionData ( )
virtual

Destructor.

Member Function Documentation

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

const BernoulliDistributionData::group_type & mil::tatrc::physiology::datamodel::BernoulliDistributionData::group ( ) const

Return a read-only (constant) reference to the attribute.

Returns
A constant reference to the attribute.
BernoulliDistributionData::group_type & mil::tatrc::physiology::datamodel::BernoulliDistributionData::group ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.
void mil::tatrc::physiology::datamodel::BernoulliDistributionData::group ( const group_type x)

Set the attribute value.

Parameters
xA 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::BernoulliDistributionData::group ( ::std::unique_ptr< group_type p)

Set the attribute 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 BernoulliDistributionData::group_type & mil::tatrc::physiology::datamodel::BernoulliDistributionData::group_default_value ( )
static

Return the default value for the attribute.

Returns
A read-only (constant) reference to the attribute's default value.
BernoulliDistributionData & mil::tatrc::physiology::datamodel::BernoulliDistributionData::operator= ( const BernoulliDistributionData 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 BernoulliDistributionData::weight_type & mil::tatrc::physiology::datamodel::BernoulliDistributionData::weight ( ) const

Return a read-only (constant) reference to the element.

Returns
A constant reference to the element.
BernoulliDistributionData::weight_type & mil::tatrc::physiology::datamodel::BernoulliDistributionData::weight ( )

Return a read-write reference to the element.

Returns
A reference to the element.
void mil::tatrc::physiology::datamodel::BernoulliDistributionData::weight ( const weight_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.

BernoulliDistributionData::weight_type mil::tatrc::physiology::datamodel::BernoulliDistributionData::weight_default_value ( )
static

Return the default value for the element.

Returns
The element's default value.