Inheritance diagram for classias::group_base:
The class implements the base interface for instances with group numbers.
Public Types | |
typedef int | group_type |
A type representing a group number. | |
Public Member Functions | |
group_base () | |
Constructs the object. | |
group_base (const group_type &group) | |
Constructs an object initialized by the specified number. | |
group_base (const group_base &rho) | |
Constructs an object that is a copy of another object. | |
group_base & | operator= (const group_base &rho) |
Assigns a new group number to the object. | |
virtual | ~group_base () |
Destructs the object. | |
void | set_group (group_type group) |
Assigns a new group number to the object. | |
group_type | get_group () const |
Obtains the current group number. | |
Protected Attributes | |
group_type | m_group |
The group number. | |
Friends | |
bool | operator== (const group_base &x, const group_base &y) |
Tests the equality of two group numbers. | |
bool | operator!= (const group_base &x, const group_base &y) |
Tests the inequality of two groups. |
classias::group_base::group_base | ( | const group_type & | group | ) | [inline] |
Constructs an object initialized by the specified number.
group | The group number used to initialize the object. |
classias::group_base::group_base | ( | const group_base & | rho | ) | [inline] |
Constructs an object that is a copy of another object.
rho | The original object used to initialize the object. |
group_base& classias::group_base::operator= | ( | const group_base & | rho | ) | [inline] |
Assigns a new group number to the object.
rho | The source object. |
group_base& | The reference to this object. |
void classias::group_base::set_group | ( | group_type | group | ) | [inline] |
Assigns a new group number to the object.
group | The group number. |
group_type classias::group_base::get_group | ( | ) | const [inline] |
Obtains the current group number.
group_type | The current group number. |
bool operator== | ( | const group_base & | x, | |
const group_base & | y | |||
) | [friend] |
Tests the equality of two group numbers.
x | A group object. | |
y | Another group object. |
bool | true if the two group numbers are identical, false otherwise. |
bool operator!= | ( | const group_base & | x, | |
const group_base & | y | |||
) | [friend] |
Tests the inequality of two groups.
x | A group object. | |
y | Another group object. |
bool | true if the two group numbers are not identical, false otherwise. |