473,666 Members | 2,258 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Loki Typelist

Hello All!

I have read about Loki's Typelist in "Modern C++ Design".
Great idea!
But this chapter of book describes only three example of Typelist usage
(GenScatterHier archy, GenLinearHierar chy and Tuple).

Where can I find another examples of Typelists usage?
Are there books or on-line articles?

Thanks!

Jun 4 '06 #1
1 6497
Krivenok Dmitry wrote:
Hello All!

I have read about Loki's Typelist in "Modern C++ Design".
Great idea!
But this chapter of book describes only three example of Typelist usage
(GenScatterHier archy, GenLinearHierar chy and Tuple).

Where can I find another examples of Typelists usage?
Are there books or on-line articles?

Thanks!


http://www.ddj.com/dept/cpp/184403813

From the author of Modern C++ Design. He talks about Loki's
implementation in that article.

--
Alan Johnson
Jun 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2832
by: Sebastian Faust | last post by:
Hi, I read about the Loki::Factory and Loki::AbstractFactory in the book Modern C++ Design and couldnt figure out one thing: If I have several classes, for example the following hierarchie: clase Base { public: Base(Base* pBase) : _pBase(pBase) { }
1
1973
by: fabioppp | last post by:
I'm using g++, a quite new version. Why does this code not compile? #include "HierarchyGenerators.h" using namespace Loki; int main() { Tuple<TYPELIST_2(int,int)> tuple; Field<0>(tuple) = 4; };
5
2704
by: Jon Slaughter | last post by:
I'm having some issues using loki's typelists and I'm wondering if there is something I'm missing. I'm trying to create a template who's specialization sorta looks like template <int I, class T> struct Node { enum {Index = I}; typedef T Class;
3
4591
by: Krivenok Dmitry | last post by:
Hello All! This is example of code: ////////////////////////////////////////////////////////////////////////////////////////////////// #ifndef A_H_ #define A_H_ #include <Loki/Singleton.h> #include <Loki/SmartPtr.h> #include <iostream>
10
2944
by: Ray | last post by:
I am reading Andrei Alexandrescu's book. The ideas presented there sound really good, but I wonder--is there really a lot of people using it? Or it's simply too esoteric for mortals? Cheers Ray
3
2599
by: Isold.Wang | last post by:
I dont know how to use typelist.
2
2212
by: Shawn McGrath | last post by:
Hey, I can't get DeletableSingleton to actually delete the singleton. The code is: typedef Loki::SingletonHolder<GenClass Loki::CreateUsingNew, Loki::DeletableSingletonGen; .... Gen::Instance(); .... Loki::DeletableSingleton<Gen>::GracefulDelete();
2
2135
by: Marco Wedekind | last post by:
Hello all, I've just read about typelists and their implementation in C++ using templates in http://www.ddj.com/dept/cpp/184403813. Now my very first test code using typelists does not compile... I just cannot compile the example explained in the article on Visual Studio 2005 or gcc 3.3.4 (to few template arguments). I would be glad, if some template-guru among you could take a look at the source code below and check, if I simply made...
1
2779
by: ares.lagae | last post by:
- I have a typelist and I want to declare a member variable for each of the types. How can I do that? E.g. I have the typelist "typedef boost::mpl::vector<int, float> types;" and I want to declare member variables with type "int" and "float". - I have a typelist and I want to declare a variable based on each of the types types. How can I do that? E.g. I have the typelist "typedef boost::mpl::vector<int, float> types;" and I want to...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8866
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8639
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7385
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6192
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5663
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1772
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.