use "const std::vector<TableIndex*>&" to avoid copying.