Category Archives: Uncategorized

Notes….

[cpp]
8/25/2010
———
>>POM#1
Read 10 pages of Modern C++ design.
Realised that it needs more knowledge about templates.
Started with reading the book : C++ Templates, The Complete Guide 2002.chm

>>POM#2
Function templates
function template syntax:
template <typename a1,….>
funnction declaration or definition using T
‘typename’ introduces type parameter
historical alternative to typename is ‘class’.
templates are generated once for each type for which it is used
process of replacing template types with concrete types is called instantiation.
use of function template triggers the ‘instatiation’.
templates are compiled twice:
1. once for checking the syntax of the template.
2. second time to check the operations mentioned are valid for
the type used for template instantiation.

template parameters are determined by the arguments passed at the call time.
no automatic type conversion is allowed.

>>POM#3
Function templates have two kinds of parameters
1. template params – declared in angle brackets, N no. of them can be declared,
no default template arguments can be specified.
e.g.: template <typename T> // T is template param
2. call params – declared in parenthese after function template name
foo(T p1, T p2) //p1,p2 are call params
call params deduced from template params, so they are related.
function template argument deduction
when template return type cannot be deduced from template and
call params then needs to be explicitly mentioned.
template argument deduction does not try to determine the return type
another method to just declare one type and then let the compiler deduce the rest.
template <typename RT, typename T1, typename T2>
inline RT max (T1 const& a, T2 const& b);
// OK: return type is double, T1 is deduced as int and T2 is deduced as double.
max<double>(4,4.2)
overloading function templates->overloading resolution revisited
not part of every function call
— calls to functions thru function ptrs
— calls to member functions thru ptr to member functions
not subjected to resolution as they are determined at runtime.

function like macros cannot be overloaded and hence not subjected to reso

8/26/2010
———
Task for today:
1. chk the tower of hanoi problem
2. chk two design patterns and make notes abt them
[/cpp]

Mobical.net : Remote sync, worked for me!!!

I just moved to SE P1i from N91. The moving was a bit tricky for me. As I was moving for the first time to a Non-Nokia device. I tried moving my contacts and events using Oxygen phone manager and Mobiledit! , but both did not work for me. Ovi was not an option due to the Nokia only support. So after a bit of search I found mobilecal.net.

I was able to move the contacts within 15 mins of finding the website and setting up an account. I would really rate that as fast. Well I could not move my messages, but I can live with that, as the 200+ contacts were moved quite easily.

I would strongly recommend it ,especially if you are the frequently shifting from one device to another.

Data structures to Algorithm analysis to discrete mathematics & calculus.

I started reading “Data Structures & Algorithms with Object-oriented Design patterns in C++” only to realize that I was totally lost in the mathematics. Maths has been greek to me and I have been avoiding it as much as possible. To put it simply, am bad at numbers. So now to understand the algorithm analysis part along with the O notation I need to first quickly grasp Discrete mathematics and some calculus as well.

I will update again once am done with Discrete mathematics,so Grimaldi here I come.

Game engines resources update.

Found one useful link related to graphics acceleration in Symbian devices.
Just to my surprise came to know that Nokia 6630 was the first device to have 3D API’s. That is one more first apart from the megapixel camera it sports.

Also got one more link which details the CPU information of the leading smartphones.
Apart from the core the iPhone is a beast in terms of RAM. So comparison with low resourced Symbian devices is a bit unfair.

Getting organized.

I have been too much unorganized for too long now. This has left me wasting such important time without achieving anything till now. So am moving on to leading a more organized and planned lifestyle. LifeHacker has some great tips and am gonna use them.
So am making a Symbian application which will be useful in planning things and am gonna call it TaskWerks.

Task for tomorrow : Post more details about the TaskWerks.

I want to make a game engine for mobile devices, and I don’t know how!!!

I want to make a game engine for Symbian devices, but I really don’t know how. I don’t know what is needed to make one. Also there is the big question : Does a good game engine mean a good game is created?

Also how do you make the various added features of the mobile device, like the accelerometer, the camera, the GPS, the magnetometer etc. a part of the game engine?
So that we can use them to make more immersive (Google spell check tells me there is no word known as immersive 😛 ) and fun mobile games.

Update : The answer seems to be in the new book Game Engine Architecture by Jason Gregory. Unfortunately the Indian edition of this book is not out, so will have to wait till then.