diff options
author | cathook <b01902109@csie.ntu.edu.tw> | 2014-04-22 02:28:31 +0800 |
---|---|---|
committer | cathook <b01902109@csie.ntu.edu.tw> | 2014-04-22 02:28:31 +0800 |
commit | 697558aa430c6bb5e9fb25d39ae9156a4d5403c3 (patch) | |
tree | 1aa80d9332e7e663f79e9af0f6a8a5864c901fdc /meowpp | |
parent | a18df7f42f62932001cbb1c61c458abaf5d8bace (diff) | |
download | meow-697558aa430c6bb5e9fb25d39ae9156a4d5403c3.tar meow-697558aa430c6bb5e9fb25d39ae9156a4d5403c3.tar.gz meow-697558aa430c6bb5e9fb25d39ae9156a4d5403c3.tar.bz2 meow-697558aa430c6bb5e9fb25d39ae9156a4d5403c3.tar.lz meow-697558aa430c6bb5e9fb25d39ae9156a4d5403c3.tar.xz meow-697558aa430c6bb5e9fb25d39ae9156a4d5403c3.tar.zst meow-697558aa430c6bb5e9fb25d39ae9156a4d5403c3.zip |
fix readme
Diffstat (limited to 'meowpp')
-rw-r--r-- | meowpp/Usage.h | 2 | ||||
-rw-r--r-- | meowpp/dsa/MergeableHeap.h | 1 | ||||
-rw-r--r-- | meowpp/dsa/SegmentTree.h | 3 | ||||
-rw-r--r-- | meowpp/oo/Register_Implement.h | 40 | ||||
-rw-r--r-- | meowpp/utility.h | 2 |
5 files changed, 28 insertions, 20 deletions
diff --git a/meowpp/Usage.h b/meowpp/Usage.h index d2ef083..60be936 100644 --- a/meowpp/Usage.h +++ b/meowpp/Usage.h @@ -88,6 +88,7 @@ namespace meow{ Strings usage_end ; Strings proc_arguments; }; + //# //# === meow:: *Usage* (C++ Class) //# ==== Description //# `Usage` 是用來分析argc, argv和輸出usage document的class. @@ -149,6 +150,7 @@ namespace meow{ //#================================== //# //#''' + //# } #include "Usage.hpp" diff --git a/meowpp/dsa/MergeableHeap.h b/meowpp/dsa/MergeableHeap.h index c1a2460..a7215bc 100644 --- a/meowpp/dsa/MergeableHeap.h +++ b/meowpp/dsa/MergeableHeap.h @@ -91,6 +91,7 @@ namespace meow{ //#|============================================== }; + //# //# [WARNING] //#============================================== //# * 假設現在有兩個MergeableHeap `A` 和 `B`, 則: diff --git a/meowpp/dsa/SegmentTree.h b/meowpp/dsa/SegmentTree.h index 89fd5d9..b9e4c64 100644 --- a/meowpp/dsa/SegmentTree.h +++ b/meowpp/dsa/SegmentTree.h @@ -106,6 +106,9 @@ namespace meow{ //#|============================================== }; + //# + //# ''' + //# } #include "SegmentTree.hpp" diff --git a/meowpp/oo/Register_Implement.h b/meowpp/oo/Register_Implement.h index 2e8ca32..a27591d 100644 --- a/meowpp/oo/Register_Implement.h +++ b/meowpp/oo/Register_Implement.h @@ -28,26 +28,26 @@ namespace meow{ virtual ~RegisterInterface(){ } std::vector<T> getIdentifys() const; }; - /******************************************************************* - @asciidoc - === meow:: *ImplementInterface/RegisterInterface* (C++ Class) - .Description - Assume there is a problem which can be solved by different algorithms. - Then you can write multiple classes to approach this problem. + - Now if you want to decide which algorithm to use in runtime, you can just - approach this case by a simple way: - - * Let all the problem-solving classes inherit from - `class ImplementInterface<T>` , and call the constructure with giving - `identify` (type `T` ) . - * Create an class inherit from `RegisterInterface<T>` , and register all your - implement class to it by call `regImplement(pointer to the class)`. - * Select which implement class you want by call `getImplement(identify)` , - which will return the pointer to the corresponding class. - - ''' - @asciidoc- - ******************************************************************/ + //# + //# === meow:: *ImplementInterface/RegisterInterface* (C++ Class) + //# ==== Description + //# Assume there is a problem which can be solved by different algorithms. + //# Then you can write multiple classes to approach this problem. + + //# Now if you want to decide which algorithm to use in runtime, you can just + //# approach this case by a simple way: + //# + //# * Let all the problem-solving classes inherit from + //# `class ImplementInterface<T>` , and call the constructure with giving + //# `identify` (type `T` ) . + //# * Create an class inherit from `RegisterInterface<T>` , + //# and register all your implement class to it by call + //# `regImplement(pointer to the class)`. + //# * Select which implement class you want by call + //# `getImplement(identify)` , which will return the pointer + //# to the corresponding class. + //# + //# ''' + //# } #include "Register_Implement.hpp" diff --git a/meowpp/utility.h b/meowpp/utility.h index ec47225..9e59470 100644 --- a/meowpp/utility.h +++ b/meowpp/utility.h @@ -40,7 +40,9 @@ namespace meow{ template<class T> inline double average(T const& beg, T const& end, T const& p, double sigs); + //# //# === meow:: *Functios* in utility.h + //# //# [options="header",width="100%",cols="1>s,5<,1<,10<",grid="rows"] //# |============================================================== //# |Name | Parameters | Return_Type | Description |