forked from valentina-kustikova/mp2-lab1-bitfield
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kirill Kornyakov
committed
Sep 14, 2015
1 parent
95da6b8
commit ad9d7a6
Showing
1 changed file
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,86 @@ | ||
// ÍÍÃÓ, ÂÌÊ, Êóðñ "Ìåòîäû ïðîãðàììèðîâàíèÿ-2", Ñ++, ÎÎÏ | ||
// ННГУ, ВМК, Курс "Методы программирования-2", С++, ООП | ||
// | ||
// tbitfield.cpp - Copyright (c) Ãåðãåëü Â.Ï. 07.05.2001 | ||
// Ïåðåðàáîòàíî äëÿ Microsoft Visual Studio 2008 Ñûñîåâûì À.Â. (19.04.2015) | ||
// tbitfield.cpp - Copyright (c) Гергель В.П. 07.05.2001 | ||
// Переработано для Microsoft Visual Studio 2008 Сысоевым А.В. (19.04.2015) | ||
// | ||
// Áèòîâîå ïîëå | ||
// Битовое поле | ||
|
||
#include "tbitfield.h" | ||
|
||
TBitField::TBitField(int len) | ||
{ | ||
} | ||
|
||
TBitField::TBitField(const TBitField &bf) // êîíñòðóêòîð êîïèðîâàíèÿ | ||
TBitField::TBitField(const TBitField &bf) // конструктор копирования | ||
{ | ||
} | ||
|
||
TBitField::~TBitField() | ||
{ | ||
} | ||
|
||
int TBitField::GetMemIndex(const int n) const // èíäåêñ Ìåì äëÿ áèòà n | ||
int TBitField::GetMemIndex(const int n) const // индекс Мем для бита n | ||
{ | ||
} | ||
|
||
TELEM TBitField::GetMemMask(const int n) const // áèòîâàÿ ìàñêà äëÿ áèòà n | ||
TELEM TBitField::GetMemMask(const int n) const // битовая маска для бита n | ||
{ | ||
} | ||
|
||
// äîñòóï ê áèòàì áèòîâîãî ïîëÿ | ||
// доступ к битам битового поля | ||
|
||
int TBitField::GetLength(void) const // ïîëó÷èòü äëèíó (ê-âî áèòîâ) | ||
int TBitField::GetLength(void) const // получить длину (к-во битов) | ||
{ | ||
return 0; | ||
} | ||
|
||
void TBitField::SetBit(const int n) // óñòàíîâèòü áèò | ||
void TBitField::SetBit(const int n) // установить бит | ||
{ | ||
} | ||
|
||
void TBitField::ClrBit(const int n) // î÷èñòèòü áèò | ||
void TBitField::ClrBit(const int n) // очистить бит | ||
{ | ||
} | ||
|
||
int TBitField::GetBit(const int n) const // ïîëó÷èòü çíà÷åíèå áèòà | ||
int TBitField::GetBit(const int n) const // получить значение бита | ||
{ | ||
return 0; | ||
} | ||
|
||
// áèòîâûå îïåðàöèè | ||
// битовые операции | ||
|
||
TBitField& TBitField::operator=(const TBitField &bf) // ïðèñâàèâàíèå | ||
TBitField& TBitField::operator=(const TBitField &bf) // присваивание | ||
{ | ||
} | ||
|
||
int TBitField::operator==(const TBitField &bf) const // ñðàâíåíèå | ||
int TBitField::operator==(const TBitField &bf) const // сравнение | ||
{ | ||
return 0; | ||
} | ||
|
||
int TBitField::operator!=(const TBitField &bf) const // ñðàâíåíèå | ||
int TBitField::operator!=(const TBitField &bf) const // сравнение | ||
{ | ||
return 0; | ||
} | ||
|
||
TBitField TBitField::operator|(const TBitField &bf) // îïåðàöèÿ "èëè" | ||
TBitField TBitField::operator|(const TBitField &bf) // операция "или" | ||
{ | ||
} | ||
|
||
TBitField TBitField::operator&(const TBitField &bf) // îïåðàöèÿ "è" | ||
TBitField TBitField::operator&(const TBitField &bf) // операция "и" | ||
{ | ||
} | ||
|
||
TBitField TBitField::operator~(void) // îòðèöàíèå | ||
TBitField TBitField::operator~(void) // отрицание | ||
{ | ||
} | ||
|
||
// ââîä/âûâîä | ||
// ввод/вывод | ||
|
||
istream &operator>>(istream &istr, TBitField &bf) // ââîä | ||
istream &operator>>(istream &istr, TBitField &bf) // ввод | ||
{ | ||
} | ||
|
||
ostream &operator<<(ostream &ostr, const TBitField &bf) // âûâîä | ||
ostream &operator<<(ostream &ostr, const TBitField &bf) // вывод | ||
{ | ||
} |