Difference between revisions of "C plus plus version"

From WikiManual
Jump to: navigation, search
(C++ design)
m (See also)
Line 36: Line 36:
 
== See also ==
 
== See also ==
  
[[RoundTable]]
+
# [[RoundTable]]
 +
# [http://www.cppreference.com C/C++ Reference]
 +
# [http://www.parashift.com/c++-faq-lite C++ FAQ Lite]

Revision as of 13:39, 30 October 2005

I propose we discuss the C++ design and coding standards in here. A wiki is much handier then a forum or PM's for it.

C++ design

General concepts

  • Class based approach.
  • Portable code.

Structure

  • Main
    • Engine
      • User Interface
      • Darwin (the simulation engine)
        • Veg
        • Tie
        • Robot
          • Sense

To be used everywhere:

  • Vector_4 (using uBLAS)
  • Matrix_4 (also using uBLAS)
  • Random (using 'srand()' and 'rand()')
  • Object (the base class)

C++ coding standards

I would use:

  1. C++
  2. Four spaced tabs
  3. External librairies when possible (ie. Boost)
  4. SDL
  5. ...

See also

  1. RoundTable
  2. C/C++ Reference
  3. C++ FAQ Lite