-
Notifications
You must be signed in to change notification settings - Fork 2
/
Pagina.cpp
32 lines (23 loc) · 849 Bytes
/
Pagina.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "Pagina.h"
using namespace std;
Pagina::Pagina(int id, int tamanio, vector<int> ip_comp_origen, vector<int> ip_comp_destino):id(id),tamanio(tamanio),ip_comp_origen(ip_comp_origen),ip_comp_destino(ip_comp_destino){}
Pagina::~Pagina()
{}
int Pagina::obtener_id(){
return this->id;
}
int Pagina::obtener_tamanio(){
return this->tamanio;
}
vector<int> Pagina::obtener_ip_comp_origen(){
return this->ip_comp_origen;
}
vector<int> Pagina::obtener_ip_comp_destino(){
return this->ip_comp_destino;
}
void Pagina::imprimir(void){
cout<<"Pagina: "<<this->obtener_id()<<endl;
cout<<"tamanio: "<<this->obtener_tamanio()<<endl;
cout<<"ip origen: "<<this->obtener_ip_comp_origen()[0]<<"--"<<this->obtener_ip_comp_origen()[1]<<endl;
cout<<"ip destino: "<<this->obtener_ip_comp_destino()[0]<<"--"<<this->obtener_ip_comp_destino()[1]<<endl;
}