Skip to content

Commit d291c11

Browse files
committed
Swift递归枚举与树
1 parent 48990bb commit d291c11

3 files changed

Lines changed: 441 additions & 0 deletions

File tree

Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
9BBAB5CF1C44A36A003D6A4B /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BBAB5CE1C44A36A003D6A4B /* main.swift */; };
11+
9BCFBB7E1C44C89300F7ED4B /* Tree.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BCFBB7D1C44C89300F7ED4B /* Tree.swift */; };
12+
/* End PBXBuildFile section */
13+
14+
/* Begin PBXCopyFilesBuildPhase section */
15+
9BBAB5C91C44A36A003D6A4B /* CopyFiles */ = {
16+
isa = PBXCopyFilesBuildPhase;
17+
buildActionMask = 2147483647;
18+
dstPath = /usr/share/man/man1/;
19+
dstSubfolderSpec = 0;
20+
files = (
21+
);
22+
runOnlyForDeploymentPostprocessing = 1;
23+
};
24+
/* End PBXCopyFilesBuildPhase section */
25+
26+
/* Begin PBXFileReference section */
27+
9BBAB5CB1C44A36A003D6A4B /* Enum */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Enum; sourceTree = BUILT_PRODUCTS_DIR; };
28+
9BBAB5CE1C44A36A003D6A4B /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
29+
9BCFBB7D1C44C89300F7ED4B /* Tree.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Tree.swift; sourceTree = "<group>"; };
30+
/* End PBXFileReference section */
31+
32+
/* Begin PBXFrameworksBuildPhase section */
33+
9BBAB5C81C44A36A003D6A4B /* Frameworks */ = {
34+
isa = PBXFrameworksBuildPhase;
35+
buildActionMask = 2147483647;
36+
files = (
37+
);
38+
runOnlyForDeploymentPostprocessing = 0;
39+
};
40+
/* End PBXFrameworksBuildPhase section */
41+
42+
/* Begin PBXGroup section */
43+
9BBAB5C21C44A36A003D6A4B = {
44+
isa = PBXGroup;
45+
children = (
46+
9BBAB5CD1C44A36A003D6A4B /* Enum */,
47+
9BBAB5CC1C44A36A003D6A4B /* Products */,
48+
);
49+
sourceTree = "<group>";
50+
};
51+
9BBAB5CC1C44A36A003D6A4B /* Products */ = {
52+
isa = PBXGroup;
53+
children = (
54+
9BBAB5CB1C44A36A003D6A4B /* Enum */,
55+
);
56+
name = Products;
57+
sourceTree = "<group>";
58+
};
59+
9BBAB5CD1C44A36A003D6A4B /* Enum */ = {
60+
isa = PBXGroup;
61+
children = (
62+
9BBAB5CE1C44A36A003D6A4B /* main.swift */,
63+
9BCFBB7D1C44C89300F7ED4B /* Tree.swift */,
64+
);
65+
path = Enum;
66+
sourceTree = "<group>";
67+
};
68+
/* End PBXGroup section */
69+
70+
/* Begin PBXNativeTarget section */
71+
9BBAB5CA1C44A36A003D6A4B /* Enum */ = {
72+
isa = PBXNativeTarget;
73+
buildConfigurationList = 9BBAB5D21C44A36A003D6A4B /* Build configuration list for PBXNativeTarget "Enum" */;
74+
buildPhases = (
75+
9BBAB5C71C44A36A003D6A4B /* Sources */,
76+
9BBAB5C81C44A36A003D6A4B /* Frameworks */,
77+
9BBAB5C91C44A36A003D6A4B /* CopyFiles */,
78+
);
79+
buildRules = (
80+
);
81+
dependencies = (
82+
);
83+
name = Enum;
84+
productName = Enum;
85+
productReference = 9BBAB5CB1C44A36A003D6A4B /* Enum */;
86+
productType = "com.apple.product-type.tool";
87+
};
88+
/* End PBXNativeTarget section */
89+
90+
/* Begin PBXProject section */
91+
9BBAB5C31C44A36A003D6A4B /* Project object */ = {
92+
isa = PBXProject;
93+
attributes = {
94+
LastSwiftUpdateCheck = 0720;
95+
LastUpgradeCheck = 0720;
96+
ORGANIZATIONNAME = "张星宇";
97+
TargetAttributes = {
98+
9BBAB5CA1C44A36A003D6A4B = {
99+
CreatedOnToolsVersion = 7.2;
100+
};
101+
};
102+
};
103+
buildConfigurationList = 9BBAB5C61C44A36A003D6A4B /* Build configuration list for PBXProject "Enum" */;
104+
compatibilityVersion = "Xcode 3.2";
105+
developmentRegion = English;
106+
hasScannedForEncodings = 0;
107+
knownRegions = (
108+
en,
109+
);
110+
mainGroup = 9BBAB5C21C44A36A003D6A4B;
111+
productRefGroup = 9BBAB5CC1C44A36A003D6A4B /* Products */;
112+
projectDirPath = "";
113+
projectRoot = "";
114+
targets = (
115+
9BBAB5CA1C44A36A003D6A4B /* Enum */,
116+
);
117+
};
118+
/* End PBXProject section */
119+
120+
/* Begin PBXSourcesBuildPhase section */
121+
9BBAB5C71C44A36A003D6A4B /* Sources */ = {
122+
isa = PBXSourcesBuildPhase;
123+
buildActionMask = 2147483647;
124+
files = (
125+
9BBAB5CF1C44A36A003D6A4B /* main.swift in Sources */,
126+
9BCFBB7E1C44C89300F7ED4B /* Tree.swift in Sources */,
127+
);
128+
runOnlyForDeploymentPostprocessing = 0;
129+
};
130+
/* End PBXSourcesBuildPhase section */
131+
132+
/* Begin XCBuildConfiguration section */
133+
9BBAB5D01C44A36A003D6A4B /* Debug */ = {
134+
isa = XCBuildConfiguration;
135+
buildSettings = {
136+
ALWAYS_SEARCH_USER_PATHS = NO;
137+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
138+
CLANG_CXX_LIBRARY = "libc++";
139+
CLANG_ENABLE_MODULES = YES;
140+
CLANG_ENABLE_OBJC_ARC = YES;
141+
CLANG_WARN_BOOL_CONVERSION = YES;
142+
CLANG_WARN_CONSTANT_CONVERSION = YES;
143+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
144+
CLANG_WARN_EMPTY_BODY = YES;
145+
CLANG_WARN_ENUM_CONVERSION = YES;
146+
CLANG_WARN_INT_CONVERSION = YES;
147+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
148+
CLANG_WARN_UNREACHABLE_CODE = YES;
149+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
150+
CODE_SIGN_IDENTITY = "-";
151+
COPY_PHASE_STRIP = NO;
152+
DEBUG_INFORMATION_FORMAT = dwarf;
153+
ENABLE_STRICT_OBJC_MSGSEND = YES;
154+
ENABLE_TESTABILITY = YES;
155+
GCC_C_LANGUAGE_STANDARD = gnu99;
156+
GCC_DYNAMIC_NO_PIC = NO;
157+
GCC_NO_COMMON_BLOCKS = YES;
158+
GCC_OPTIMIZATION_LEVEL = 0;
159+
GCC_PREPROCESSOR_DEFINITIONS = (
160+
"DEBUG=1",
161+
"$(inherited)",
162+
);
163+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
164+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
165+
GCC_WARN_UNDECLARED_SELECTOR = YES;
166+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
167+
GCC_WARN_UNUSED_FUNCTION = YES;
168+
GCC_WARN_UNUSED_VARIABLE = YES;
169+
MACOSX_DEPLOYMENT_TARGET = 10.11;
170+
MTL_ENABLE_DEBUG_INFO = YES;
171+
ONLY_ACTIVE_ARCH = YES;
172+
SDKROOT = macosx;
173+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
174+
};
175+
name = Debug;
176+
};
177+
9BBAB5D11C44A36A003D6A4B /* Release */ = {
178+
isa = XCBuildConfiguration;
179+
buildSettings = {
180+
ALWAYS_SEARCH_USER_PATHS = NO;
181+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
182+
CLANG_CXX_LIBRARY = "libc++";
183+
CLANG_ENABLE_MODULES = YES;
184+
CLANG_ENABLE_OBJC_ARC = YES;
185+
CLANG_WARN_BOOL_CONVERSION = YES;
186+
CLANG_WARN_CONSTANT_CONVERSION = YES;
187+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
188+
CLANG_WARN_EMPTY_BODY = YES;
189+
CLANG_WARN_ENUM_CONVERSION = YES;
190+
CLANG_WARN_INT_CONVERSION = YES;
191+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
192+
CLANG_WARN_UNREACHABLE_CODE = YES;
193+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
194+
CODE_SIGN_IDENTITY = "-";
195+
COPY_PHASE_STRIP = NO;
196+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
197+
ENABLE_NS_ASSERTIONS = NO;
198+
ENABLE_STRICT_OBJC_MSGSEND = YES;
199+
GCC_C_LANGUAGE_STANDARD = gnu99;
200+
GCC_NO_COMMON_BLOCKS = YES;
201+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
202+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
203+
GCC_WARN_UNDECLARED_SELECTOR = YES;
204+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
205+
GCC_WARN_UNUSED_FUNCTION = YES;
206+
GCC_WARN_UNUSED_VARIABLE = YES;
207+
MACOSX_DEPLOYMENT_TARGET = 10.11;
208+
MTL_ENABLE_DEBUG_INFO = NO;
209+
SDKROOT = macosx;
210+
};
211+
name = Release;
212+
};
213+
9BBAB5D31C44A36A003D6A4B /* Debug */ = {
214+
isa = XCBuildConfiguration;
215+
buildSettings = {
216+
PRODUCT_NAME = "$(TARGET_NAME)";
217+
};
218+
name = Debug;
219+
};
220+
9BBAB5D41C44A36A003D6A4B /* Release */ = {
221+
isa = XCBuildConfiguration;
222+
buildSettings = {
223+
PRODUCT_NAME = "$(TARGET_NAME)";
224+
};
225+
name = Release;
226+
};
227+
/* End XCBuildConfiguration section */
228+
229+
/* Begin XCConfigurationList section */
230+
9BBAB5C61C44A36A003D6A4B /* Build configuration list for PBXProject "Enum" */ = {
231+
isa = XCConfigurationList;
232+
buildConfigurations = (
233+
9BBAB5D01C44A36A003D6A4B /* Debug */,
234+
9BBAB5D11C44A36A003D6A4B /* Release */,
235+
);
236+
defaultConfigurationIsVisible = 0;
237+
defaultConfigurationName = Release;
238+
};
239+
9BBAB5D21C44A36A003D6A4B /* Build configuration list for PBXNativeTarget "Enum" */ = {
240+
isa = XCConfigurationList;
241+
buildConfigurations = (
242+
9BBAB5D31C44A36A003D6A4B /* Debug */,
243+
9BBAB5D41C44A36A003D6A4B /* Release */,
244+
);
245+
defaultConfigurationIsVisible = 0;
246+
defaultConfigurationName = Release;
247+
};
248+
/* End XCConfigurationList section */
249+
};
250+
rootObject = 9BBAB5C31C44A36A003D6A4B /* Project object */;
251+
}

0 commit comments

Comments
 (0)