Topological syllogistic with continuous and closed functions