ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
List class corresponding to the DataArrayList_t schema type. More...
#include <vtk-unstructured.h>
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. | |
List class corresponding to the DataArrayList_t schema type.
This class has an interface of a standard C++ sequence (e.g., std::vector).
DataArrayList_t::DataArrayList_t | ( | ) |
Default constructor.
Creates an empty list.
DataArrayList_t::DataArrayList_t | ( | size_type | n, |
const ::xml_schema::decimal & | x | ||
) |
Create a list with copies of the specified element.
n | A number of elements to copy. |
x | An element to copy. |
This constructor creates a list with n copies of x.
|
inline |
Create a list from an iterator range.
begin | An iterator pointing to the first element. |
end | An 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::DataArrayList_t | ( | const ::xercesc::DOMElement & | e, |
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Create an instance from a DOM element.
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. |
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.
a | A DOM attribute 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. |
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.
s | A string fragment to extract the data from. |
e | A pointer to DOM element containing the string fragment. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
DataArrayList_t::DataArrayList_t | ( | const DataArrayList_t & | x, |
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Copy constructor.
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 |
Copy the instance polymorphically.
f | Flags to create the copy with. |
c | A pointer to the object that will contain the 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.