How to get accces to that pointer? : I've got something like this
:    




    template <typename T,typename K>
    class Ring
    {
      typedef struct Node
      {
              T data;
              K key;
              Node * next;
              Node * prev;
      };
      Node * head;
    public:
       class iterator
       {
            private: //protected:
            Node * ptr;
            friend class Ring; 
    }





And i want to get by iterator class to Node*ptr to return in methods like get_value(iterator x) data and key. How can i do this ommiting function friend class? I want to make that Node *ptr will not be able to being used by user.


Thanks in advance ;)