Difference between revisions of "Programming Templates"
From Gridkaschool
Line 7: | Line 7: | ||
+ | [[Media:Programming Templates.pdf]] |
||
− | All the single/few file examples will be compiled using the following SConscript [[Media:SConstruct]] |
||
+ | All the single/few file examples will be compiled using the following SConstruct [[Media:SConstruct]] |
||
SCons is a python based building tool, started with the command "scons", when you rename it to SConstruct. |
SCons is a python based building tool, started with the command "scons", when you rename it to SConstruct. |
Revision as of 12:57, 8 September 2015
Description This workshop will contain the following topics (all topics consist of both, lecture style talk and practical programming):
- Reminder on template usage
- Policies
Media:Programming Templates.pdf
All the single/few file examples will be compiled using the following SConstruct Media:SConstruct
SCons is a python based building tool, started with the command "scons", when you rename it to SConstruct.
Reminder on template usage
- Some files shown in the slides: Media:FunctionTemplates1.cc Media:FunctionTemplates2.cc Media:GetMaxValue.h
- Exercise: Media:practiceSimpleTemplate.cc
- Exercise: Media:specialisation.cc
Policies
- Code Example for Policy vs. Utility: Media:PolicyAndEllipsisExample1.tgz
- Code Example Template PitFall: Media:templatePitFalls.cc
- Exercise: Media:PracticePolicyProject.tgz Media:Solution.tgz - be careful, unpacks into same folder
- Code Example Generic Programming Tricks: Media:GenericProgrammingTricks.cc