Skip to content

Commit c907d2d

Browse files
Applied clang-format
1 parent 6c80554 commit c907d2d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+6902
-6436
lines changed

src/api/cpp/backend/backend_aux.h

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -27,88 +27,88 @@
2727
// level direction or so.
2828
typedef std::vector<std::pair<std::string, std::string>> notif_list_t;
2929

30-
3130
struct nixlBackendOptionalArgs {
3231
// During postXfer, user might ask for a notification if supported
3332
nixl_blob_t notifMsg;
34-
bool hasNotif = false;
33+
bool hasNotif = false;
3534
nixl_blob_t customParam;
3635
};
3736

3837
using nixl_opt_b_args_t = nixlBackendOptionalArgs;
3938

40-
4139
// A base class to point to backend initialization data
4240
// User doesn't know about fields such as local_agent but can access it
4341
// after the backend is initialized by agent. If we needed to make it private
4442
// from the user, we should make nixlBackendEngine/nixlAgent friend classes.
4543
class nixlBackendInitParams {
46-
public:
47-
std::string localAgent;
44+
public:
45+
std::string localAgent;
4846

49-
nixl_backend_t type;
50-
nixl_b_params_t* customParams;
47+
nixl_backend_t type;
48+
nixl_b_params_t *customParams;
5149

52-
bool enableProgTh;
53-
nixlTime::us_t pthrDelay;
54-
nixl_thread_sync_t syncMode;
55-
bool enableTelemetry_;
50+
bool enableProgTh;
51+
nixlTime::us_t pthrDelay;
52+
nixl_thread_sync_t syncMode;
53+
bool enableTelemetry_;
5654
};
5755

5856
// Pure virtual class to have a common pointer type
5957
class nixlBackendReqH {
6058
public:
61-
nixlBackendReqH() { }
62-
virtual ~nixlBackendReqH() { }
59+
nixlBackendReqH() {}
60+
61+
virtual ~nixlBackendReqH() {}
6362
};
6463

6564
// Pure virtual class to have a common pointer type for different backendMD.
6665
class nixlBackendMD {
67-
protected:
68-
bool isPrivateMD;
66+
protected:
67+
bool isPrivateMD;
6968

70-
public:
71-
nixlBackendMD(bool isPrivate){
72-
isPrivateMD = isPrivate;
73-
}
69+
public:
70+
nixlBackendMD(bool isPrivate) {
71+
isPrivateMD = isPrivate;
72+
}
7473

75-
virtual ~nixlBackendMD(){
76-
}
74+
virtual ~nixlBackendMD() {}
7775
};
7876

7977
// Each backend can have different connection requirement
8078
// This class would include the required information to make
8179
// a connection to a remote node. Note that local information
8280
// is passed during the constructor and through BackendInitParams
8381
class nixlBackendConnMD {
84-
public:
82+
public:
8583
// And some other details
8684
std::string dstIpAddress;
87-
uint16_t dstPort;
85+
uint16_t dstPort;
8886
};
8987

9088
// A pointer required to a metadata object for backends next to each BasicDesc
9189
class nixlMetaDesc : public nixlBasicDesc {
92-
public:
93-
// To be able to point to any object
94-
nixlBackendMD* metadataP;
90+
public:
91+
// To be able to point to any object
92+
nixlBackendMD *metadataP;
9593

96-
// Reuse parent constructor without the metadata pointer
97-
using nixlBasicDesc::nixlBasicDesc;
94+
// Reuse parent constructor without the metadata pointer
95+
using nixlBasicDesc::nixlBasicDesc;
9896

99-
nixlMetaDesc() : nixlBasicDesc() { metadataP = nullptr; }
97+
nixlMetaDesc() : nixlBasicDesc() {
98+
metadataP = nullptr;
99+
}
100100

101-
// No serializer or deserializer, using parent not to expose the metadata
101+
// No serializer or deserializer, using parent not to expose the metadata
102102

103-
inline friend bool operator==(const nixlMetaDesc &lhs, const nixlMetaDesc &rhs) {
104-
return (((nixlBasicDesc)lhs == (nixlBasicDesc)rhs) &&
105-
(lhs.metadataP == rhs.metadataP));
106-
}
103+
inline friend bool
104+
operator==(const nixlMetaDesc &lhs, const nixlMetaDesc &rhs) {
105+
return (((nixlBasicDesc)lhs == (nixlBasicDesc)rhs) && (lhs.metadataP == rhs.metadataP));
106+
}
107107

108-
inline void print(const std::string &suffix) const {
109-
nixlBasicDesc::print(", Backend ptr val: " +
110-
std::to_string((uintptr_t)metadataP) + suffix);
111-
}
108+
inline void
109+
print(const std::string &suffix) const {
110+
nixlBasicDesc::print(", Backend ptr val: " + std::to_string((uintptr_t)metadataP) + suffix);
111+
}
112112
};
113113

114114
typedef nixlDescList<nixlMetaDesc> nixl_meta_dlist_t;

0 commit comments

Comments
 (0)