From 452f9028b1b33f99ec2568c109c03679cdacda24 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 22 Sep 2010 18:28:54 +0000 Subject: 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 --- src/pugixml.hpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/pugixml.hpp') 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__ -- cgit v1.2.3