| 53 | } |
| 54 | |
| 55 | void FrameList::asClumpedList( std::vector< std::vector<Frame> > &clumpedFrames, unsigned int clumpSize ) const |
| 56 | { |
| 57 | clumpedFrames.clear(); |
| 58 | |
| 59 | std::vector<Frame> frames; |
| 60 | asList( frames ); |
| 61 | |
| 62 | size_t idx = 0; |
| 63 | while ( idx < frames.size() ) |
| 64 | { |
| 65 | size_t thisClumpSize = std::min( frames.size() - idx, (size_t)clumpSize ); |
| 66 | |
| 67 | size_t j = 0; |
| 68 | std::vector<Frame> clump; |
| 69 | while ( j < thisClumpSize ) |
| 70 | { |
| 71 | clump.push_back( frames[ idx + j ] ); |
| 72 | j++; |
| 73 | } |
| 74 | clumpedFrames.push_back( clump ); |
| 75 | |
| 76 | idx += thisClumpSize; |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | FrameListPtr FrameList::parse( const std::string &frameList ) |
| 81 | { |
no test coverage detected