約 3,941,156 件
https://w.atwiki.jp/hellgate_london/pages/615.html
Sword Unique Template [部分編集] blankimgプラグインエラー:画像URLまたは画像ファイル名を指定してください。 Category Unique Item Class Templar Type Sword Item Level Require Level Damage Type Speed Shield Overload Interrupt Strength Critical Chance Critical Damage Range Phase Attack Strength Equip Cost Modification Inherent Attributes Shield Overload Special Attributes ※上記に画像がないときはアイテム名.jpgでアップロードしてください。 [部分編集] Special Attributes 固定 Affix名 効果 [部分編集] ・追加画像 関連ページ Template
https://w.atwiki.jp/kfsdhkghsdigh/pages/34.html
return 各種テンプレートです。 name Lv job constellation production photo main sub constellation 牡羊座 Aries 牡牛座 Taurus 双子座 Gemini 蟹座 Cancer 獅子座 Leo 乙女座 Virgo 天秤座 Libra 蠍座 Scorpio 射手座 Sagittarius 山羊座 Capricornus 水瓶座 Aquarius 魚座 Pisces job ファイター:Fighter ナイト:Knight ガンナー:Gunner メイジ:Mage プリースト:Priest マジシャン:Magician パラディン:Paladin テンプルナイト:Temple Knight レンジャー:Ranger スナイパー:Sniper ビショップ:Bishop プロフィット:Prophet ウィザード:Wizard ソーサラー:Sorcerer
https://w.atwiki.jp/trivia-mike/pages/1815.html
Template
https://w.atwiki.jp/hellgate_london/pages/646.html
Armor Unique Template [部分編集] blankimgプラグインエラー:画像URLまたは画像ファイル名を指定してください。 Category Unique Item Class Slot Type Item Level Require Level Armor Shield Equip Cost Inherent Attributes Special Attributes ※上記に画像がないときはアイテム名.jpgでアップロードしてください。 [部分編集] Special Attributes 固定 Affix名 効果 [部分編集] ・追加画像 関連ページ Template
https://w.atwiki.jp/reshia/pages/24.html
templateと仮想クラス 処理の流れは同じだけど、アルゴリズムを切り替えたいときに 有効なインタフェースの継承。 C++にインタフェースはないので、純粋仮想関数をもったクラスで代用。 でも、純粋仮想関数を持つと、仮想関数テーブルができるので処理速度が遅くなる。 そんなときに有効なのが、template。 というあれ。 でも、あまり使えなさそう。 インタフェース的なクラスの継承による動的束縛 #include iostream using namespace std; class VClass { protected const char * name; public VClass(const char * name) name(name) {} virtual ~VClass() {} public void whoami() { cout name endl; } }; class RClass1 public VClass { public RClass1(const char * name) VClass(name) {} ~RClass1() {} }; class RClass2 public VClass { public RClass2(const char * name) VClass(name) {} ~RClass2() {} }; int main() { VClass * v; v = new RClass1("hoge"); v- whoami(); delete v; v = new RClass2("piyo"); v- whoami(); delete v; return 0; } templateを使った、動的束縛風の処理 #include iostream using namespace std; template class HasName_Class void whoami(HasName_Class c) { cout c.name endl; }; class RClass1 { public const char * name; public RClass1(const char * name) name(name) {} ~RClass1() {} }; class RClass2 { public const char * name; public RClass2(const char * name) name(name) {} ~RClass2() {} }; int main() { RClass1 c1("hoge"); whoami(c1); RClass2 c2("piyo"); whoami(c2); return 0; } template関数からnameを参照するには、nameをpublicにするかfriend関数に指定する。 あるいは、GetName()などのアクセッサを用意する。 どっちかっていうと、インタフェースの方がすっきりだけど どっちかっていうと、templateを使った方が、きっと高速。
https://w.atwiki.jp/ssssnavy/pages/152.html
【登録タグ Template】 Template ギャラリー ファイル1 ファイル2 関連項目 ファイル1 #ref error :ご指定のファイルが見つかりません。ファイル名を確認して、再度指定してください。 (添付ファイル名1) 20??/??/?? 説明を記入。 ファイル2 #ref error :ご指定のファイルが見つかりません。ファイル名を確認して、再度指定してください。 (添付ファイル名2) 20??/??/?? 説明を記入。 関連項目 【上へ・ギャラリー】 コメント 名前 コメント
https://w.atwiki.jp/mnemonic/pages/15.html
template(ext/template) 文法 {{{ }}}で囲った部分がコマンド、データ | でパイプライン。関数の最後の引数を省略して、|でチェインできるのはすばらしい。 例: {{ printf "%d" 10 }} を {{ 10 | printf "%d" }} と書ける 繰り返し {{ range ~}} 添え字付きで回せるのはsliceとarrayだけ。mapのkeyを取り出せない。 structは繰り返しに使うことすら出来ない。
https://w.atwiki.jp/linuxjapanwiki/pages/24.html
Template 要出典 現在、このページ以外のネタページの作成は認められていません。 [要出典]について コメント欄 [要出典]について [要出典]はWikipediaのテンプレートを元ネタとする[要出典]、ネタ用テンプレートです[要出典]。 ガイドライン上、このWikiで出典を要求されることはありません。 なので、記事の執筆者以外がこのテンプレートを貼ることは推奨されません。(*1) このテンプレートは以下の様になっています[要出典]。 font(65%){[ font(i){[[要出典 Template 要出典]]}]} このテンプレートを更に本家である[要出典]Wikipediaの[要出典]に近付ける為、ご協力をお願いします。 コメント欄 コメント欄の利用に関してはコメント欄の利用を参照して下さい。 本ページに無関係な内容のコメントは一律して削除されます。[要出典]Wiki運営に関してはWiki運営掲示板にお願いします 。 投稿されているコメントへの返信の際は、必ず返信したいコメント横の○にチェックを入れて返信して下さい。 +上記の内容を守れる方のみご利用ください。 上記の内容を守れる方のみご利用ください。 コメントログの作成[要出典] - 名無しさん (2020-04-29 02 49 16) 名前 コメントログ[要出典]
https://w.atwiki.jp/objcmemo/pages/39.html
ViewController *__weak weakSelf = self; typeof(UITableViewCell) *__weak wcell = [tableView cellForRowAtIndexPath indexPath]; typeof(self) __weak wself = self; __weak typeof(self) wself = self; // 待機 [NSThread sleepForTimeInterval 1]; SomeClass *obj = [[SomeClass] alloc] init]; SomeClass *obj = [SomeClass new]; SomeClass *obj = SompeClass.new; // バージョンによる切り分け if (@available(iOS 11.0, *)) { } else { // Fallback on earlier versions } NSDictionary* dict = @{} NSMutableDictionary* dict = @{}.mutableCopy; NSArray* array = @[] NSMutableArray* array = @[].mutableCopy; + (instancetype)sharedInstance { SomeClass* obj = [[self alloc] init]; } SomeClass* obj = self.new; .h extern const NSInteger BLGClassAIntegerConstant; extern NSString *const BLGClassAStringConstant; .m const NSInteger BLGClassAIntegerConstant = 3; NSString *const BLGClassAStringConstant = @"hogePublic"; static const NSInteger kLocalIntegerConstant = 30; static NSString *const kLocalStringConstant = @"fooLocal"; NSIndexPath *indexPath = [NSIndexPath indexPathForRow 0 inSection 0]; _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Delegate _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ protocol @protocol ClassNameDelegate NSObject @optional /** * xxxxxxxxxxxxxxxx * @param 無し * @return 無し */ - (void)dismissSampleView; /** xxxxxxxxxxxxxxxx @param sampleView SampleView インスタンス @param info SampleView から通知したい情報 @returns 無し デリゲートメソッドの命名として、引数が2つ以上ある場合は、第1引数に自身のインスタンス(今回はSampleViewControllerインスタンス)を渡す慣習があります。 */ - (void)sampleView (SampleView *)sampleView willDismissWithInfo (NSDictionary *)info; @end property @property (weak, nonatomic) id ClassNameDelegate delegate; _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Multi Thread _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __weak typeof(self) wself = self; typeof(self) __weak wself = self; // 非同期 dispatch_async(dispatch_get_main_queue(), ^{ }); // 同期 dispatch_sync(dispatch_get_main_queue(), ^{ }); // Main thread から dispatch_sync で main queue に突っ込もうとすると誰も処理できずに詰まるので注意。 // どの thread から呼ばれるかわからない場合は自分がどの thread にいるかチェックする。 __block BOOL enabled = NO; if ([NSThread isMainThread]) { enabled = self.button.enabled; } else { typeof(self) __weak wself = self; dispatch_sync(dispatch_get_main_queue(), ^{ enabled = wself.button.enabled; }); } dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ @synchronized(self) { } dispatch_async(dispatch_get_main_queue(), ^{ }); }); _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ 遅延 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ #include dispatch/dispatch.h typeof(self) __weak wself = self; dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.3f * NSEC_PER_SEC); dispatch_after(popTime, dispatch_get_main_queue(), ^(void) { }); _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ サンプルアプリ作成用 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ #import "ViewController.h" ViewController *viewController = [[ViewController alloc] initWithNibName @"ViewController" bundle nil]; self.window.rootViewController = viewController; _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ typedef _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ typedef NS_OPTIONS(NSUInteger, UIXxxxxYyyyyZzzzz) { /// UIXxxxxYyyyyZzzzz00000 = 0, // 00000 UIXxxxxYyyyyZzzzz11111 = 1 0, // 11111 UIXxxxxYyyyyZzzzz22222 = 1 1, // 22222 UIXxxxxYyyyyZzzzz33333 = 1 2, // 33333 UIXxxxxYyyyyZzzzz44444 = 0x00FF0000, // 44444 UIXxxxxYyyyyZzzzzReserved = 0xFF000000 // 予約(未使用) }; typedef NS_ENUM(NSInteger, XxxxxYyyyyZzzzzType) { /// XxxxxYyyyyZzzzzType0 = 0, XxxxxYyyyyZzzzzType1, XxxxxYyyyyZzzzzType2, XxxxxYyyyyZzzzzTypeReserved // 予約(未使用) }; /** * グラデーションを設定する。 * @param view 設定対象UIView * @return 無し */ - (void)setGradientLayer (UIView *)view { CAGradientLayer *gradient = [CAGradientLayer layer]; gradient.frame = view.bounds; gradient.colors = @[ (id)[UIColor colorWithRed 0.90f green 0.91f blue 0.92f alpha 1.0f].CGColor, (id)[UIColor colorWithRed 0.84f green 0.85f blue 0.86f alpha 1.0f].CGColor ]; [view.layer insertSublayer gradient atIndex 0]; } _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ UITableView _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ .h ---------- @property (strong, nonatomic) NSMutableArray *tableItems; .m viewDidLoad ----------- - (void)viewDidLoad { // ノーマルの場合 NSString *className = NSStringFromClass([UITableViewCell class]); [_tableView registerClass [UITableViewCell class] forCellReuseIdentifier className]; // nib(カスタマイズ)の場合 NSString *className = NSStringFromClass([CustomTableViewCell class]); [_tableView registerNib [UINib nibWithNibName className bundle nil] forCellReuseIdentifier className]; } .m UITableViewDelegate ----------- #pragma mark - UITableViewDataSource /** セクション数を返す @param tableView UITableViewインスタンス @return セクション数 */ - (NSInteger)numberOfSectionsInTableView (UITableView *)tableView { return 1; } /** セクションの要素数を返す @param tableView UITableViewインスタンス @param section セクション @return 要素数 */ - (NSInteger)tableView (UITableView *)tableView numberOfRowsInSection (NSInteger)section { return [_tableItems count]; } /** セルの高さを返す @param tableView UITableViewインスタンス @param indexPath NSIndexPathインスタンス @return せるの高さ */ - (CGFloat)tableView (UITableView *)tableView heightForRowAtIndexPath (NSIndexPath *)indexPath { return 44; } /** セルを返す @param tableView UITableViewインスタンス @param indexPath NSIndexPathインスタンス @return セルインスンタス */ - (UITableViewCell *)tableView (UITableView *)tableView cellForRowAtIndexPath (NSIndexPath *)indexPath { NSString *className = NSStringFromClass([UITableViewCell class]); UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier className forIndexPath indexPath]; cell.textLabel.font = [UIFont systemFontOfSize 18]; cell.textLabel.minimumScaleFactor = 9.f/18.f; cell.textLabel.adjustsFontSizeToFitWidth = YES; cell.textLabel.text = _tableItems[indexPath.row]; return cell; } #pragma mark - UITableViewDelegate /** セルを選択すると呼ばれる @param tableView UITableViewインスタンス @param indexPath NSIndexPathインスタンス */ - (void)tableView (UITableView *)tableView didSelectRowAtIndexPath (NSIndexPath *)indexPath { } _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ UICollectionView _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ .h ----------------------------------------------------------------------------- @property (strong, nonatomic) NSMutableArray *collectionItems; .m viewdidload ----------------------------------------------------------------------------- NSString *className = NSStringFromClass([CustomCollectionViewCell class]); [_collectionView registerNib [UINib nibWithNibName className bundle nil] forCellWithReuseIdentifier className]; .m delegate ----------------------------------------------------------------------------- #pragma mark - UICollectionViewDataSource /** * セクション数を返す * @param collectionView 対象UICollectionView * @return セクション数 */ - (NSInteger)numberOfSectionsInCollectionView (UICollectionView *)collectionView { return 1; } /** * 要素数を返す * @param collectionView 対象UICollectionView * @return 要素数 */ - (NSInteger)collectionView (UICollectionView *)collectionView numberOfItemsInSection (NSInteger)section { return [_collectionItems count]; } /** * 表示対象セルを返す * @param collectionView 対象UICollectionView * @param indexPath インデックス情報 * @return 表示対象セル */ - (UICollectionViewCell *)collectionView (UICollectionView *)collectionView cellForItemAtIndexPath (NSIndexPath *)indexPath { NSString *className = NSStringFromClass([UICollectionViewCell class]); UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier className forIndexPath indexPath]; NSDictionary *data = _collectionItems[indexPath.row]; [cell setData data]; return cell; } #pragma mark - UICollectionViewDelegate /** * セル選択時に呼ばれる * @param collectionView 対象UICollectionView * @param indexPath インデックス情報 */ - (void)collectionView (UICollectionView *)collectionView didSelectItemAtIndexPath (NSIndexPath *)indexPath { }
https://w.atwiki.jp/hellgate_london/pages/632.html
Weapon Type Template [部分編集] 基本性能 Rate of fire Range [部分編集] 特徴 [部分編集] [部分編集] ベースアイテム・ユニークアイテム