template<typename Alloc>
class BasicDocument
Inherited from: ObjectNode.
Required header: <Eclog/Document.h>
The BasicDocument class is an in-memory representation of an Eclog text for accessing and modifying; it consists of a tree-structured collection of nodes (See Node), which is called a document tree.
A typedef for the default allocator is provided:
typedef BasicDocument<ECLOG_DEFAULT_ALLOCATOR> Document;
Alloc
Allocator type used to allocate internal storage.
Name | Description |
---|---|
(constructor) | Constructor. |
operator= | Assigns new elements to this document, replacing its current elements. |
swap | Exchanges the elements of this document with another document. |
BasicDocument(); (1)
BasicDocument(const ObjectDesc& desc); (2)
BasicDocument(const ObjectNode& other); (3)
BasicDocument(const BasicDocument& other); (4)
Constructs a Document.
(1) Default constructor. Constructs empty document.
(2) Constructs the document with an object description.
(3) Constructs the document with an object node.
(4) Copy constructor.
const
ObjectDesc&
desc An object description.
const
ObjectNode&
other Another object.
const
BasicDocument&
other Another document.
BasicDocument& operator=(const ObjectDesc& desc);
BasicDocument& operator=(const ObjectNode& other);
BasicDocument& operator=(const BasicDocument& other);
Assigns new elements to this document, replacing its current elements.
const
ObjectDesc&
desc An object description.
const
ObjectNode&
other Another object.
const
BasicDocument&
other Another document.
If an error occurs, this document remains untouched.
All iterators related to this object are invalidated, except the end iterators.
Linear in the number of elements to be removed and to be copied.
void swap(BasicDocument& other);
Exchanges the elements of the document with another document.
BasicDocument&
other Another document.