diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-10-18 16:59:31 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-10-18 16:59:31 +0000 |
commit | 498947c71897bfad865d37252df6689c1a78e1d8 (patch) | |
tree | 9e9a4fbed47c89bb468d4083227ea6d6285ed8ec /src/pugixml.hpp | |
parent | b1bc4e4ed595d64ee6145ff97ac2c3c7aac6d369 (diff) |
Fixed internal_object() const-correctness, added xml_node::hash_value and xml_attribute::hash_value functions
git-svn-id: http://pugixml.googlecode.com/svn/trunk@767 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r-- | src/pugixml.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 8fba12a..9b0d0d6 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -321,8 +321,11 @@ namespace pugi xml_attribute next_attribute() const; xml_attribute previous_attribute() const; + // Get hash value (unique for handles to the same object) + size_t hash_value() const; + // Get internal pointer - xml_attribute_struct* internal_object(); + xml_attribute_struct* internal_object() const; }; #ifdef __BORLANDC__ @@ -532,8 +535,11 @@ namespace pugi // Get node offset in parsed file/string (in char_t units) for debugging purposes ptrdiff_t offset_debug() const; + // Get hash value (unique for handles to the same object) + size_t hash_value() const; + // Get internal pointer - xml_node_struct* internal_object(); + xml_node_struct* internal_object() const; }; #ifdef __BORLANDC__ |