C++/Tree Mapping Runtime Library
|
Class corresponding to the XML Schema IDREFS built-in type. More...
#include <types.hxx>
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. | |
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.
|
inline |
Initialize the instance with copies of an exemplar elements.
n | A number of elements to copy. |
x | An exemplar element to copy. |
|
inline |
Initialize the instance with copies of elements from an iterator range.
begin | An iterator pointing to the first element. |
end | An iterator pointing to the one past the last element. |
|
inline |
Copy constructor.
x | An instance to make a copy of. |
f | Flags to create the copy with. |
c | A pointer to the object that will contain the copy. |
For polymorphic object models use the _clone
function instead.
idrefs | ( | istream< S > & | s, |
flags | f = 0 , |
||
container * | c = 0 |
||
) |
Create an instance from a data representation stream.
s | A stream to extract the data from. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
idrefs | ( | const xercesc::DOMElement & | e, |
flags | f = 0 , |
||
container * | c = 0 |
||
) |
Create an instance from a DOM element.
e | A DOM element to extract the data from. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
idrefs | ( | const xercesc::DOMAttr & | a, |
flags | f = 0 , |
||
container * | c = 0 |
||
) |
Create an instance from a DOM Attribute.
a | A DOM attribute to extract the data from. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
idrefs | ( | const std::basic_string< C > & | s, |
const xercesc::DOMElement * | e, | ||
flags | f = 0 , |
||
container * | c = 0 |
||
) |
Create an instance from a string fragment.
s | A string fragment to extract the data from. |
e | A pointer to DOM element containing the string fragment. |
f | Flags to create the new instance with. |
c | A pointer to the object that will contain the new instance. |
|
virtual |
Copy the instance polymorphically.
f | Flags to create the copy with. |
c | A pointer to the object that will contain the 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.