#include <cmt_group.h>
Collaboration diagram for Group:

Public Types | |
| typedef cmt_vector<Group> | GroupVector |
Public Methods | |
| Group () | |
| Group (const cmt_string& name) | |
| const cmt_string& | name () const |
| void | set (const cmt_string& new_name) |
| void | clear () |
| Group& | operator= (const Group& other) |
| bool | operator== (const cmt_string& name) const |
| bool | operator!= (const cmt_string& name) const |
Static Public Methods | |
| Group* | find (const cmt_string& name) |
| Group* | add (const cmt_string& name) |
| GroupVector& | groups () |
| void | clear_all () |
| void | show_all () |
Private Attributes | |
| cmt_string | m_name |
| cmt_string | m_macro |
|
|
Definition at line 11 of file cmt_group.h. |
|
|
Definition at line 91 of file cmt_group.cxx. 00093 {
00094 }
|
|
|
Definition at line 97 of file cmt_group.cxx. 00097 : m_name (name) 00098 //---------------------------------------------------------- 00099 { 00100 } |
|
|
Definition at line 34 of file cmt_group.cxx. Referenced by constituents_action_iterator::set(). |
|
|
Definition at line 117 of file cmt_group.cxx. Referenced by clear_all(). 00119 {
00120 m_name = "";
00121 }
|
|
|
Definition at line 63 of file cmt_group.cxx. Referenced by Database::clear(). |
|
|
Definition at line 18 of file cmt_group.cxx. 00020 {
00021 static GroupVector& Groups = groups ();
00022
00023 for (int i = 0; i < Groups.size (); i++)
00024 {
00025 Group& v = Groups[i];
00026
00027 if (v.m_name == name) return (&v);
00028 }
00029
00030 return (0);
00031 }
|
|
|
Definition at line 53 of file cmt_group.cxx. Referenced by Generator::build_constituents_makefile(), and Cmt::set_standard_macros(). 00055 {
00056 static Database& db = Database::instance ();
00057 static GroupVector& Groups = db.groups ();
00058
00059 return (Groups);
00060 }
|
|
|
Definition at line 103 of file cmt_group.cxx. Referenced by Generator::build_constituents_makefile(), Cmt::set_standard_macros(), and Constituent::show(). 00105 {
00106 return (m_name);
00107 }
|
|
|
Definition at line 140 of file cmt_group.cxx. 00142 {
00143 return ((m_name != name));
00144 }
|
|
|
Definition at line 124 of file cmt_group.cxx. 00126 {
00127 m_name = other.m_name;
00128
00129 return (*this);
00130 }
|
|
|
Definition at line 133 of file cmt_group.cxx. 00135 {
00136 return ((m_name == name));
00137 }
|
|
|
Definition at line 110 of file cmt_group.cxx. Referenced by add(). 00112 {
00113 m_name = name;
00114 }
|
|
|
Definition at line 78 of file cmt_group.cxx. Referenced by Cmt::do_show_groups(). 00080 {
00081 static GroupVector& Groups = groups ();
00082
00083 for (int i = 0; i < Groups.size (); i++)
00084 {
00085 Group& group = Groups[i];
00086 cout << group.m_name << endl;
00087 }
00088 }
|
|
|
Definition at line 35 of file cmt_group.h. |
|
|
Definition at line 34 of file cmt_group.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000