ls1-MarDyn
ls1-MarDyn molecular dynamics code
List of all members
PCells Class Reference

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

#include <vtk-punstructured.h>

Inheritance diagram for PCells:

PDataArray

Accessor and modifier functions for the PDataArray sequence element.

typedef ::xsd::cxx::tree::sequence< PDataArray_typePDataArray_sequence
 Element sequence container type.
 
typedef PDataArray_sequence::iterator PDataArray_iterator
 Element iterator type.
 
typedef PDataArray_sequence::const_iterator PDataArray_const_iterator
 Element constant iterator type.
 
typedef ::xsd::cxx::tree::traits< PDataArray_type, char > PDataArray_traits
 Element traits type.
 
typedef::DataArray_t PDataArray_type
 Element type.
 
const PDataArray_sequencePDataArray () const
 Return a read-only (constant) reference to the element sequence. More...
 
PDataArray_sequencePDataArray ()
 Return a read-write reference to the element sequence. More...
 
void PDataArray (const PDataArray_sequence &s)
 Copy elements from a given sequence. More...
 

Constructors

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

Detailed Description

Class corresponding to the PCells schema type.

Constructor & Destructor Documentation

◆ PCells() [1/2]

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

◆ PCells() [2/2]

PCells::PCells ( const PCells 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()

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

◆ operator=()

PCells & PCells::operator= ( const PCells 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.

◆ PDataArray() [1/3]

PCells::PDataArray_sequence & PCells::PDataArray ( )

Return a read-write reference to the element sequence.

Returns
A reference to the sequence container.

◆ PDataArray() [2/3]

const PCells::PDataArray_sequence & PCells::PDataArray ( ) const

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

Returns
A constant reference to the sequence container.

◆ PDataArray() [3/3]

void PCells::PDataArray ( const PDataArray_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.


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