diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-09-22 18:28:54 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-09-22 18:28:54 +0000 |
commit | 452f9028b1b33f99ec2568c109c03679cdacda24 (patch) | |
tree | 06a6c31684a6fba26c5a5fb8b2d47662ce176da2 /src/pugixml.hpp | |
parent | 70d88da72709b7de129b893ad4edcc82cf5872ab (diff) |
Removed document_order() function, added internal_object() accessor and exposed xml_node/xml_attribute constructor from internal object pointer (this makes implementing fast binding to scripting languages easier)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@747 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r-- | src/pugixml.hpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 80fe6d8..2624362 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -254,12 +254,13 @@ namespace pugi typedef xml_attribute_struct* xml_attribute::*unspecified_bool_type; - explicit xml_attribute(xml_attribute_struct* attr); - public: // Default constructor. Constructs an empty attribute. xml_attribute(); + // Constructs attribute from internal pointer + explicit xml_attribute(xml_attribute_struct* attr); + // Safe bool conversion operator operator unspecified_bool_type() const; @@ -311,8 +312,8 @@ namespace pugi xml_attribute next_attribute() const; xml_attribute previous_attribute() const; - // This function is for internal use - const void* document_order() const; + // Get internal pointer + xml_attribute_struct* internal_object(); }; #ifdef __BORLANDC__ @@ -332,12 +333,13 @@ namespace pugi typedef xml_node_struct* xml_node::*unspecified_bool_type; - explicit xml_node(xml_node_struct* p); - public: // Default constructor. Constructs an empty node. xml_node(); + // Constructs node from internal pointer + explicit xml_node(xml_node_struct* p); + // Safe bool conversion operator operator unspecified_bool_type() const; @@ -521,8 +523,8 @@ namespace pugi // Get node offset in parsed file/string (in char_t units) for debugging purposes ptrdiff_t offset_debug() const; - // This function is for internal use - const void* document_order() const; + // Get internal pointer + xml_node_struct* internal_object(); }; #ifdef __BORLANDC__ |