Templates -- Meow  1.1.4
A C++ template which is unable and also not allowed to compile to obj-file first.
meow::SplayTree< Key, Value >::Element Class Reference

類似 stliterator ,不過這邊叫做Element More...

#include "SplayTree.h"

Public Member Functions

 Element ()
 
 Element (Node *node)
 
 Element (Element const &element2)
 
 ~Element ()
 
ElementcopyFrom (Element const &e)
 複製資料 More...
 
bool same (Element const &e2) const
 比對兩者是否為指向同一個Entry More...
 
Elementoperator= (Element const &e2)
 same as copyFrom More...
 
Entry * operator-> ()
 重導至std::pair<Key const&,Value&>* More...
 
Entry & operator* ()
 重導至std::pair<Key const&,Value&>& More...
 
bool operator== (Element const &e2) const
 same as same(e2) More...
 
bool operator!= (Element const &e2) const
 same as !same(e2) More...
 

Detailed Description

template<class Key, class Value>
class meow::SplayTree< Key, Value >::Element

類似 stliterator ,不過這邊叫做Element

用來當作回傳資料的媒介

Definition at line 191 of file SplayTree.h.

Constructor & Destructor Documentation

template<class Key , class Value >
meow::SplayTree< Key, Value >::Element::Element ( )
inline

Definition at line 203 of file SplayTree.h.

template<class Key , class Value >
meow::SplayTree< Key, Value >::Element::Element ( Node *  node)
inline

Definition at line 205 of file SplayTree.h.

template<class Key , class Value >
meow::SplayTree< Key, Value >::Element::Element ( Element const &  element2)
inline

Definition at line 208 of file SplayTree.h.

template<class Key , class Value >
meow::SplayTree< Key, Value >::Element::~Element ( )
inline

Definition at line 211 of file SplayTree.h.

Member Function Documentation

template<class Key , class Value >
Element& meow::SplayTree< Key, Value >::Element::copyFrom ( Element const &  e)
inline

複製資料

Definition at line 216 of file SplayTree.h.

template<class Key , class Value >
bool meow::SplayTree< Key, Value >::Element::operator!= ( Element const &  e2) const
inline

same as !same(e2)

Definition at line 247 of file SplayTree.h.

template<class Key , class Value >
Entry& meow::SplayTree< Key, Value >::Element::operator* ( )
inline

重導至std::pair<Key const&,Value&>&

Definition at line 237 of file SplayTree.h.

template<class Key , class Value >
Entry* meow::SplayTree< Key, Value >::Element::operator-> ( )
inline

重導至std::pair<Key const&,Value&>*

Definition at line 232 of file SplayTree.h.

template<class Key , class Value >
Element& meow::SplayTree< Key, Value >::Element::operator= ( Element const &  e2)
inline

same as copyFrom

Definition at line 227 of file SplayTree.h.

template<class Key , class Value >
bool meow::SplayTree< Key, Value >::Element::operator== ( Element const &  e2) const
inline

same as same(e2)

Definition at line 242 of file SplayTree.h.

template<class Key , class Value >
bool meow::SplayTree< Key, Value >::Element::same ( Element const &  e2) const
inline

比對兩者是否為指向同一個Entry

Definition at line 222 of file SplayTree.h.


The documentation for this class was generated from the following file: