示例#1
0
文件: list.cpp 项目: AdamSpitz/self
void List::addCommentAnnotations(Scanner* scanner) {
  for (ListElement* e = Head(); e; e = e->Next())
   e->Data()->addCommentAnnotations(scanner);
}
示例#2
0
文件: list.cpp 项目: AdamSpitz/self
void List::oops_do(oopsDoFn f) {
  for (ListElement* e = Head(); e; e = e->Next())
    e->oops_do(f);
}
示例#3
0
文件: list.cpp 项目: AdamSpitz/self
void List::PrintSeparatedBy(char* sep) {
  for (ListElement* e = Head(); e; e = e->Next()) {
    e->Print();
    if (sep) lprintf("%s", sep);
  }
}