純粹把 std::map
包起來, 變成繼承自 ObjBase
More...
#include "ObjDictionary.h"
|
| ObjDictionary () |
|
| ObjDictionary (ObjDictionary const &d) |
|
| ObjDictionary (std::map< Key, Value > const &d) |
|
| ~ObjDictionary () |
|
ObjDictionary & | copyFrom (ObjDictionary const &d) |
|
ObjDictionary & | referenceFrom (ObjDictionary const &d) |
|
size_t | size () const |
|
bool | empty () const |
|
void | clear () |
|
std::map< Key, Value >
::const_iterator | end () const |
|
std::map< Key, Value >::iterator | end () |
|
std::map< Key, Value >
::const_iterator | find (Key const &k) const |
|
std::map< Key, Value >::iterator | find (Key const &k) |
|
bool | exist (Key const &k) const |
|
void | insert (Key const &k, Value const &v) |
|
ObjDictionary & | operator= (ObjDictionary const &a) |
|
Value & | operator[] (Key const &k) |
|
bool | write (FILE *f, bool bin, unsigned int fg) const |
| 將物件寫入檔案, 預設implement為直接回傳 false More...
|
|
bool | read (FILE *f, bool bin, unsigned int fg) |
| 將物件從檔案讀出, 預設implement為直接回傳 false More...
|
|
ObjBase * | create () const |
| 回傳一個new出來的物件, 預設implement為直接回傳 NULL More...
|
|
ObjBase * | copyFrom (ObjBase const *b) |
| 複製, 預設使用operator= More...
|
|
char const * | ctype () const |
| 用C-style string回傳這個class的type name More...
|
|
std::string | type () const |
| 用std::string回傳這個class的type name More...
|
|
virtual | ~ObjBase () |
|
template<class Key, class Value>
class meow::ObjDictionary< Key, Value >
純粹把 std::map
包起來, 變成繼承自 ObjBase
- Author
- cathook
Definition at line 23 of file ObjDictionary.h.
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
std::map<Key, Value>::const_iterator meow::ObjDictionary< Key, Value >::find |
( |
Key const & |
k | ) |
const |
|
inline |
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
將物件從檔案讀出, 預設implement為直接回傳 false
- Parameters
-
[in] | f | 檔案 |
[in] | bin | 是否為binary模式 |
[in] | fg | 使用者自訂的argument |
- Returns
- 成功或失敗
Reimplemented from meow::ObjBase.
Definition at line 121 of file ObjDictionary.h.
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
template<class Key , class Value >
將物件寫入檔案, 預設implement為直接回傳 false
- Parameters
-
[in] | f | 檔案 |
[in] | bin | 是否為binary模式 |
[in] | fg | 使用者自訂的argument |
- Returns
- 成功或失敗
Reimplemented from meow::ObjBase.
Definition at line 105 of file ObjDictionary.h.
The documentation for this class was generated from the following file: