Ray's playground

 
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 56 下一页

2010年1月8日

Key Concepts(Chapter 2 of Hello, Android)

摘要: Android is built on top of a solid and proven foundation: the Linuxkernel.Internally, Android uses Linux for its memory management, processmanagement, networking, and other operating system services. ... 阅读全文

posted @ 2010-01-08 22:35 Ray Z 阅读(268) 评论(0) 推荐(0) 编辑

2010年1月7日

Item 14: Think carefully about copying behavior in resource-managing classes.(Effective C++)

摘要: Copying an RAII object entails copying the resource it manages, so the copying behavior of the resource determines the copying behavior of the RAII object.Common RAII class copying behaviors are dis... 阅读全文

posted @ 2010-01-07 21:04 Ray Z 阅读(238) 评论(0) 推荐(0) 编辑

2010年1月5日

Item 13: Use objects to manage resources.(Effective C++)

摘要: To prevent resource leaks, use RAII objects that acquire resources in their constructors and release them in their destructors.Two commonly useful RAII classes are TR1::shared_ptr and auto_ptr. tr1::s... 阅读全文

posted @ 2010-01-05 22:09 Ray Z 阅读(172) 评论(0) 推荐(0) 编辑

2010年1月4日

Item 12: Copy all parts of an object(Effective C++)

摘要: Copying functions should be sure to copy all of an object's data members and all of its base class parts.Don't try to implement one of the copying functions in terms of the other. Instead, put common ... 阅读全文

posted @ 2010-01-04 22:01 Ray Z 阅读(244) 评论(0) 推荐(0) 编辑

2010年1月3日

2010学习计划

摘要: 2010学习计划OSLinux: 入门Programming LanguagesC#: 精通3.0, 4.0 new featuresC++: 精通Python: 精通Java: 入门SkillsCOM:从一般水平到精通WF/WCF:入门J2EE:入门Books算法导论深入理解计算机系统 阅读全文

posted @ 2010-01-03 22:23 Ray Z 阅读(397) 评论(4) 推荐(0) 编辑

2009年12月27日

Item 11: Handle assignment to self in operator=(Effective C++)

摘要: Make sure operator= is well-behaved when an object is assigned to itself. Techniques include comparing addresses of source and target objects, careful statement ordering, and copy-and-swap.Make sure... 阅读全文

posted @ 2009-12-27 13:31 Ray Z 阅读(163) 评论(0) 推荐(0) 编辑

Item 10: Have assignment operators return a reference to *this(Effective C++)

摘要: Have assignment operators return a reference to *this. 阅读全文

posted @ 2009-12-27 10:31 Ray Z 阅读(172) 评论(0) 推荐(0) 编辑

Item 9: Never call virtual functions during construction or destruction(Effective C++)

摘要: Don't call virtual functions during construction or destruction, because such calls will never go to a more derived class than that of the currently executing constructor or destructor. 阅读全文

posted @ 2009-12-27 09:43 Ray Z 阅读(196) 评论(0) 推荐(0) 编辑

2009年12月26日

Item 8: Prevent exceptions from leaving destructors(Effective C++)

摘要: Destructors should never emit exceptions. If functions called in a destructor may throw, the destructor should catch any exceptions, then swallow them or terminate the program.If class clients need ... 阅读全文

posted @ 2009-12-26 15:44 Ray Z 阅读(256) 评论(0) 推荐(0) 编辑

Item 7: Declare destructors virtual in polymorphic base classes(Effective C++)

摘要: Polymorphic base classes should declare virtual destructors. If a class has any virtual functions, it should have a virtual destructor.Classes not designed to be base classes or not designed to be use... 阅读全文

posted @ 2009-12-26 13:22 Ray Z 阅读(206) 评论(0) 推荐(0) 编辑

上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 56 下一页

导航