| 149 | } |
| 150 | |
| 151 | void CompoundObject::memoryUsage( Object::MemoryAccumulator &a ) const |
| 152 | { |
| 153 | Object::memoryUsage( a ); |
| 154 | a.accumulate( m_members.size() * sizeof( ObjectMap::value_type ) ); |
| 155 | for( ObjectMap::const_iterator it=m_members.begin(); it!=m_members.end(); it++ ) |
| 156 | { |
| 157 | if ( it->second ) |
| 158 | { |
| 159 | a.accumulate( it->second.get() ); |
| 160 | } |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | static inline bool comp( CompoundObject::ObjectMap::const_iterator a, CompoundObject::ObjectMap::const_iterator b ) |
| 165 | { |
no test coverage detected