The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::utils::VectorCopier< C, T > Class Template Reference

Utility for element-wise potentially-deep-copying a vector. Invoked by methods at the end of this file. More...

#include <VectorUtils.hpp>

Public Types

typedef C< T > container_t
 

Public Member Functions

 VectorCopier (const std::vector< container_t > &input)
 
void deepCopy (std::vector< container_t > &output) const
 
void extractRawCopy (std::vector< T * > &output) const
 

Public Attributes

const std::vector< container_t > & input_
 

Detailed Description

template<template< class, class... > class C, typename T>
class sparta::utils::VectorCopier< C, T >

Utility for element-wise potentially-deep-copying a vector. Invoked by methods at the end of this file.

Definition at line 24 of file VectorUtils.hpp.

Member Typedef Documentation

◆ container_t

template<template< class, class... > class C, typename T >
typedef C<T> sparta::utils::VectorCopier< C, T >::container_t

Definition at line 27 of file VectorUtils.hpp.

Constructor & Destructor Documentation

◆ VectorCopier()

template<template< class, class... > class C, typename T >
sparta::utils::VectorCopier< C, T >::VectorCopier ( const std::vector< container_t > &  input)
inline

Definition at line 31 of file VectorUtils.hpp.

Member Function Documentation

◆ deepCopy()

template<template< class, class... > class C, typename T >
void sparta::utils::VectorCopier< C, T >::deepCopy ( std::vector< container_t > &  output) const
inline

Definition at line 35 of file VectorUtils.hpp.

◆ extractRawCopy()

template<template< class, class... > class C, typename T >
void sparta::utils::VectorCopier< C, T >::extractRawCopy ( std::vector< T * > &  output) const
inline

Definition at line 42 of file VectorUtils.hpp.

Member Data Documentation

◆ input_

template<template< class, class... > class C, typename T >
const std::vector<container_t>& sparta::utils::VectorCopier< C, T >::input_

Definition at line 29 of file VectorUtils.hpp.


The documentation for this class was generated from the following file: