Beispiel #1
0
    /**
     * @brief Initialize the nested vector.
     *
     * Can only be called once.
     *
     * @param[in,out] v  The nested vector.
     */
    void setNested(NestedVector* v) {
      // Set nested is only called once during the initialization.
      codiAssert(this->nested == NULL);

      this->nested = v;

      curChunk = new ChunkData(chunkSize);
      chunks.push_back(curChunk);
      positions.push_back(nested->getZeroPosition());
    }
Beispiel #2
0
 /**
  * @brief Get the zero position of the chunk vector and the nested vectors.
  * @return The zero position of the chunk vector.
  */
 CODI_INLINE Position getZeroPosition() const {
   return Position(0, 0, nested->getZeroPosition());
 }