C++/Tree Mapping Runtime Library
List of all members
idrefs< C, B, idref > Class Template Reference

Class corresponding to the XML Schema IDREFS built-in type. More...

#include <types.hxx>

Inheritance diagram for idrefs< C, B, idref >:

Constructors

 idrefs ()
 Default constructor creates no elements.
 
 idrefs (typename base_type::size_type n, const idref &x)
 Initialize the instance with copies of an exemplar elements.
 
template<typename I >
 idrefs (const I &begin, const I &end)
 Initialize the instance with copies of elements from an iterator range.
 
 idrefs (const idrefs &x, flags f=0, container *c=0)
 Copy constructor.
 
virtual idrefs_clone (flags f=0, container *c=0) const
 Copy the instance polymorphically.
 
template<typename S >
 idrefs (istream< S > &s, flags f=0, container *c=0)
 Create an instance from a data representation stream.
 
 idrefs (const xercesc::DOMElement &e, flags f=0, container *c=0)
 Create an instance from a DOM element.
 
 idrefs (const xercesc::DOMAttr &a, flags f=0, container *c=0)
 Create an instance from a DOM Attribute.
 
 idrefs (const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0)
 Create an instance from a string fragment.
 

Detailed Description

template<typename C, typename B, typename idref>
class xsd::cxx::tree::idrefs< C, B, idref >

Class corresponding to the XML Schema IDREFS built-in type.

The idrefs class is a vector (or list in XML Schema terminology) of idref elements. It is implemented in terms of the list class template.

Constructor & Destructor Documentation

◆ idrefs() [1/7]

template<typename C , typename B , typename idref >
idrefs ( typename base_type::size_type  n,
const idref x 
)
inline

Initialize the instance with copies of an exemplar elements.

Parameters
nA number of elements to copy.
xAn exemplar element to copy.

◆ idrefs() [2/7]

template<typename C , typename B , typename idref >
template<typename I >
idrefs ( const I &  begin,
const I &  end 
)
inline

Initialize the instance with copies of elements from an iterator range.

Parameters
beginAn iterator pointing to the first element.
endAn iterator pointing to the one past the last element.

◆ idrefs() [3/7]

template<typename C , typename B , typename idref >
idrefs ( const idrefs< C, B, idref > &  x,
flags  f = 0,
container c = 0 
)
inline

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.

◆ idrefs() [4/7]

template<typename C , typename B , typename idref >
template<typename S >
idrefs ( istream< S > &  s,
flags  f = 0,
container c = 0 
)

Create an instance from a data representation stream.

Parameters
sA stream to extract the data from.
fFlags to create the new instance with.
cA pointer to the object that will contain the new instance.

◆ idrefs() [5/7]

template<typename C , typename B , typename idref >
idrefs ( const xercesc::DOMElement &  e,
flags  f = 0,
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.

◆ idrefs() [6/7]

template<typename C , typename B , typename idref >
idrefs ( const xercesc::DOMAttr &  a,
flags  f = 0,
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.

◆ idrefs() [7/7]

template<typename C , typename B , typename idref >
idrefs ( const std::basic_string< C > &  s,
const xercesc::DOMElement *  e,
flags  f = 0,
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.

Member Function Documentation

◆ _clone()

template<typename C , typename B , typename idref >
virtual idrefs * _clone ( flags  f = 0,
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.


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

Copyright © 2005-2023 Code Synthesis.