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

Enumeration class corresponding to the type schema type. More...

#include <vtk-unstructured.h>

Inheritance diagram for type:

Public Types

enum  value {
  Int8 , UInt8 , Int16 , UInt16 ,
  Int32 , UInt32 , Int64 , UInt64 ,
  Float32 , Float64
}
 Underlying enum type.
 

Public Member Functions

 type (value v)
 Create an instance from the underlying enum value. More...
 
 type (const char *v)
 Create an instance from a C string. More...
 
 type (const ::std::string &v)
 Create an instance from a string. More...
 
 type (const ::xml_schema::string &v)
 Create an instance from the base value. More...
 
 type (const ::xercesc::DOMElement &e, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 type (const ::xercesc::DOMAttr &a, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Create an instance from a DOM attribute. More...
 
 type (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...
 
 type (const type &x, ::xml_schema::flags f=0, ::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual type_clone (::xml_schema::flags f=0, ::xml_schema::container *c=0) const
 Copy the instance polymorphically. More...
 
typeoperator= (value v)
 Assign the underlying enum value. More...
 
virtual operator value () const
 Implicit conversion operator to the underlying enum value. More...
 

Detailed Description

Enumeration class corresponding to the type schema type.

Constructor & Destructor Documentation

◆ type() [1/8]

type::type ( value  v)

Create an instance from the underlying enum value.

Parameters
vA enum value.

◆ type() [2/8]

type::type ( const char *  v)

Create an instance from a C string.

Parameters
vA string value.

◆ type() [3/8]

type::type ( const ::std::string &  v)

Create an instance from a string.

Parameters
vA string value.

◆ type() [4/8]

type::type ( const ::xml_schema::string v)

Create an instance from the base value.

Parameters
vA base value.

◆ type() [5/8]

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

◆ type() [6/8]

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

◆ type() [7/8]

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

◆ type() [8/8]

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

type * type::_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 value()

virtual type::operator value ( ) const
inlinevirtual

Implicit conversion operator to the underlying enum value.

Returns
A enum value.

◆ operator=()

type & type::operator= ( value  v)

Assign the underlying enum value.

Parameters
vA enum value.
Returns
A refernce to the instance.

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