#include <sc_attribute.h>
Public 型 | |
| typedef sc_attr_base * | elem_type |
| typedef elem_type * | iterator |
| typedef const elem_type * | const_iterator |
Public メソッド | |
| sc_attr_cltn () | |
| sc_attr_cltn (const sc_attr_cltn &) | |
| ~sc_attr_cltn () | |
| bool | push_back (sc_attr_base *) |
| sc_attr_base * | operator[] (const std::string &name_) |
| const sc_attr_base * | operator[] (const std::string &name_) const |
| sc_attr_base * | remove (const std::string &name_) |
| void | remove_all () |
| int | size () const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
Private メソッド | |
| sc_attr_cltn & | operator= (const sc_attr_cltn &) |
Private 変数 | |
| sc_pvector< sc_attr_base * > | m_cltn |
sc_attribute.h の 90 行で定義されています。
sc_attribute.h の 95 行で定義されています。
| typedef elem_type* sc_core::sc_attr_cltn::iterator |
sc_attribute.h の 96 行で定義されています。
| typedef const elem_type* sc_core::sc_attr_cltn::const_iterator |
sc_attribute.h の 97 行で定義されています。
| sc_core::sc_attr_cltn::sc_attr_cltn | ( | ) |
| sc_core::sc_attr_cltn::sc_attr_cltn | ( | const sc_attr_cltn & | a | ) |
| sc_core::sc_attr_cltn::~sc_attr_cltn | ( | ) |
| bool sc_core::sc_attr_cltn::push_back | ( | sc_attr_base * | attribute_ | ) |
sc_attribute.cpp の 111 行で定義されています。
00112 { 00113 if( attribute_ == 0 ) { 00114 return false; 00115 } 00116 for( int i = m_cltn.size() - 1; i >= 0; -- i ) { 00117 if( attribute_->name() == m_cltn[i]->name() ) { 00118 return false; 00119 } 00120 } 00121 m_cltn.push_back( attribute_ ); 00122 return true; 00123 }
| sc_attr_base * sc_core::sc_attr_cltn::operator[] | ( | const std::string & | name_ | ) |
sc_attribute.cpp の 130 行で定義されています。
00131 { 00132 for( int i = m_cltn.size() - 1; i >= 0; -- i ) { 00133 if( name_ == m_cltn[i]->name() ) { 00134 return m_cltn[i]; 00135 } 00136 } 00137 return 0; 00138 }
| const sc_attr_base * sc_core::sc_attr_cltn::operator[] | ( | const std::string & | name_ | ) | const |
sc_attribute.cpp の 141 行で定義されています。
00142 { 00143 for( int i = m_cltn.size() - 1; i >= 0; -- i ) { 00144 if( name_ == m_cltn[i]->name() ) { 00145 return m_cltn[i]; 00146 } 00147 } 00148 return 0; 00149 }
| sc_attr_base * sc_core::sc_attr_cltn::remove | ( | const std::string & | name_ | ) |
sc_attribute.cpp の 156 行で定義されています。
00157 { 00158 for( int i = m_cltn.size() - 1; i >= 0; -- i ) { 00159 if( name_ == m_cltn[i]->name() ) { 00160 sc_attr_base* attribute = m_cltn[i]; 00161 m_cltn[i] = m_cltn[m_cltn.size() - 1]; 00162 m_cltn.decr_count(); 00163 return attribute; 00164 } 00165 } 00166 return 0; 00167 }
| void sc_core::sc_attr_cltn::remove_all | ( | ) |
| int sc_core::sc_attr_cltn::size | ( | ) | const [inline] |
| iterator sc_core::sc_attr_cltn::begin | ( | ) | [inline] |
| const_iterator sc_core::sc_attr_cltn::begin | ( | ) | const [inline] |
| iterator sc_core::sc_attr_cltn::end | ( | ) | [inline] |
| const_iterator sc_core::sc_attr_cltn::end | ( | ) | const [inline] |
| sc_attr_cltn& sc_core::sc_attr_cltn::operator= | ( | const sc_attr_cltn & | ) | [private] |
sc_pvector<sc_attr_base*> sc_core::sc_attr_cltn::m_cltn [private] |
sc_attribute.h の 141 行で定義されています。
1.5.6