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

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

#include <types.hxx>

Inheritance diagram for entities< C, B, entity >:

Constructors

 entities ()
 Default constructor creates no elements.
 
 entities (typename base_type::size_type n, const entity &x)
 Initialize the instance with copies of an exemplar elements.
 
template<typename I >
 entities (const I &begin, const I &end)
 Initialize the instance with copies of elements from an iterator range.
 
 entities (const entities &x, flags f=0, container *c=0)
 Copy constructor.
 
virtual entities_clone (flags f=0, container *c=0) const
 Copy the instance polymorphically.
 
template<typename S >
 entities (istream< S > &s, flags f=0, container *c=0)
 Create an instance from a data representation stream.
 
 entities (const xercesc::DOMElement &e, flags f=0, container *c=0)
 Create an instance from a DOM element.
 
 entities (const xercesc::DOMAttr &a, flags f=0, container *c=0)
 Create an instance from a DOM Attribute.
 
 entities (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 entity>
class xsd::cxx::tree::entities< C, B, entity >

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

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

Constructor & Destructor Documentation

◆ entities() [1/7]

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

Initialize the instance with copies of an exemplar elements.

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

◆ entities() [2/7]

template<typename C , typename B , typename entity >
template<typename I >
entities ( 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.

◆ entities() [3/7]

template<typename C , typename B , typename entity >
entities ( const entities< C, B, entity > &  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.

◆ entities() [4/7]

template<typename C , typename B , typename entity >
template<typename S >
entities ( 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.

◆ entities() [5/7]

template<typename C , typename B , typename entity >
entities ( 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.

◆ entities() [6/7]

template<typename C , typename B , typename entity >
entities ( 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.

◆ entities() [7/7]

template<typename C , typename B , typename entity >
entities ( 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 entity >
virtual entities * _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.