![]() |
Templates -- Meow
1.1.4
A C++ template which is unable and also not allowed to compile to obj-file first.
|
一切物件的Base, 並要求每個物件都要有read, write, create, ... 等功能 More...
#include "ObjBase.h"
Public Member Functions | |
virtual | ~ObjBase () |
virtual bool | write (FILE *f, bool bin, unsigned int fg) const |
將物件寫入檔案, 預設implement為直接回傳 false More... | |
virtual bool | read (FILE *f, bool bin, unsigned int fg) |
將物件從檔案讀出, 預設implement為直接回傳 false More... | |
virtual ObjBase * | create () const |
回傳一個new出來的物件, 預設implement為直接回傳 NULL More... | |
virtual ObjBase * | copyFrom (ObjBase const *b) |
複製, 預設使用operator= More... | |
virtual char const * | ctype () const |
用C-style string回傳這個class的type name More... | |
virtual std::string | type () const |
用std::string回傳這個class的type name More... | |
Static Public Member Functions | |
static char const * | ctypeBase () |
用C-style string回傳base的type name More... | |
static std::string | typeBase () |
用std::string回傳base的type name More... | |
Protected Member Functions | |
ObjBase () | |
複製, 預設使用operator=
[in] | b | 資料來源 |
this
Reimplemented in meow::Photo< Pixel >, meow::Bitmap< Pixel >, meow::BundleAdjustment_LM< Pixel >, meow::FeaturePointsDetector_Harris< Pixel >, meow::IdentityPoints< ID, Scalar >, meow::IdentityPoints< int, double >, meow::Camera< Pixel >, meow::WatchBall< Pixel >, meow::FeaturePointsMatch_K_Match< Scalar, Description >, meow::Eye< Pixel >, meow::ObjArray< T >, meow::ObjDictionary< Key, Value >, meow::ObjType< Type, ReaderWriter >, and meow::ObjProperties< SID >.
|
inlinevirtual |
回傳一個new出來的物件, 預設implement為直接回傳 NULL
Reimplemented in meow::Photo< Pixel >, meow::Bitmap< Pixel >, meow::BundleAdjustment_LM< Pixel >, meow::FeaturePointsDetector_Harris< Pixel >, meow::IdentityPoints< ID, Scalar >, meow::IdentityPoints< int, double >, meow::Camera< Pixel >, meow::WatchBall< Pixel >, meow::FeaturePoint< Scalar, Description >, meow::FeaturePointsMatch_K_Match< Scalar, Description >, meow::ObjArray< T >, meow::Eye< Pixel >, meow::ObjDictionary< Key, Value >, meow::ObjType< Type, ReaderWriter >, and meow::ObjProperties< SID >.
|
inlinevirtual |
用C-style string回傳這個class的type name
Reimplemented in meow::Photo< Pixel >, meow::Bitmap< Pixel >, meow::BundleAdjustment_LM< Pixel >, meow::FeaturePointsDetector_Harris< Pixel >, meow::IdentityPoints< ID, Scalar >, meow::IdentityPoints< int, double >, meow::Camera< Pixel >, meow::WatchBall< Pixel >, meow::FeaturePoint< Scalar, Description >, meow::FeaturePointsMatch_K_Match< Scalar, Description >, meow::Eye< Pixel >, meow::ObjArray< T >, meow::ObjDictionary< Key, Value >, meow::ObjType< Type, ReaderWriter >, and meow::ObjProperties< SID >.
|
inlinestatic |
|
inlinevirtual |
將物件從檔案讀出, 預設implement為直接回傳 false
[in] | f | 檔案 |
[in] | bin | 是否為binary模式 |
[in] | fg | 使用者自訂的argument |
Reimplemented in meow::Photo< Pixel >, meow::Bitmap< Pixel >, meow::FeaturePointsDetector_Harris< Pixel >, meow::IdentityPoints< ID, Scalar >, meow::IdentityPoints< int, double >, meow::WatchBall< Pixel >, meow::Camera< Pixel >, meow::FeaturePoint< Scalar, Description >, meow::FeaturePointsMatch_K_Match< Scalar, Description >, meow::ObjArray< T >, meow::ObjDictionary< Key, Value >, meow::Eye< Pixel >, meow::ObjType< Type, ReaderWriter >, and meow::ObjProperties< SID >.
|
inlinevirtual |
用std::string回傳這個class的type name
Reimplemented in meow::Photo< Pixel >, meow::Bitmap< Pixel >, meow::BundleAdjustment_LM< Pixel >, meow::FeaturePointsDetector_Harris< Pixel >, meow::IdentityPoints< ID, Scalar >, meow::IdentityPoints< int, double >, meow::Camera< Pixel >, meow::WatchBall< Pixel >, meow::FeaturePoint< Scalar, Description >, meow::FeaturePointsMatch_K_Match< Scalar, Description >, meow::Eye< Pixel >, meow::ObjArray< T >, meow::ObjDictionary< Key, Value >, meow::ObjType< Type, ReaderWriter >, and meow::ObjProperties< SID >.
|
inlinestatic |
|
inlinevirtual |
將物件寫入檔案, 預設implement為直接回傳 false
[in] | f | 檔案 |
[in] | bin | 是否為binary模式 |
[in] | fg | 使用者自訂的argument |
Reimplemented in meow::Photo< Pixel >, meow::Bitmap< Pixel >, meow::BundleAdjustment_LM< Pixel >, meow::FeaturePointsDetector_Harris< Pixel >, meow::IdentityPoints< ID, Scalar >, meow::IdentityPoints< int, double >, meow::WatchBall< Pixel >, meow::Camera< Pixel >, meow::FeaturePoint< Scalar, Description >, meow::FeaturePointsMatch_K_Match< Scalar, Description >, meow::ObjArray< T >, meow::ObjDictionary< Key, Value >, meow::Eye< Pixel >, meow::ObjType< Type, ReaderWriter >, and meow::ObjProperties< SID >.