mil::tatrc::physiology::datamodel::CompartmentGraphData Class Reference

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

#include <Compartment.hxx>

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

Public Member Functions

virtual ~CompartmentGraphData ()
 Destructor. More...
 

Name

Accessor and modifier functions for the Name required element.

typedef ::xml_schema::string Name_type
 Element type. More...
 
typedef ::xsd::cxx::tree::traits< Name_type, char > Name_traits
 Element traits type. More...
 
const Name_typeName () const
 Return a read-only (constant) reference to the element. More...
 
Name_typeName ()
 Return a read-write reference to the element. More...
 
void Name (const Name_type &x)
 Set the element value. More...
 
void Name (::std::unique_ptr< Name_type > p)
 Set the element value without copying. More...
 

Compartment

Accessor and modifier functions for the Compartment sequence element.

typedef ::xml_schema::string Compartment_type
 Element type. More...
 
typedef ::xsd::cxx::tree::sequence< Compartment_typeCompartment_sequence
 Element sequence container type. More...
 
typedef Compartment_sequence::iterator Compartment_iterator
 Element iterator type. More...
 
typedef Compartment_sequence::const_iterator Compartment_const_iterator
 Element constant iterator type. More...
 
typedef ::xsd::cxx::tree::traits< Compartment_type, char > Compartment_traits
 Element traits type. More...
 
const Compartment_sequenceCompartment () const
 Return a read-only (constant) reference to the element sequence. More...
 
Compartment_sequenceCompartment ()
 Return a read-write reference to the element sequence. More...
 
void Compartment (const Compartment_sequence &s)
 Copy elements from a given sequence. More...
 

Link

Accessor and modifier functions for the Link sequence element.

typedef ::xml_schema::string Link_type
 Element type. More...
 
typedef ::xsd::cxx::tree::sequence< Link_typeLink_sequence
 Element sequence container type. More...
 
typedef Link_sequence::iterator Link_iterator
 Element iterator type. More...
 
typedef Link_sequence::const_iterator Link_const_iterator
 Element constant iterator type. More...
 
typedef ::xsd::cxx::tree::traits< Link_type, char > Link_traits
 Element traits type. More...
 
const Link_sequenceLink () const
 Return a read-only (constant) reference to the element sequence. More...
 
Link_sequenceLink ()
 Return a read-write reference to the element sequence. More...
 
void Link (const Link_sequence &s)
 Copy elements from a given sequence. More...
 

Constructors

 CompartmentGraphData ()
 Default constructor. More...
 
 CompartmentGraphData (const Name_type &)
 Create an instance from the ultimate base and initializers for required elements and attributes. More...
 
 CompartmentGraphData (::std::unique_ptr< Name_type >)
 Create an instance from the ultimate base and initializers for required elements and attributes (::std::unique_ptr version). More...
 
 CompartmentGraphData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 CompartmentGraphData (const CompartmentGraphData &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual CompartmentGraphData_clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const
 Copy the instance polymorphically. More...
 
CompartmentGraphDataoperator= (const CompartmentGraphData &x)
 Copy assignment operator. More...
 

Detailed Description

Class corresponding to the CompartmentGraphData schema type.

Member Typedef Documentation

Element constant iterator type.

Element iterator type.

Element sequence container type.

Element traits type.

Element constant iterator type.

Element iterator type.

Element sequence container type.

Element traits type.

Element traits type.

Constructor & Destructor Documentation

mil::tatrc::physiology::datamodel::CompartmentGraphData::CompartmentGraphData ( )

Default constructor.

Note that this constructor leaves required elements and attributes uninitialized.

mil::tatrc::physiology::datamodel::CompartmentGraphData::CompartmentGraphData ( const Name_type Name)

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

mil::tatrc::physiology::datamodel::CompartmentGraphData::CompartmentGraphData ( ::std::unique_ptr< Name_type Name)

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::CompartmentGraphData::CompartmentGraphData ( 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::CompartmentGraphData::CompartmentGraphData ( const CompartmentGraphData 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::CompartmentGraphData::~CompartmentGraphData ( )
virtual

Destructor.

Member Function Documentation

CompartmentGraphData * mil::tatrc::physiology::datamodel::CompartmentGraphData::_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 in mil::tatrc::physiology::datamodel::LiquidCompartmentGraphData, mil::tatrc::physiology::datamodel::GasCompartmentGraphData, and mil::tatrc::physiology::datamodel::FluidCompartmentGraphData.

const CompartmentGraphData::Compartment_sequence & mil::tatrc::physiology::datamodel::CompartmentGraphData::Compartment ( ) const

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

Returns
A constant reference to the sequence container.
CompartmentGraphData::Compartment_sequence & mil::tatrc::physiology::datamodel::CompartmentGraphData::Compartment ( )

Return a read-write reference to the element sequence.

Returns
A reference to the sequence container.
void mil::tatrc::physiology::datamodel::CompartmentGraphData::Compartment ( const Compartment_sequence s)

Copy elements from a given sequence.

Parameters
sA 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.

const CompartmentGraphData::Link_sequence & mil::tatrc::physiology::datamodel::CompartmentGraphData::Link ( ) const

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

Returns
A constant reference to the sequence container.
CompartmentGraphData::Link_sequence & mil::tatrc::physiology::datamodel::CompartmentGraphData::Link ( )

Return a read-write reference to the element sequence.

Returns
A reference to the sequence container.
void mil::tatrc::physiology::datamodel::CompartmentGraphData::Link ( const Link_sequence s)

Copy elements from a given sequence.

Parameters
sA 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.

const CompartmentGraphData::Name_type & mil::tatrc::physiology::datamodel::CompartmentGraphData::Name ( ) const

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

Returns
A constant reference to the element.
CompartmentGraphData::Name_type & mil::tatrc::physiology::datamodel::CompartmentGraphData::Name ( )

Return a read-write reference to the element.

Returns
A reference to the element.
void mil::tatrc::physiology::datamodel::CompartmentGraphData::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::CompartmentGraphData::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.

CompartmentGraphData & mil::tatrc::physiology::datamodel::CompartmentGraphData::operator= ( const CompartmentGraphData 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.