mil::tatrc::physiology::datamodel::DoubleList Class Reference

List class corresponding to the DoubleList schema type. More...

#include <Properties.hxx>

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

Public Member Functions

 DoubleList ()
 Default constructor. More...
 
 DoubleList (size_type n, const ::xml_schema::double_ &x)
 Create a list with copies of the specified element. More...
 
template<typename I >
 DoubleList (const I &begin, const I &end)
 Create a list from an iterator range. More...
 
 DoubleList (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 DoubleList (const ::xercesc::DOMAttr &a,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM attribute. More...
 
 DoubleList (const ::std::string &s, const ::xercesc::DOMElement *e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a string fragment. More...
 
 DoubleList (const DoubleList &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual DoubleList_clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const
 Copy the instance polymorphically. More...
 
virtual ~DoubleList ()
 Destructor. More...
 

Detailed Description

List class corresponding to the DoubleList schema type.

This class has an interface of a standard C++ sequence (e.g., std::vector).

Constructor & Destructor Documentation

mil::tatrc::physiology::datamodel::DoubleList::DoubleList ( )

Default constructor.

Creates an empty list.

mil::tatrc::physiology::datamodel::DoubleList::DoubleList ( size_type  n,
const ::xml_schema::double_ x 
)

Create a list with copies of the specified element.

Parameters
nA number of elements to copy.
xAn element to copy.

This constructor creates a list with n copies of x.

template<typename I >
mil::tatrc::physiology::datamodel::DoubleList::DoubleList ( const I &  begin,
const I &  end 
)
inline

Create a list from an iterator range.

Parameters
beginAn iterator pointing to the first element.
endAn iterator pointing to the one past the last element.

This constructor creates a list consisting of copies of the elements in the range [begin,end).

mil::tatrc::physiology::datamodel::DoubleList::DoubleList ( 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::DoubleList::DoubleList ( const ::xercesc::DOMAttr &  a,
::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
)

Create an instance from a DOM attribute.

Parameters
aA DOM attribute 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::DoubleList::DoubleList ( const ::std::string &  s,
const ::xercesc::DOMElement *  e,
::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
)

Create an instance from a string fragment.

Parameters
sA string fragment to extract the data from.
eA pointer to DOM element containing the string fragment.
fFlags to create the new instance with.
cA pointer to the object that will contain the new instance.
mil::tatrc::physiology::datamodel::DoubleList::DoubleList ( const DoubleList 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::DoubleList::~DoubleList ( )
virtual

Destructor.

Member Function Documentation

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