SpaceShare Code
Brought to you by:
lc2m
File | Date | Author | Commit |
---|---|---|---|
.vscode | 2019-05-05 |
![]() |
[2253b8] Update: structure |
Applications | 2019-04-04 |
![]() |
[c071e1] update: machine & module |
Bindings | 2019-05-05 |
![]() |
[0e0e21] General: added bindings structure |
Bundles | 2018-08-02 |
![]() |
[5ff7e5] initial commit |
Interfaces | 2018-08-02 |
![]() |
[5ff7e5] initial commit |
Share | 2019-05-05 |
![]() |
[14f1c4] Improvement: coding style |
Space | 2019-05-05 |
![]() |
[14f1c4] Improvement: coding style |
Test | 2019-05-05 |
![]() |
[14f1c4] Improvement: coding style |
.gitignore | 2019-05-05 |
![]() |
[ef3b3d] Update git ignore |
CMakeLists.txt | 2019-03-31 |
![]() |
[118f57] added itertools |
README.md | 2019-05-05 |
![]() |
[2253b8] Update: structure |
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;
};
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[...]) {
...
}
}