VirtualBox

Changeset 25113 in vbox


Ignore:
Timestamp:
Nov 30, 2009 3:55:00 PM (15 years ago)
Author:
vboxsync
Message:

doc: coding conventions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/VBox-CodingGuidelines.cpp

    r21449 r25113  
    331331 *      - The 'm_' (or 'm') prefix means a class data member.
    332332 *
     333 *        In new code in Main, use "m_" (and common sense). As an exception, in Main,
     334 *        if a class encapsulates its member variables in an anonymous
     335 *        structure which is declared in the class, but defined only in the
     336 *        implementation (like this: "class X { struct Data; Data *m; }"), then
     337 *        the pointer to that struct is called "m" itself and its members then need no prefix,
     338 *        because the members are accessed with "m->member" already which is clear enough.
     339 *
    333340 *      - The 'p' prefix means pointer. For instance 'pVM' is pointer to VM.
    334341 *
     
    368375 *
    369376 *      - The 'usz' prefix means zero terminated Unicode string (array of RTUNICP).
     377 *
     378 *      - The 'str' prefix means C++ string; either a std::string or, in Main, a Utf8Str.
     379 *
     380 *      - The 'bstr' prefix, in Main, means a UTF-16 Bstr.
    370381 *
    371382 *      - The 'pfn' prefix means pointer to function. Common usage is 'pfnCallback'
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette