{"action":"created","comment":{"url":"https://api.github.com/repos/ribram/lim-db/pulls/comments/33845193","id":33845193,"diff_hunk":"@@ -1,8 +1,32 @@\n #ifndef BITMAP_HPP_\n #define BITMAP_HPP_\n \n-class Bitmap\n-{\n+#include \"base\\generic-type-definitions.hpp\"\n+\n+\n+class Bitmap {\n+\tpublic:\n+\t\t//Constructor\n+\t\tBitmap(INT64 length_of_array);\n+\n+\t\t//marks the sector at the specified index as being used\n+\t\tvoid set_bit(INT64 index);\n+\n+\t\t//marks the sector at the specified index as being unused\n+\t\tvoid clear_bit(INT64 index);\n+\n+\t\t//checks wether the sector at the specified index is used\n+\t\tbool is_bit_set(INT64 index);\n+\n+\t\t//counts the total number of sectors used\n+\t\tINT64 bitset_count();\n+\n+\tprotected:\n+\tprivate:\n+\t\t//length of the array that holds the usage of sectors\n+\t\tINT64 number_of_sectors_;","path":"src/base/bitmap.hpp","position":29,"original_position":29,"commit_id":"854fc05e01bc74a48d9f9fd1e71542d962691fa3","original_commit_id":"854fc05e01bc74a48d9f9fd1e71542d962691fa3","user":{"login":"remzi-ibram","id":6627387,"avatar_url":"https://avatars.githubusercontent.com/u/6627387?v=3","gravatar_id":"","url":"https://api.github.com/users/remzi-ibram","html_url":"https://github.com/remzi-ibram","followers_url":"https://api.github.com/users/remzi-ibram/followers","following_url":"https://api.github.com/users/remzi-ibram/following{/other_user}","gists_url":"https://api.github.com/users/remzi-ibram/gists{/gist_id}","starred_url":"https://api.github.com/users/remzi-ibram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remzi-ibram/subscriptions","organizations_url":"https://api.github.com/users/remzi-ibram/orgs","repos_url":"https://api.github.com/users/remzi-ibram/repos","events_url":"https://api.github.com/users/remzi-ibram/events{/privacy}","received_events_url":"https://api.github.com/users/remzi-ibram/received_events","type":"User","site_admin":false},"body":"rename as bit_number_ or n_bits_ or something similar","created_at":"2015-07-03T07:40:45Z","updated_at":"2015-07-03T07:40:45Z","html_url":"https://github.com/ribram/lim-db/pull/1#discussion_r33845193","pull_request_url":"https://api.github.com/repos/ribram/lim-db/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ribram/lim-db/pulls/comments/33845193"},"html":{"href":"https://github.com/ribram/lim-db/pull/1#discussion_r33845193"},"pull_request":{"href":"https://api.github.com/repos/ribram/lim-db/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ribram/lim-db/pulls/1","id":39152147,"html_url":"https://github.com/ribram/lim-db/pull/1","diff_url":"https://github.com/ribram/lim-db/pull/1.diff","patch_url":"https://github.com/ribram/lim-db/pull/1.patch","issue_url":"https://api.github.com/repos/ribram/lim-db/issues/1","number":1,"state":"open","locked":false,"title":"bitmap","user":{"login":"Costin11","id":13133282,"avatar_url":"https://avatars.githubusercontent.com/u/13133282?v=3","gravatar_id":"","url":"https://api.github.com/users/Costin11","html_url":"https://github.com/Costin11","followers_url":"https://api.github.com/users/Costin11/followers","following_url":"https://api.github.com/users/Costin11/following{/other_user}","gists_url":"https://api.github.com/users/Costin11/gists{/gist_id}","starred_url":"https://api.github.com/users/Costin11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Costin11/subscriptions","organizations_url":"https://api.github.com/users/Costin11/orgs","repos_url":"https://api.github.com/users/Costin11/repos","events_url":"https://api.github.com/users/Costin11/events{/privacy}","received_events_url":"https://api.github.com/users/Costin11/received_events","type":"User","site_admin":false},"body":"are o problema cu int64. ( 1<<x  ) nu returneaza neaparat o valuare pe 64 de biti.\r\n\r\nnu merge clear_bit din cauza asta","created_at":"2015-07-03T07:34:58Z","updated_at":"2015-07-03T07:40:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2db14e3a804e58e1cf89ff06bf8c924f53c1c6c4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ribram/lim-db/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ribram/lim-db/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ribram/lim-db/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ribram/lim-db/issues/1/comments","statuses_url":"https://api.github.com/repos/ribram/lim-db/statuses/854fc05e01bc74a48d9f9fd1e71542d962691fa3","head":{"label":"Costin11:master","ref":"master","sha":"854fc05e01bc74a48d9f9fd1e71542d962691fa3","user":{"login":"Costin11","id":13133282,"avatar_url":"https://avatars.githubusercontent.com/u/13133282?v=3","gravatar_id":"","url":"https://api.github.com/users/Costin11","html_url":"https://github.com/Costin11","followers_url":"https://api.github.com/users/Costin11/followers","following_url":"https://api.github.com/users/Costin11/following{/other_user}","gists_url":"https://api.github.com/users/Costin11/gists{/gist_id}","starred_url":"https://api.github.com/users/Costin11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Costin11/subscriptions","organizations_url":"https://api.github.com/users/Costin11/orgs","repos_url":"https://api.github.com/users/Costin11/repos","events_url":"https://api.github.com/users/Costin11/events{/privacy}","received_events_url":"https://api.github.com/users/Costin11/received_events","type":"User","site_admin":false},"repo":{"id":38368001,"name":"lim-db","full_name":"Costin11/lim-db","owner":{"login":"Costin11","id":13133282,"avatar_url":"https://avatars.githubusercontent.com/u/13133282?v=3","gravatar_id":"","url":"https://api.github.com/users/Costin11","html_url":"https://github.com/Costin11","followers_url":"https://api.github.com/users/Costin11/followers","following_url":"https://api.github.com/users/Costin11/following{/other_user}","gists_url":"https://api.github.com/users/Costin11/gists{/gist_id}","starred_url":"https://api.github.com/users/Costin11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Costin11/subscriptions","organizations_url":"https://api.github.com/users/Costin11/orgs","repos_url":"https://api.github.com/users/Costin11/repos","events_url":"https://api.github.com/users/Costin11/events{/privacy}","received_events_url":"https://api.github.com/users/Costin11/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Costin11/lim-db","description":"Light In-Memory Database Management System","fork":true,"url":"https://api.github.com/repos/Costin11/lim-db","forks_url":"https://api.github.com/repos/Costin11/lim-db/forks","keys_url":"https://api.github.com/repos/Costin11/lim-db/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Costin11/lim-db/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Costin11/lim-db/teams","hooks_url":"https://api.github.com/repos/Costin11/lim-db/hooks","issue_events_url":"https://api.github.com/repos/Costin11/lim-db/issues/events{/number}","events_url":"https://api.github.com/repos/Costin11/lim-db/events","assignees_url":"https://api.github.com/repos/Costin11/lim-db/assignees{/user}","branches_url":"https://api.github.com/repos/Costin11/lim-db/branches{/branch}","tags_url":"https://api.github.com/repos/Costin11/lim-db/tags","blobs_url":"https://api.github.com/repos/Costin11/lim-db/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Costin11/lim-db/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Costin11/lim-db/git/refs{/sha}","trees_url":"https://api.github.com/repos/Costin11/lim-db/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Costin11/lim-db/statuses/{sha}","languages_url":"https://api.github.com/repos/Costin11/lim-db/languages","stargazers_url":"https://api.github.com/repos/Costin11/lim-db/stargazers","contributors_url":"https://api.github.com/repos/Costin11/lim-db/contributors","subscribers_url":"https://api.github.com/repos/Costin11/lim-db/subscribers","subscription_url":"https://api.github.com/repos/Costin11/lim-db/subscription","commits_url":"https://api.github.com/repos/Costin11/lim-db/commits{/sha}","git_commits_url":"https://api.github.com/repos/Costin11/lim-db/git/commits{/sha}","comments_url":"https://api.github.com/repos/Costin11/lim-db/comments{/number}","issue_comment_url":"https://api.github.com/repos/Costin11/lim-db/issues/comments{/number}","contents_url":"https://api.github.com/repos/Costin11/lim-db/contents/{+path}","compare_url":"https://api.github.com/repos/Costin11/lim-db/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Costin11/lim-db/merges","archive_url":"https://api.github.com/repos/Costin11/lim-db/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Costin11/lim-db/downloads","issues_url":"https://api.github.com/repos/Costin11/lim-db/issues{/number}","pulls_url":"https://api.github.com/repos/Costin11/lim-db/pulls{/number}","milestones_url":"https://api.github.com/repos/Costin11/lim-db/milestones{/number}","notifications_url":"https://api.github.com/repos/Costin11/lim-db/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Costin11/lim-db/labels{/name}","releases_url":"https://api.github.com/repos/Costin11/lim-db/releases{/id}","created_at":"2015-07-01T11:40:47Z","updated_at":"2015-07-01T11:40:47Z","pushed_at":"2015-07-03T07:29:35Z","git_url":"git://github.com/Costin11/lim-db.git","ssh_url":"git@github.com:Costin11/lim-db.git","clone_url":"https://github.com/Costin11/lim-db.git","svn_url":"https://github.com/Costin11/lim-db","homepage":null,"size":200,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ribram:master","ref":"master","sha":"6ab272ea68d805a127f4c2fafccc260e114cb5ba","user":{"login":"ribram","id":12672652,"avatar_url":"https://avatars.githubusercontent.com/u/12672652?v=3","gravatar_id":"","url":"https://api.github.com/users/ribram","html_url":"https://github.com/ribram","followers_url":"https://api.github.com/users/ribram/followers","following_url":"https://api.github.com/users/ribram/following{/other_user}","gists_url":"https://api.github.com/users/ribram/gists{/gist_id}","starred_url":"https://api.github.com/users/ribram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ribram/subscriptions","organizations_url":"https://api.github.com/users/ribram/orgs","repos_url":"https://api.github.com/users/ribram/repos","events_url":"https://api.github.com/users/ribram/events{/privacy}","received_events_url":"https://api.github.com/users/ribram/received_events","type":"User","site_admin":false},"repo":{"id":36554240,"name":"lim-db","full_name":"ribram/lim-db","owner":{"login":"ribram","id":12672652,"avatar_url":"https://avatars.githubusercontent.com/u/12672652?v=3","gravatar_id":"","url":"https://api.github.com/users/ribram","html_url":"https://github.com/ribram","followers_url":"https://api.github.com/users/ribram/followers","following_url":"https://api.github.com/users/ribram/following{/other_user}","gists_url":"https://api.github.com/users/ribram/gists{/gist_id}","starred_url":"https://api.github.com/users/ribram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ribram/subscriptions","organizations_url":"https://api.github.com/users/ribram/orgs","repos_url":"https://api.github.com/users/ribram/repos","events_url":"https://api.github.com/users/ribram/events{/privacy}","received_events_url":"https://api.github.com/users/ribram/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ribram/lim-db","description":"Light In-Memory Database Management System","fork":false,"url":"https://api.github.com/repos/ribram/lim-db","forks_url":"https://api.github.com/repos/ribram/lim-db/forks","keys_url":"https://api.github.com/repos/ribram/lim-db/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ribram/lim-db/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ribram/lim-db/teams","hooks_url":"https://api.github.com/repos/ribram/lim-db/hooks","issue_events_url":"https://api.github.com/repos/ribram/lim-db/issues/events{/number}","events_url":"https://api.github.com/repos/ribram/lim-db/events","assignees_url":"https://api.github.com/repos/ribram/lim-db/assignees{/user}","branches_url":"https://api.github.com/repos/ribram/lim-db/branches{/branch}","tags_url":"https://api.github.com/repos/ribram/lim-db/tags","blobs_url":"https://api.github.com/repos/ribram/lim-db/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ribram/lim-db/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ribram/lim-db/git/refs{/sha}","trees_url":"https://api.github.com/repos/ribram/lim-db/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ribram/lim-db/statuses/{sha}","languages_url":"https://api.github.com/repos/ribram/lim-db/languages","stargazers_url":"https://api.github.com/repos/ribram/lim-db/stargazers","contributors_url":"https://api.github.com/repos/ribram/lim-db/contributors","subscribers_url":"https://api.github.com/repos/ribram/lim-db/subscribers","subscription_url":"https://api.github.com/repos/ribram/lim-db/subscription","commits_url":"https://api.github.com/repos/ribram/lim-db/commits{/sha}","git_commits_url":"https://api.github.com/repos/ribram/lim-db/git/commits{/sha}","comments_url":"https://api.github.com/repos/ribram/lim-db/comments{/number}","issue_comment_url":"https://api.github.com/repos/ribram/lim-db/issues/comments{/number}","contents_url":"https://api.github.com/repos/ribram/lim-db/contents/{+path}","compare_url":"https://api.github.com/repos/ribram/lim-db/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ribram/lim-db/merges","archive_url":"https://api.github.com/repos/ribram/lim-db/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ribram/lim-db/downloads","issues_url":"https://api.github.com/repos/ribram/lim-db/issues{/number}","pulls_url":"https://api.github.com/repos/ribram/lim-db/pulls{/number}","milestones_url":"https://api.github.com/repos/ribram/lim-db/milestones{/number}","notifications_url":"https://api.github.com/repos/ribram/lim-db/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ribram/lim-db/labels{/name}","releases_url":"https://api.github.com/repos/ribram/lim-db/releases{/id}","created_at":"2015-05-30T10:48:09Z","updated_at":"2015-06-03T09:19:40Z","pushed_at":"2015-07-03T07:34:59Z","git_url":"git://github.com/ribram/lim-db.git","ssh_url":"git@github.com:ribram/lim-db.git","clone_url":"https://github.com/ribram/lim-db.git","svn_url":"https://github.com/ribram/lim-db","homepage":null,"size":200,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ribram/lim-db/pulls/1"},"html":{"href":"https://github.com/ribram/lim-db/pull/1"},"issue":{"href":"https://api.github.com/repos/ribram/lim-db/issues/1"},"comments":{"href":"https://api.github.com/repos/ribram/lim-db/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ribram/lim-db/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ribram/lim-db/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ribram/lim-db/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ribram/lim-db/statuses/854fc05e01bc74a48d9f9fd1e71542d962691fa3"}}}}