Advertisement
tinyevil

Untitled

Jun 27th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. class Class {
  2.     void build();
  3.     bool isBuilt();
  4. }
  5.  
  6.  
  7. bool Class::build(){
  8.     if ( !parent->isBuilt() ){
  9.         parent->build();
  10.     }
  11.     ...
  12.         Member* m = ...
  13.         if ( !m->type->isBuild() ){
  14.             m->type->build();
  15.         }
  16.     ...
  17.     built = true;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement