/** * The normal base element constructor needs an id for the element * as soon as it is made, and puts the element onto the elementList. * This function is called on all nodes, so it must handle cases where * there are gaps between the previous and current id assigned to this * node. Those gaps are referred to the master node by default. * This checks if an id is already in use. */ Element::Element( Id id ) : id_( id ) { id.setElement( this ); /* assert( id < MAX_ID ); assert( id() == 0 ); unsigned int prevSize = elementList().size(); if ( id > prevSize ) { elementList().resize( id + 1 ); for ( unsigned int i = prevSize; i < id; i++ ) elementList()[ i ] = UNKNOWN_NODE; } else { assert( elementList()[ id ] == 0 ) ; // Do not overwrite. } elementList()[ id ] = this; */ }