![]() |
Templates -- Meow
1.1.4
A C++ template which is unable and also not allowed to compile to obj-file first.
|
純粹把 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 const & | entry (size_t i) const |
T const & | entry (size_t i, T const &e) |
T const & | putBack (T const &e) |
bool | popBack () |
ObjArray & | operator= (ObjArray const &a) |
T const & | operator[] (size_t i) const |
T & | 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... | |
![]() | |
virtual | ~ObjBase () |
Additional Inherited Members | |
![]() | |
static char const * | ctypeBase () |
用C-style string回傳base的type name More... | |
static std::string | typeBase () |
用std::string回傳base的type name More... | |
![]() | |
ObjBase () | |
純粹把 std::vector
包起來, 變成繼承自 ObjBase
Definition at line 23 of file ObjArray.h.
|
inline |
Definition at line 38 of file ObjArray.h.
|
inline |
Definition at line 41 of file ObjArray.h.
|
inline |
Definition at line 45 of file ObjArray.h.
|
inline |
Definition at line 49 of file ObjArray.h.
|
inline |
Definition at line 53 of file ObjArray.h.
|
inline |
Definition at line 83 of file ObjArray.h.
|
inline |
Definition at line 56 of file ObjArray.h.
|
inlinevirtual |
複製, 預設使用operator=
[in] | b | 資料來源 |
this
Reimplemented from meow::ObjBase.
Definition at line 151 of file ObjArray.h.
|
inlinevirtual |
回傳一個new出來的物件, 預設implement為直接回傳 NULL
Reimplemented from meow::ObjBase.
Definition at line 147 of file ObjArray.h.
|
inlinevirtual |
用C-style string回傳這個class的type name
Reimplemented from meow::ObjBase.
Definition at line 155 of file ObjArray.h.
|
inline |
Definition at line 69 of file ObjArray.h.
|
inline |
Definition at line 87 of file ObjArray.h.
|
inline |
Definition at line 90 of file ObjArray.h.
|
inline |
Definition at line 106 of file ObjArray.h.
|
inline |
Definition at line 110 of file ObjArray.h.
|
inline |
Definition at line 114 of file ObjArray.h.
|
inline |
Definition at line 100 of file ObjArray.h.
|
inline |
Definition at line 95 of file ObjArray.h.
|
inlinevirtual |
將物件從檔案讀出, 預設implement為直接回傳 false
[in] | f | 檔案 |
[in] | bin | 是否為binary模式 |
[in] | fg | 使用者自訂的argument |
Reimplemented from meow::ObjBase.
Definition at line 132 of file ObjArray.h.
|
inline |
Definition at line 61 of file ObjArray.h.
|
inline |
Definition at line 66 of file ObjArray.h.
|
inline |
Definition at line 73 of file ObjArray.h.
|
inline |
Definition at line 78 of file ObjArray.h.
|
inlinevirtual |
用std::string回傳這個class的type name
Reimplemented from meow::ObjBase.
Definition at line 159 of file ObjArray.h.
|
inlinevirtual |
將物件寫入檔案, 預設implement為直接回傳 false
[in] | f | 檔案 |
[in] | bin | 是否為binary模式 |
[in] | fg | 使用者自訂的argument |
Reimplemented from meow::ObjBase.
Definition at line 118 of file ObjArray.h.