Menu

Tree [ef3b3d] master /
 History

HTTPS access


File Date Author Commit
 .vscode 2019-05-05 Monteiro Monteiro [2253b8] Update: structure
 Applications 2019-04-04 Monteiro Monteiro [c071e1] update: machine & module
 Bindings 2019-05-05 Monteiro Monteiro [0e0e21] General: added bindings structure
 Bundles 2018-08-02 lcm lcm [5ff7e5] initial commit
 Interfaces 2018-08-02 lcm lcm [5ff7e5] initial commit
 Share 2019-05-05 Monteiro Monteiro [14f1c4] Improvement: coding style
 Space 2019-05-05 Monteiro Monteiro [14f1c4] Improvement: coding style
 Test 2019-05-05 Monteiro Monteiro [14f1c4] Improvement: coding style
 .gitignore 2019-05-05 Monteiro Monteiro [ef3b3d] Update git ignore
 CMakeLists.txt 2019-03-31 Monteiro Monteiro [118f57] added itertools
 README.md 2019-05-05 Monteiro Monteiro [2253b8] Update: structure

Read Me

Coding Style

Declaration

class SObject {
public:
    /**
     * ------------------------------------------------------------------------
     * helper types
     * ------------------------------------------------------------------------
     */
    using Type1 = SModule::Command;
    using Type2 = SModule::Command;
    using Typen = SModule::Command;
    /**
     * ------------------------------------------------------------------------
     * interface functions
     * ------------------------------------------------------------------------
     * verb_object
     * ----------------------------------------------------
     */
    Type1 verb_object();
    /**
     * ----------------------------------------------------
     * verb_object
     * @obj 
     * ----------------------------------------------------
     */
    Type2 verb_object(Type2 obj);
private:
    /**
     * ------------------------------------------------------------------------
     * implementation functions
     * ------------------------------------------------------------------------
     * verb
     * ----------------------------------------------------
     */
    void __verb();
    /**
     * ------------------------------------------------------------------------
     * Variables
     * ------------------------------------------------------------------------
     * object 1
     */
    Type2 __obj1;
    /**
     * object 2
     */
    Type2 __obj2;
    /**
     * object n
     */
    Type2 __objn;
};

Implementation

void SObject::verb_object(const Command& cmd) {
        /**
         * comment 1
         */
        for(auto& o: cmd[...]) {
            try {
                __obj1.insert(...);
            } catch (std::out_of_range&) {
                ...
            }
        }
        /**
         * comment1
         */
        for(auto o: cmd[...]) {
            ...
        }
    }
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.