Molecular Dynamics  v0.4
Project for the Practical hosted by the Scientific Computing Chair
List of all members
Spheres Class Reference

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

#include <ConfigurationFile.h>

Inheritance diagram for Spheres:
Inheritance graph
Collaboration diagram for Spheres:
Collaboration graph

Size

Accessor and modifier functions for the Size required element.

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

Sphere

Accessor and modifier functions for the Sphere sequence element.

typedef ::Sphere Sphere_type
 Element type. More...
 
typedef ::xsd::cxx::tree::sequence< Sphere_typeSphere_sequence
 Element sequence container type. More...
 
typedef Sphere_sequence::iterator Sphere_iterator
 Element iterator type. More...
 
typedef Sphere_sequence::const_iterator Sphere_const_iterator
 Element constant iterator type. More...
 
typedef ::xsd::cxx::tree::traits< Sphere_type, char > Sphere_traits
 Element traits type. More...
 
const Sphere_sequenceSphere () const
 Return a read-only (constant) reference to the element sequence. More...
 
Sphere_sequenceSphere ()
 Return a read-write reference to the element sequence. More...
 
void Sphere (const Sphere_sequence &s)
 Copy elements from a given sequence. More...
 

Constructors

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

Detailed Description

Class corresponding to the Spheres schema type.

Member Typedef Documentation

◆ Size_traits

typedef ::xsd::cxx::tree::traits< Size_type, char > Spheres::Size_traits

Element traits type.

◆ Size_type

Element type.

◆ Sphere_const_iterator

typedef Sphere_sequence::const_iterator Spheres::Sphere_const_iterator

Element constant iterator type.

◆ Sphere_iterator

typedef Sphere_sequence::iterator Spheres::Sphere_iterator

Element iterator type.

◆ Sphere_sequence

typedef ::xsd::cxx::tree::sequence< Sphere_type > Spheres::Sphere_sequence

Element sequence container type.

◆ Sphere_traits

typedef ::xsd::cxx::tree::traits< Sphere_type, char > Spheres::Sphere_traits

Element traits type.

◆ Sphere_type

Element type.

Constructor & Destructor Documentation

◆ Spheres() [1/3]

Spheres::Spheres ( const Size_type Size)

Create an instance from the ultimate base and initializers for required elements and attributes.

◆ Spheres() [2/3]

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

◆ Spheres() [3/3]

Spheres::Spheres ( const Spheres 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.

◆ ~Spheres()

Spheres::~Spheres ( )
virtual

Destructor.

Member Function Documentation

◆ _clone()

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

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

◆ Size() [1/4]

Spheres::Size_type & Spheres::Size ( )

Return a read-write reference to the element.

Returns
A reference to the element.

◆ Size() [2/4]

const Spheres::Size_type & Spheres::Size ( ) const

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

Returns
A constant reference to the element.
Here is the caller graph for this function:

◆ Size() [3/4]

void Spheres::Size ( ::std::unique_ptr< Size_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.

◆ Size() [4/4]

void Spheres::Size ( const Size_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.

◆ Sphere() [1/3]

Spheres::Sphere_sequence & Spheres::Sphere ( )

Return a read-write reference to the element sequence.

Returns
A reference to the sequence container.

◆ Sphere() [2/3]

const Spheres::Sphere_sequence & Spheres::Sphere ( ) const

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

Returns
A constant reference to the sequence container.
Here is the caller graph for this function:

◆ Sphere() [3/3]

void Spheres::Sphere ( const Sphere_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: