#include <CommModule.h>
Public Member Functions | |
| CommNode () | |
| Default constructor. | |
| CommNode (int id) | |
| Id constructor. | |
| CommNode (int id, int task) | |
| Id-task constructor. | |
| CommNode (int id, string taskname) | |
| Id-task constructor. | |
| CommNode (const CommNode &n) | |
| Copy constructor. | |
| CommNode & | operator= (const CommNode &n) |
| Assigment operator =. | |
| bool | addId (const int id) |
| Push back a recipient id. | |
| bool | addTask (const int task) |
| Push back a recipient task. | |
| bool | addTaskName (const string taskname) |
| Push back a recipient task. | |
| bool | deleteId (const int id) |
| Delete an Id from the recipient. | |
| bool | deleteTask (const int task) |
| Delete a task from the recipient. | |
| bool | deleteTaskName (const string taskname) |
| Delete a task from the recipient. | |
| vector< int > | ids () |
| Get the vector of ids. | |
| vector< int > | tasks () |
| Get the vector of task numbers. | |
| vector< string > | taskNames () |
| Get the vector of task names. | |
| int | getId (int i) |
| Get the i-th id of the ids vector. | |
| int | getIdsSize () |
| Get the size of the ids vector. | |
| int | getTask (int i) |
| Get the i-th task number. | |
| int | getTasksSize () |
| Get the size of the task vector. | |
| string | getTaskNames (int i) |
| Get the i-th task name. | |
| int | getTaskNamesSize () |
| Get the size of the taskNames vector. | |
| string | print () |
| Print function. | |
Friends | |
| class | boost::serialization::access |
| MipResources::CommNode::CommNode | ( | ) |
Default constructor.
This constructor doesn't do anything.
| MipResources::CommNode::CommNode | ( | int | id | ) |
Id constructor.
This constructor allows to specify the id of the commNode.
| id | Integer that is added to the vector of ids of the CommNode. |
| MipResources::CommNode::CommNode | ( | int | id, | |
| int | task | |||
| ) |
| MipResources::CommNode::CommNode | ( | int | id, | |
| string | taskname | |||
| ) |
| MipResources::CommNode::CommNode | ( | const CommNode & | n | ) |
| bool MipResources::CommNode::addId | ( | const int | id | ) | [inline] |
Push back a recipient id.
This function adds the specified id at the end of the vector of ids of the CommNode.
| id | recipient task to add |
| bool MipResources::CommNode::addTask | ( | const int | task | ) | [inline] |
Push back a recipient task.
This function adds the specified task number at the end of the vector of ids of the CommNode.
| task | recipient task to add |
| bool MipResources::CommNode::addTaskName | ( | const string | taskname | ) | [inline] |
Push back a recipient task.
This function adds the specified task number at the end of the vector of ids of the CommNode.
| task | recipient task to add |
| bool MipResources::CommNode::deleteId | ( | const int | id | ) |
Delete an Id from the recipient.
| [in] | id | the id of the recipient to delete |
| bool MipResources::CommNode::deleteTask | ( | const int | task | ) |
Delete a task from the recipient.
| task | Recipient task to delete. |
| bool MipResources::CommNode::deleteTaskName | ( | const string | taskname | ) |
Delete a task from the recipient.
| task | Recipient task to delete. |
| vector< int > MipResources::CommNode::ids | ( | ) |
Get the vector of ids.
| vector< int > MipResources::CommNode::tasks | ( | ) |
Get the vector of task numbers.
| vector< string > MipResources::CommNode::taskNames | ( | ) |
Get the vector of task names.
| int MipResources::CommNode::getId | ( | int | i | ) |
Get the i-th id of the ids vector.
| i | index of the requested id. |
| int MipResources::CommNode::getIdsSize | ( | ) |
Get the size of the ids vector.
| int MipResources::CommNode::getTask | ( | int | i | ) |
Get the i-th task number.
| i | index of the requested task number. |
| int MipResources::CommNode::getTasksSize | ( | ) |
Get the size of the task vector.
| string MipResources::CommNode::getTaskNames | ( | int | i | ) |
Get the i-th task name.
| i | index of the requested task name. |
| int MipResources::CommNode::getTaskNamesSize | ( | ) |
Get the size of the taskNames vector.
| string MipResources::CommNode::print | ( | ) |
Print function.
This function returns a string that can be printed, with all the informations contained in the class.
friend class boost::serialization::access [friend] |
1.5.6