1/**
2 * Copyright (c) 2018 Inria
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
--- 112 unchanged lines hidden (view full) ---
121};
122
123/**
124 * A basic compression superblock.
125 * Contains the tag and a list of blocks associated to this superblock.
126 */
127class SuperBlk : public SectorBlk
128{
129 public:
130 SuperBlk() : SectorBlk() {}
131 SuperBlk(const SuperBlk&) = delete;
132 SuperBlk& operator=(const SuperBlk&) = delete;
133 ~SuperBlk() {};
134
135 /**
136 * Returns whether the superblock contains compressed blocks or not. By
137 * default, if not blocks are valid, the superblock is compressible.
138 *
139 * @return The compressibility state of the superblock.
140 */
141 bool isCompressed() const;
142};
143
144#endif //__MEM_CACHE_TAGS_SUPER_BLK_HH__
2 * Copyright (c) 2018 Inria
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
--- 112 unchanged lines hidden (view full) ---
121};
122
123/**
124 * A basic compression superblock.
125 * Contains the tag and a list of blocks associated to this superblock.
126 */
127class SuperBlk : public SectorBlk
128{
129 public:
130 SuperBlk() : SectorBlk() {}
131 SuperBlk(const SuperBlk&) = delete;
132 SuperBlk& operator=(const SuperBlk&) = delete;
133 ~SuperBlk() {};
134
135 /**
136 * Returns whether the superblock contains compressed blocks or not. By
137 * default, if not blocks are valid, the superblock is compressible.
138 *
139 * @return The compressibility state of the superblock.
140 */
141 bool isCompressed() const;
142};
143
144#endif //__MEM_CACHE_TAGS_SUPER_BLK_HH__