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

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

#include <vtk-unstructured.h>

Inheritance diagram for UnstructuredGrid_t:

Piece

Accessor and modifier functions for the Piece required element.

typedef ::xsd::cxx::tree::traits< Piece_type, char > Piece_traits
 Element traits type.
 
typedef::PieceUnstructuredGrid_t Piece_type
 Element type.
 
const Piece_typePiece () const
 Return a read-only (constant) reference to the element. More...
 
Piece_typePiece ()
 Return a read-write reference to the element. More...
 
void Piece (const Piece_type &x)
 Set the element value. More...
 
void Piece (::std::unique_ptr< Piece_type > p)
 Set the element value without copying. More...
 

Constructors

 UnstructuredGrid_t (const Piece_type &)
 Create an instance from the ultimate base and initializers for required elements and attributes.
 
 UnstructuredGrid_t (::std::unique_ptr< Piece_type >)
 Create an instance from the ultimate base and initializers for required elements and attributes (::std::unique_ptr version). More...
 
 UnstructuredGrid_t (const ::xercesc::DOMElement &e, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 UnstructuredGrid_t (const UnstructuredGrid_t &x, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual UnstructuredGrid_t_clone (::xml_schema::flags f=0, ::xml_schema::container *c=0) const
 Copy the instance polymorphically. More...
 
UnstructuredGrid_toperator= (const UnstructuredGrid_t &x)
 Copy assignment operator. More...
 
virtual ~UnstructuredGrid_t ()
 Destructor.
 

Detailed Description

Class corresponding to the UnstructuredGrid_t schema type.

Constructor & Destructor Documentation

◆ UnstructuredGrid_t() [1/3]

UnstructuredGrid_t::UnstructuredGrid_t ( ::std::unique_ptr< Piece_type Piece)

Create an instance from the ultimate base and initializers for required elements and attributes (::std::unique_ptr version).

This constructor will try to use the passed values directly instead of making copies.

◆ UnstructuredGrid_t() [2/3]

UnstructuredGrid_t::UnstructuredGrid_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.

◆ UnstructuredGrid_t() [3/3]

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

UnstructuredGrid_t * UnstructuredGrid_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.

◆ operator=()

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

◆ Piece() [1/4]

UnstructuredGrid_t::Piece_type & UnstructuredGrid_t::Piece ( )

Return a read-write reference to the element.

Returns
A reference to the element.

◆ Piece() [2/4]

const UnstructuredGrid_t::Piece_type & UnstructuredGrid_t::Piece ( ) const

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

Returns
A constant reference to the element.

◆ Piece() [3/4]

void UnstructuredGrid_t::Piece ( ::std::unique_ptr< Piece_type p)

Set the element value without copying.

Parameters
pA new value to use.

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

◆ Piece() [4/4]

void UnstructuredGrid_t::Piece ( const Piece_type x)

Set the element value.

Parameters
xA new value to set.

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


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