![]() |
Templates -- Meow
1.2.9
A C++ template contains kinds of interesting classes and functions
|
純粹把 std::vector 包起來, 變成繼承自 ObjBase
More...
#include "ObjArray.h"
Public Member Functions | |
| ObjArray () | |
| ObjArray (ObjArray const &a) | |
| ObjArray (std::vector< T > const &a) | |
| ObjArray (size_t sz, T const &e) | |
| ~ObjArray () | |
| ObjArray & | copyFrom (ObjArray const &a) |
| ObjArray & | referenceFrom (ObjArray const &a) |
| size_t | size () const |
| bool | empty () const |
| size_t | size (size_t res, T const &i) |
| size_t | size (size_t res) |
| void | clear () |
| T | entry (size_t i) const |
| T | entry (size_t i, T const &e) |
| T | putBack (T const &e) |
| bool | popBack () |
| ObjArray & | operator= (ObjArray const &a) |
| T | operator[] (size_t i) const |
| std::vector< T >::reference | operator[] (size_t i) |
| 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... | |
Public Member Functions inherited from meow::ObjBase | |
| virtual | ~ObjBase () |
Additional Inherited Members | |
Static Public Member Functions inherited from meow::ObjBase | |
| static char const * | ctypeBase () |
| 用C-style string回傳base的type name More... | |
| static std::string | typeBase () |
| 用std::string回傳base的type name More... | |
Protected Member Functions inherited from meow::ObjBase | |
| ObjBase () | |
| Constructor with doing nothing. More... | |
純粹把 std::vector 包起來, 變成繼承自 ObjBase
Definition at line 23 of file ObjArray.h.
|
inline |
Definition at line 42 of file ObjArray.h.
|
inline |
Definition at line 45 of file ObjArray.h.
|
inline |
Definition at line 48 of file ObjArray.h.
|
inline |
Definition at line 51 of file ObjArray.h.
|
inline |
Definition at line 54 of file ObjArray.h.
|
inline |
Definition at line 84 of file ObjArray.h.
|
inline |
Definition at line 57 of file ObjArray.h.
|
inlinevirtual |
複製, 預設使用operator=
| [in] | b | 資料來源 |
this Reimplemented from meow::ObjBase.
Definition at line 153 of file ObjArray.h.
|
inlinevirtual |
回傳一個new出來的物件, 預設implement為直接回傳 NULL
Reimplemented from meow::ObjBase.
Definition at line 149 of file ObjArray.h.
|
inlinevirtual |
用C-style string回傳這個class的type name
Reimplemented from meow::ObjBase.
Definition at line 157 of file ObjArray.h.
|
inline |
Definition at line 70 of file ObjArray.h.
|
inline |
Definition at line 88 of file ObjArray.h.
|
inline |
Definition at line 92 of file ObjArray.h.
|
inline |
Definition at line 108 of file ObjArray.h.
|
inline |
Definition at line 112 of file ObjArray.h.
|
inline |
Definition at line 116 of file ObjArray.h.
|
inline |
Definition at line 102 of file ObjArray.h.
|
inline |
Definition at line 97 of file ObjArray.h.
|
inlinevirtual |
將物件從檔案讀出, 預設implement為直接回傳 false
| [in] | f | 檔案 |
| [in] | bin | 是否為binary模式 |
| [in] | fg | 使用者自訂的argument |
Reimplemented from meow::ObjBase.
Definition at line 134 of file ObjArray.h.
|
inline |
Definition at line 62 of file ObjArray.h.
|
inline |
Definition at line 67 of file ObjArray.h.
|
inline |
Definition at line 74 of file ObjArray.h.
|
inline |
Definition at line 79 of file ObjArray.h.
|
inlinevirtual |
用std::string回傳這個class的type name
Reimplemented from meow::ObjBase.
Definition at line 161 of file ObjArray.h.
|
inlinevirtual |
將物件寫入檔案, 預設implement為直接回傳 false
| [in] | f | 檔案 |
| [in] | bin | 是否為binary模式 |
| [in] | fg | 使用者自訂的argument |
Reimplemented from meow::ObjBase.
Definition at line 120 of file ObjArray.h.