ls1-MarDyn
ls1-MarDyn molecular dynamics code
Public Member Functions | List of all members
DataArrayList_t Class Reference

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

#include <vtk-unstructured.h>

Inheritance diagram for DataArrayList_t:
DataArray_t

Public Member Functions

 DataArrayList_t ()
 Default constructor. More...
 
 DataArrayList_t (size_type n, const ::xml_schema::decimal &x)
 Create a list with copies of the specified element. More...
 
template<typename I >
 DataArrayList_t (const I &begin, const I &end)
 Create a list from an iterator range. More...
 
 DataArrayList_t (const ::xercesc::DOMElement &e, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 DataArrayList_t (const ::xercesc::DOMAttr &a, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Create an instance from a DOM attribute. More...
 
 DataArrayList_t (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...
 
 DataArrayList_t (const DataArrayList_t &x, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual DataArrayList_t_clone (::xml_schema::flags f=0, ::xml_schema::container *c=0) const
 Copy the instance polymorphically. More...
 
virtual ~DataArrayList_t ()
 Destructor.
 

Detailed Description

List class corresponding to the DataArrayList_t schema type.

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

Constructor & Destructor Documentation

◆ DataArrayList_t() [1/7]

DataArrayList_t::DataArrayList_t ( )

Default constructor.

Creates an empty list.

◆ DataArrayList_t() [2/7]

DataArrayList_t::DataArrayList_t ( size_type  n,
const ::xml_schema::decimal 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.

◆ DataArrayList_t() [3/7]

template<typename I >
DataArrayList_t::DataArrayList_t ( 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).

◆ DataArrayList_t() [4/7]

DataArrayList_t::DataArrayList_t ( 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.

◆ DataArrayList_t() [5/7]

DataArrayList_t::DataArrayList_t ( 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.

◆ DataArrayList_t() [6/7]

DataArrayList_t::DataArrayList_t ( 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.

◆ DataArrayList_t() [7/7]

DataArrayList_t::DataArrayList_t ( const DataArrayList_t 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.

Member Function Documentation

◆ _clone()

DataArrayList_t * DataArrayList_t::_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 DataArray_t.


The documentation for this class was generated from the following files: