@@ -34,13 +34,13 @@ namespace eckit {
3434
3535namespace {
3636
37- auto initSentinel (const FamRegion& region, const std::string& objectName , const fam::size_t objectSize ) -> FamObject {
37+ auto initSentinel (const FamRegion& region, const std::string& object_name , const fam::size_t object_size ) -> FamObject {
3838 try {
39- return region.allocateObject (objectSize, objectName );
39+ return region.allocateObject (object_size, object_name );
4040 }
4141 catch (const AlreadyExists&) {
42- auto object = region.lookupObject (objectName );
43- ASSERT (object.size () == objectSize );
42+ auto object = region.lookupObject (object_name );
43+ ASSERT (object.size () == object_size );
4444 return object;
4545 }
4646}
@@ -57,11 +57,11 @@ FamList::FamList(const FamRegion& region, const Descriptor& desc) :
5757 ASSERT (region.index () == desc.region );
5858}
5959
60- FamList::FamList (const FamRegion& region, const std::string& listName ) :
60+ FamList::FamList (const FamRegion& region, const std::string& list_name ) :
6161 region_{region},
62- head_{initSentinel (region_, listName + " -list-head" , sizeof (FamListNode))},
63- tail_{initSentinel (region_, listName + " -list-tail" , sizeof (FamListNode))},
64- size_{initSentinel (region_, listName + " -list-size" , sizeof (size_type))} {
62+ head_{initSentinel (region_, list_name + " -list-head" , sizeof (FamListNode))},
63+ tail_{initSentinel (region_, list_name + " -list-tail" , sizeof (FamListNode))},
64+ size_{initSentinel (region_, list_name + " -list-size" , sizeof (size_type))} {
6565 // set head's next to tail's prev
6666 if (FamListNode::getNextOffset (head_) == 0 ) {
6767 head_.put (tail_.descriptor (), offsetof (FamListNode, next));
@@ -111,59 +111,59 @@ auto FamList::back() const -> Buffer {
111111// ----------------------------------------------------------------------------------------------------------------------
112112// modifiers
113113
114- void FamList::push_front (const void * data, const size_type length) {
114+ void FamList::pushFront (const void * data, const size_type length) {
115115 // allocate an object
116- auto newObject = region_.allocateObject (sizeof (FamListNode) + length);
116+ auto new_object = region_.allocateObject (sizeof (FamListNode) + length);
117117
118118 // set new object's previous to head
119- newObject .put (head_.descriptor (), offsetof (FamListNode, prev));
119+ new_object .put (head_.descriptor (), offsetof (FamListNode, prev));
120120
121121 // set head's next to new object
122- const auto prevOffset = head_.swap (offsetof (FamListNode, next.offset ), newObject .offset ());
123- const auto oldObject = region_.proxyObject (prevOffset );
122+ const auto prev_offset = head_.swap (offsetof (FamListNode, next.offset ), new_object .offset ());
123+ const auto old_object = region_.proxyObject (prev_offset );
124124
125125 // set old object's prev to new object
126- oldObject .put (newObject .descriptor (), offsetof (FamListNode, prev));
126+ old_object .put (new_object .descriptor (), offsetof (FamListNode, prev));
127127 // set new object's next to old object
128- newObject .put (oldObject .descriptor (), offsetof (FamListNode, next));
128+ new_object .put (old_object .descriptor (), offsetof (FamListNode, next));
129129
130130 // finally put the data
131- newObject .put (length, offsetof (FamListNode, length));
132- newObject .put (data, sizeof (FamListNode), length);
131+ new_object .put (length, offsetof (FamListNode, length));
132+ new_object .put (data, sizeof (FamListNode), length);
133133
134134 // increment size
135135 size_.add (0 , 1UL );
136136}
137137
138- void FamList::push_back (const void * data, const size_type length) {
138+ void FamList::pushBack (const void * data, const size_type length) {
139139 // allocate an object
140- auto newObject = region_.allocateObject (sizeof (FamListNode) + length);
140+ auto new_object = region_.allocateObject (sizeof (FamListNode) + length);
141141
142142 // set new object's next to tail
143- newObject .put (tail_.descriptor (), offsetof (FamListNode, next));
143+ new_object .put (tail_.descriptor (), offsetof (FamListNode, next));
144144
145145 // set tail's prev to new object
146- const auto prevOffset = tail_.swap (offsetof (FamListNode, prev.offset ), newObject .offset ());
147- const auto oldObject = region_.proxyObject (prevOffset );
146+ const auto prev_offset = tail_.swap (offsetof (FamListNode, prev.offset ), new_object .offset ());
147+ const auto old_object = region_.proxyObject (prev_offset );
148148
149149 // set old object's next to new object
150- oldObject .put (newObject .descriptor (), offsetof (FamListNode, next));
150+ old_object .put (new_object .descriptor (), offsetof (FamListNode, next));
151151 // set new object's prev to old object
152- newObject .put (oldObject .descriptor (), offsetof (FamListNode, prev));
152+ new_object .put (old_object .descriptor (), offsetof (FamListNode, prev));
153153
154154 // finally put the data
155- newObject .put (length, offsetof (FamListNode, length));
156- newObject .put (data, sizeof (FamListNode), length);
155+ new_object .put (length, offsetof (FamListNode, length));
156+ new_object .put (data, sizeof (FamListNode), length);
157157
158158 // increment size
159159 size_.add (0 , 1UL );
160160}
161161
162- void FamList::pop_front () {
162+ void FamList::popFront () {
163163 NOTIMP;
164164}
165165
166- void FamList::pop_back () {
166+ void FamList::popBack () {
167167 NOTIMP;
168168}
169169
0 commit comments