12 #include "../shell/Shell.h"
33 Shell* shell =
reinterpret_cast< Shell*
>(
Id().eref().data() );
61 static vector< Element* > e;
76 string Id::path(
const string& separator)
const
80 assert( ret.length() > 0 );
83 while ( ret[ ret.length() - 1 ] ==
']' )
85 size_t pos = ret.find_last_of(
'[' );
86 if ( pos != string::npos && pos > 0 )
88 ret = ret.substr( 0, pos );
152 if (
elements().size() % 1000 == 0 )
187 cout <<
"Warning: Id::destroy: " <<
id_ <<
" already zeroed\n";
204 for ( vector< Element* >::iterator
209 (*i)->clearAllMsgs();
ostream & operator<<(ostream &s, const Id &i)
void bindIdToElement(Element *e)
static void clearAllElements()
Element * element() const
Synonym for Id::operator()()
std::string path(const std::string &separator="/") const
unsigned int value() const
ObjId doFind(const string &path) const
static string path(const Eref &e)
static vector< Element * > & elements()
static unsigned int numIds()
istream & operator>>(istream &s, Id &i)
static std::string id2str(Id id)
static Id str2Id(const std::string &s)