Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (22 sloc) 0.63 kB
#ifndef BLOCK_H_
#define BLOCK_H_
class Block {
public:
Block(int index, int counter, int block_size);
void set_block(int counter, int tag, Block* new_block);
void set_tag(int tag);
void set_word(int index, int value);
int get_tag(void);
int get_index(void);
int get_word(int index);
int get_counter(void);
void set_counter(int counter);
~Block();
private:
int* words; // Array of words (integers)
int counter; // Unique counter of the block
int index; // Index in the array.
int tag; // Tag bits of the block
int num_words; // Number of words present in the block
};
#endif /* BLOCK_H_ */
Jump to Line
Something went wrong with that request. Please try again.