ObjFW
OFMutableTriple.h
1 /*
2  * Copyright (c) 2008-2023 Jonathan Schleifer <js@nil.im>
3  *
4  * All rights reserved.
5  *
6  * This file is part of ObjFW. It may be distributed under the terms of the
7  * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
8  * the packaging of this file.
9  *
10  * Alternatively, it may be distributed under the terms of the GNU General
11  * Public License, either version 2 or 3, which can be found in the file
12  * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
13  * file.
14  */
15 
16 #import "OFTriple.h"
17 
18 OF_ASSUME_NONNULL_BEGIN
19 
25 @interface OFMutableTriple OF_GENERIC(FirstType, SecondType, ThirdType):
26  OFTriple OF_GENERIC(FirstType, SecondType, ThirdType)
27 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
28 # define FirstType id
29 # define SecondType id
30 # define ThirdType id
31 #endif
32 {
33  OF_RESERVE_IVARS(OFMutableTriple, 4)
34 }
35 
39 @property (readwrite, nonatomic, retain) FirstType firstObject;
40 
44 @property (readwrite, nonatomic, retain) SecondType secondObject;
45 
49 @property (readwrite, nonatomic, retain) ThirdType thirdObject;
50 
54 - (void)makeImmutable;
55 #if !defined(OF_HAVE_GENERICS) && !defined(DOXYGEN)
56 # undef FirstType
57 # undef SecondType
58 # undef ThirdType
59 #endif
60 @end
61 
62 OF_ASSUME_NONNULL_END
A class for storing a triple of three objects.
Definition: OFMutableTriple.h:25
A class for storing a triple of three objects.
Definition: OFTriple.h:25