2008-06-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¾ãããã«é£½ããæ°ããããã©ã ã¨ããããã Naming convention for GIL concrete types Concrete (non-generic) GIL types follow this naming convention: ColorSpace + BitDepth + [f | s]+ [c] + [_planar] + [_step] + ClassType + _t Where ColorSpaâ¦
#include <boost/mpl/push_back.hpp> #include <boost/mpl/push_front.hpp> #include <boost/mpl/list.hpp> using namespace boost::mpl; void main() { typedef list<int, char> list2; //typedef push_back<list2, void*>::type list3; // âã³ã³ãã¤ã«ã¨ã©ã¼ typedef push_front<list2, void*>::type list3; // âãã£ã¡ãªãéã } è¬ã ...ã</list2,></list2,></int,></boost/mpl/list.hpp></boost/mpl/push_front.hpp></boost/mpl/push_back.hpp>
ä½ãããã¯ã©ã¹ãªã®ãã¾ã£ããç解ãã¦ãªããã ãã©ã xml_parser_read_spirit.hpp ããã® xml_grammar ã¯ã©ã¹ã ãåãåã£ã¦ã´ãã§ã´ãã§ãã¦ã¿ããè¡åã«é§ãããã ã§ãããèãã¦ã¿ã㨠XML ã£ã¦ DTD ã¨ã XML Schema ããªãã¨ç¡ç¨ã®é·ç©ã ããªãã¨ãæâ¦
ãä½ã£ã¦ã¿ãã #ifndef ANMELT_THREAD_INVOKE_H_INCLUDED #define ANMELT_THREAD_INVOKE_H_INCLUDED // Boost #include <boost/thread.hpp> #include <boost/optional.hpp> #include <boost/noncopyable.hpp> #include <boost/ref.hpp> #include <boost/utility/enable_if.hpp> #include <boost/utility/result_of.hpp> #include â¦</boost/utility/result_of.hpp></boost/utility/enable_if.hpp></boost/ref.hpp></boost/noncopyable.hpp></boost/optional.hpp></boost/thread.hpp>
Worker Thread ãã¿ã¼ã³ã§ã¹ã¬ãããã¼ã«ãä½ã£ã¦ã¿ãã worker_thread.h #ifndef ANMELT_THREAD_WORKER_THREAD_H_INCLUDED #define ANMELT_THREAD_WORKER_THREAD_H_INCLUDED // Boost #include <boost/thread.hpp> #include <boost/shared_ptr.hpp> #include <boost/function.hpp> #include <boost/bind.hpp> #include </boost/bind.hpp></boost/function.hpp></boost/shared_ptr.hpp></boost/thread.hpp>
ãä½ã£ã¦ã¿ãã #ifndef ANMELT_THREAD_BALKING_CONTAINER_H_INCLUDED #define ANMELT_THREAD_BALKING_CONTAINER_H_INCLUDED // Boost #include <boost/thread.hpp> namespace anmelt{ namespace thread { template<class Container, class Adapter> class balking_container { private: Container container_; </class></boost/thread.hpp>â¦
ãä½ã£ã¦ã¿ãã #ifndef ANMELT_THREAD_BLOCKING_CONTAINER_H_INCLUDED #define ANMELT_THREAD_BLOCKING_CONTAINER_H_INCLUDED // Boost #include <boost/thread.hpp> namespace anmelt{ namespace thread { template<class Container, class Adapter> class blocking_container { private: Container container</class></boost/thread.hpp>â¦
using namespace boost::lambda; template<class F, class T> void apply(F f, T v) { f(v); } void func(std::vector<int>& v) { std::for_each(v.begin(), v.end(), _1 *= 2); } void main() { std::vector<int> v; apply(func, boost::ref(v)); } ããããfunc é¢æ°ãä½ããã«ããã¨ã©</int></int></class>â¦
class Item { private: int value_; public: Item(int v) : value_(v) { } void Initialize() { ... } }; class Hoge { private: std::vector<Item*> vec_; public: ~Hoge() { BOOST_FOREACH (Item* p, vec_) delete p; } void add(int n) { std::auto_ptr<Item> item(new</item></item*>â¦
ãããªã®ä½ã£ã¦ã¿ã¾ããã #ifndef ANMELT_THREAD_MUTEXED_H_INCLUDED #define ANMELT_THREAD_MUTEXED_H_INCLUDED #include <boost/thread.hpp> #include <boost/utility/enable_if.hpp> #include <boost/utility/result_of.hpp> #include <boost/type_traits/is_void.hpp> namespace anmelt{ namespace thread { template</boost/type_traits/is_void.hpp></boost/utility/result_of.hpp></boost/utility/enable_if.hpp></boost/thread.hpp>
Boost.Spirit ã§ä½ã試ãã«è§£æãã¦ã¿ããã¨æã£ã¦ãã¡ããã©ãã¼ã¹ ããªã¼ã«ã¤ã㦠(ATL)辺ãã« BNF ã§æ¸ãããææ³ããã£ãã®ã§ãããã使ã£ã¦ã¿ããã¨ã«ãã¦ã¿ãã <root key>{<registry expression>}+ <root key> ::= HKEY_CLASSES_ROOT | HKEY_CURRENT_USER | HKEY_LOCAL_MACHINE | HKEY_USERS | </root></registry></root>â¦
Debugging ãã®è¾ºã®ãã¯ããå®ç¾©ãã¦ãããªãã¨ãæå³ããªã解æãããå ´åã«ã¨ã©ã¼ã®åå ãçªãæ¢ããã®ããã®ãããå°é£ã«ãªãã å®éã«å°é£ã極ãã人ãããã«ããã®ã§ééããªãã
ã¾ãã¯æ å ±ã調ã¹ãã¨ãããããã¨æã£ããã¾ã¨ãã¦ããã£ãããæ¹ãããããã§ãhttp://www5d.biglobe.ne.jp/~y0ka/2006-05-14-1.html ã§ããããã調ã¹ãæããLL(k) ææ³ãªã®ã§ããã¯ãã©ãã¯ãèµ·ãã£ãã¨ãã®ã»ãã³ãã£ãã¯ã¢ã¯ã·ã§ã³ããªããªãæå¼·ãã£â¦
namespace anmelt { namespace horizontal { } }