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

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

#include <vtk-punstructured.h>

Inheritance diagram for Piece:

Source

Accessor and modifier functions for the Source required attribute.

typedef ::xsd::cxx::tree::traits< Source_type, char > Source_traits
 Attribute traits type.
 
typedef::xml_schema::string Source_type
 Attribute type.
 
const Source_typeSource () const
 Return a read-only (constant) reference to the attribute. More...
 
Source_typeSource ()
 Return a read-write reference to the attribute. More...
 
void Source (const Source_type &x)
 Set the attribute value. More...
 
void Source (::std::unique_ptr< Source_type > p)
 Set the attribute value without copying. More...
 

Constructors

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

Detailed Description

Class corresponding to the Piece schema type.

Constructor & Destructor Documentation

◆ Piece() [1/2]

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

◆ Piece() [2/2]

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

Piece * Piece::_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=()

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

◆ Source() [1/4]

Piece::Source_type & Piece::Source ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.

◆ Source() [2/4]

const Piece::Source_type & Piece::Source ( ) const

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

Returns
A constant reference to the attribute.

◆ Source() [3/4]

void Piece::Source ( ::std::unique_ptr< Source_type p)

Set the attribute value without copying.

Parameters
pA new value to use.

This function will try to use the passed value directly instead of making a copy.

◆ Source() [4/4]

void Piece::Source ( const Source_type x)

Set the attribute value.

Parameters
xA new value to set.

This function makes a copy of its argument and sets it as the new value of the attribute.


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