|
C++/Tree Mapping Runtime Library
|
Class template that emulates inheritance from a fundamental C++ type. More...
#include <elements.hxx>
Constructors | |
| fundamental_base () | |
| Default constructor. | |
| fundamental_base (T x) | |
| Initialize an instance with an underlying type value. | |
| fundamental_base (const fundamental_base &x, flags f=0, container *c=0) | |
| Copy constructor. | |
| virtual fundamental_base * | _clone (flags f=0, container *c=0) const |
| Copy the instance polymorphically. | |
| template<typename S > | |
| fundamental_base (istream< S > &s, flags f=0, container *c=0) | |
| Create an instance from a data representation stream. | |
| fundamental_base (const xercesc::DOMElement &e, flags f=0, container *c=0) | |
| Create an instance from a DOM element. | |
| fundamental_base (const xercesc::DOMAttr &a, flags f=0, container *c=0) | |
| Create an instance from a DOM Attribute. | |
| fundamental_base (const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0) | |
| Create an instance from a string fragment. | |
| fundamental_base & | operator= (const T &x) |
| Assign an underlying type value to the instance. | |
| operator const T & () const | |
| Implicitly convert the instance to constant reference to the underlying type. | |
| operator T& () | |
| Implicitly convert the instance to reference to the underlying type. | |
| const facet * | _facet_table () const |
| Get the facet table associated with this type. | |
| void | _facet_table (const facet *ft) |
| Set the facet table associated with this type. | |
Class template that emulates inheritance from a fundamental C++ type.
|
inline |
Initialize an instance with an underlying type value.
| x | An underlying type value. |
|
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.
| fundamental_base | ( | 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. |
| fundamental_base | ( | 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. |
| fundamental_base | ( | 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. |
| fundamental_base | ( | 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.
|
inline |
Assign an underlying type value to the instance.
| x | An underlying type value. |
|
inline |
Implicitly convert the instance to constant reference to the underlying type.
|
inline |
Implicitly convert the instance to reference to the underlying type.
|
inline |
Get the facet table associated with this type.
|
inlineprotected |
Set the facet table associated with this type.
| ft | A pointer to read-only facet table. |